[udig-devel] why is the presence of some commands perspective dependent?

Jesse Eichar jeichar at refractions.net
Fri Sep 7 09:29:03 PDT 2007


RIght I do know the reason.  This is for configurability.  By default  
those action sets are disabled.  To add them you must add a  
PerspectiveExtension that adds them to your perspective.  Here's the  
XML snippet that adds them to the MapPerspective:

    <extension
          point="org.eclipse.ui.perspectiveExtensions">
       <perspectiveExtension
             targetID="net.refractions.udig.ui.mapPerspective">
          <actionSet id="net.refractions.udig.project.ui.LayerActions"/>
          <actionSet id="net.refractions.udig.project.ui.renameSet"/>
          <actionSet  
id="net.refractions.udig.project.ui.OpenProjectSet"/>
       </perspectiveExtension>
    </extension>

This is in the project.ui plugin.xml.  In that file the complete  
perspective extension is there that adds view and perspective  
shortcuts to the Window > Show View and Window > Open Perspective menus

Jesse

On Sep 6, 2007, at 11:48 PM, Andrea Antonello wrote:

> For example the "create layer" from the layer menu.
>
> But it is there in the Map and Alternate Map perspective, just not in
> the JGrass one I made :)
> I'll have to try to understand why and come back to the list
> afterward...
>
> Ciao
> Andrea
>
>
> On Thu, 6 Sep 2007 12:38:57 -0700 Jesse Eichar
> <jeichar at refractions.net> probably wrote:
>
>> Which ones specifically?
>>
>> Jesse
>>
>> On Sep 6, 2007, at 11:10 AM, Andrea Antonello wrote:
>>
>>> hi, I had these problems with some menu entries missing in certain
>>> conditions as for example the create layer  from the leyer menu.
>>> I noticed that I didn't have this because I set up a perspective
>>> related to JGrass and views needed for the morphologic analyses.
>>>
>>> With the map view they are back.
>>> Now I have 2 questions:
>>> 1) why are some commands made perspective dependent and how do I add
>>> them to my perspective?
>>> 2) apart of actions are there other things that could suffer of this
>>> dependency? My fresh exported jgrassudig product dosn't seem to
>>> work as
>>> well as the udig product and I honestly can't figure out where the
>>> problem lies.
>>>
>>> Ciao
>>> Andrea
>>>
>>> _______________________________________________
>>> User-friendly Desktop Internet GIS (uDig)
>>> http://udig.refractions.net
>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20070907/e8f8268c/attachment-0001.html


More information about the udig-devel mailing list