Re: Clarifying when the Cas Editor needs the special nature, and when it needs the Corpus Explorer

2009-10-13 Thread Marshall Schor


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
 org.apache.uima.caseditor.NLPProject, 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
>
>


Re: Clarifying when the Cas Editor needs the special nature, and when it needs the Corpus Explorer

2009-10-06 Thread Jörn Kottmann

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
org.apache.uima.caseditor.NLPProject, 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)

Jörn


Re: Clarifying when the Cas Editor needs the special nature, and when it needs the Corpus Explorer

2009-10-04 Thread Marshall Schor


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
>> org.apache.uima.caseditor.NLPProject, 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

>
>
> Now days I think the eclipse Project Explorer could replace
> the Corpus Explorer view.
>> To help users get started, I think the tooling chapter for the Cas
>> Editor should say to either add the
>> org.apache.uima.caseditor.NLPProject to an existing
>> project or / and switch to the Corpus Explorer view for that project,
>> and / or create a new project using the wizard for a Cas Editor
>> project.  Do all three approaches work?   
> There is no ui to add the nature to an existing project, but could be
> simply added. The only way it works right now is to create an NLP
> project and then use the Corpus Explorer view to set it up,
> e.g. adding the special folders, specify the type system, adding
> CASes, etc.
>> I see there is a method in the class NlpProject called "addNLPNature"
>> which adds this nature to a project - is there a way to invoke this from
>> the Eclipse menus to do this for an existing project?  If not, perhaps
>> we could make use of the existing menu for PEARs which adds a menu pick
>> called "add UIMA nature" and make it have sub-menus - one for the
>> CasEditor, and one for the PEAR.
>>   
> Yes, would be a simple action which invokes the method.
>
> Jörn
>
>
>


Re: Clarifying when the Cas Editor needs the special nature, and when it needs the Corpus Explorer

2009-10-04 Thread Jörn Kottmann

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
org.apache.uima.caseditor.NLPProject, 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.

Now days I think the eclipse Project Explorer could replace
the Corpus Explorer view.

To help users get started, I think the tooling chapter for the Cas
Editor should say to either add the
org.apache.uima.caseditor.NLPProject to an existing
project or / and switch to the Corpus Explorer view for that project,
and / or create a new project using the wizard for a Cas Editor
project.  Do all three approaches work? 
  

There is no ui to add the nature to an existing project, but could be
simply added. The only way it works right now is to create an NLP
project and then use the Corpus Explorer view to set it up,
e.g. adding the special folders, specify the type system, adding
CASes, etc.

I see there is a method in the class NlpProject called "addNLPNature"
which adds this nature to a project - is there a way to invoke this from
the Eclipse menus to do this for an existing project?  If not, perhaps
we could make use of the existing menu for PEARs which adds a menu pick
called "add UIMA nature" and make it have sub-menus - one for the
CasEditor, and one for the PEAR.
  

Yes, would be a simple action which invokes the method.

Jörn



Clarifying when the Cas Editor needs the special nature, and when it needs the Corpus Explorer

2009-10-04 Thread Marshall Schor
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
org.apache.uima.caseditor.NLPProject, although I'm not
sure what it enables.

To help users get started, I think the tooling chapter for the Cas
Editor should say to either add the
org.apache.uima.caseditor.NLPProject to an existing
project and / or switch to the Corpus Explorer view for that project,
and / or create a new project using the wizard for a Cas Editor
project.  Do all three approaches work? 

I see there is a method in the class NlpProject called "addNLPNature"
which adds this nature to a project - is there a way to invoke this from
the Eclipse menus to do this for an existing project?  If not, perhaps
we could make use of the existing menu for PEARs which adds a menu pick
called "add UIMA nature" and make it have sub-menus - one for the
CasEditor, and one for the PEAR.

-Marshall