Sure.  See:

http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/ToggleVisiblityPlugIn.java?view=log

http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/TurnVisiblityOffPlugIn.java?view=log

http://skyjump.cvs.sourceforge.net/viewvc/skyjump/skyjump/com/isa/jump/plugin/TurnVisiblityOnPlugIn.java?view=log

Here is a snippet:

    public void initialize(PlugInContext context) throws Exception
    {
        WorkbenchContext workbenchContext = context.getWorkbenchContext();
        FeatureInstaller featureInstaller = new
FeatureInstaller(workbenchContext);
        JPopupMenu layerNamePopupMenu = workbenchContext.getWorkbench()
                                                        .getFrame()

.getLayerNamePopupMenu();

        featureInstaller.addPopupSubmenuItem(layerNamePopupMenu, this,
"Visibility", "Turn On", false, null, null);

        JPopupMenu wmsLayerNamePopupMenu = workbenchContext.getWorkbench()
                                                        .getFrame()

.getWMSLayerNamePopupMenu();

        featureInstaller.addPopupSubmenuItem(wmsLayerNamePopupMenu, this,
"Visibility", "Turn On", false, null, null);
    }

Larry

On Wed, Oct 27, 2010 at 8:59 AM, Edgar Soldin <ed...@soldin.de> wrote:

> On 27.10.2010 15:56, Larry Becker wrote:
> >     Isn't there a way of breaking context menus up to several columns,
> like windows does?
> >     Maybe java already delivers this in some way?
> >
> >
> > Sure.  I did that to organize this menu in SkyJUMP.    You need to move
> at least 3 to a submenu to make it worth while.  It might be enough to move
> 4 items to the Layer menu, if there is room there.
>
> Can you pinpoint a place in the sourcecode of skyjump?
>
> ..ede
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to