Jörn Kottmann wrote:
> Marshall Schor wrote:
>> Jörn Kottmann wrote:
>>  
>>> Marshall Schor wrote:
>>>    
>>>> The Cas Editor seems to be enabled by two different things in
>>>> Eclipse. One is the Corpus Explorer view, which among other things,
>>>> enables
>>>> certain right-click menu items.  The other is the
>>>> <nature>org.apache.uima.caseditor.NLPProject</nature>, although I'm
>>>> not
>>>> sure what it enables.
>>>>         
>>> Actually the Corpus Explorer only works together with projects
>>> which have the NLPProject nature. Non NLPProject nature projects
>>> are only displayed like they would be in the eclipse navigator view.
>>> The special right-click menu items and project structure is only
>>> available in NLPProject nature projects.
>>>     
>> Hmmm,  I tried the following:
>> In a new workspace, I created 2 projects - a java project and an NLP
>> project.
>> The java project did not have the NLPProject nature.
>>
>> Then I switched to the Corpus Explorer, and found when I right-clicked
>> the two projects and picked "properties", I saw the panel with Processor
>> Folders, Corpus Folders, etc.  (Even for the project that didn't have
>> the NLP Project nature)  So I guess that the NLP Nature isn't required
>> to show this.  But it may be required for something else
>>   
> For the project without the NLP nature you should not have seen
> the panels in the properties menu, I also could not reproduce
> the behavior you observed. Are you sure that your java project has
> not the nlp nature ? (You can check that manually in the .project file)
Some kind of caching seems to be happening here.

If I manually add the nature spec to the .project file in the Corpus
explorer view, it switches the Corpus Explorer view immediately (upon
saving) to one where the properties menu is the Corpus Explorer one.  If
I then manually edit the .project file and remove the nature spec (which
you have to do in another view, because the Corpus Explorer view is
hiding the .project file now, for projects with this nature), the Corpus
view still is caching the property, so the right-click menu is still there.

I can clear the cache by either closing/reopening the project or by
stopping, restarting Eclipse. (probably other methods also work...).

I noticed also that the normal Eclipse gesture for opening a closed
project ( double-click the closed project) doesn't seem to work in the
Corpus Explorer, and the view seems to be missing the normal set of
menus (such as control of "filters", working-set support, etc.).  These
kinds of things probably would be helped in the planned rework that
would make use of the package explorer.

-Marshall
>
>
> Jörn
>
>

Reply via email to