Hi, I develop a plugin activated by a layer popup sub menu. The menu does not display for a WMS layer, even with no check set when building the menu. When I activate the plugin by its top view menu, I get an empty context.selectedLayers() array, even if the WMS layer is activated.
Is it normal the selected layers list is empty in this case, and how can I add a submenu to the WMS layer's context menu ? The code to initialize the plugin/menu: FeatureInstaller.getInstance().addMainMenuPlugin(this, new String[] { MenuNames.VIEW}); context.getFeatureInstaller() .addPopupMenuPlugin( context.getWorkbenchContext().getWorkbench().getFrame() .getLayerNamePopupMenu(), this, menuTitleAdd, false, getIcon(), createEnableCheck(context.getWorkbenchContext())); Nicolas
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel