|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.ui.plugin.FeatureInstaller
public class FeatureInstaller
Adds a plug-in to the JUMP Workbench as a menu item.
| Constructor Summary | |
|---|---|
FeatureInstaller(WorkbenchContext workbenchContext)
|
|
| Method Summary | |
|---|---|
void |
addLayerNameViewMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName)
Add a menu item to the main menu that is enabled only if the active internal frame is a LayerViewPanelProxy and a LayerNamePanelProxy. |
void |
addLayerNameViewMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName)
|
void |
addLayerViewMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName)
Add a menu item to the main menu that is enabled only if the active internal frame is a LayerViewPanelProxy. |
void |
addLayerViewMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName)
|
static javax.swing.JMenu |
addMainMenu(FeatureInstaller featureInstaller,
java.lang.String[] menuPath,
java.lang.String menuName,
int index)
|
void |
addMainMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
|
void |
addMainMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName,
javax.swing.Icon icon,
EnableCheck enableCheck)
|
javax.swing.JMenuItem |
addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugIn)
|
javax.swing.JMenuItem |
addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugin,
int index)
|
javax.swing.JMenuItem |
addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugin,
javax.swing.JMenuItem menuItem,
int index)
Add a Plugin as a JMenuItem or a subclass of JMenuItem to the main menu |
void |
addMainMenuItemWithJava14Fix(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
Workaround for Java Bug 4809393: "Menus disappear prematurely after displaying modal dialog" Evidently fixed in Java 1.5. |
void |
addMenuItemShownListener(javax.swing.JMenuItem menuItem,
MenuItemShownListener menuItemShownListener)
|
void |
addMenuSeparator(javax.swing.JMenu menu)
|
void |
addMenuSeparator(java.lang.String menu)
|
void |
addMenuSeparator(java.lang.String[] menuPath)
|
void |
addPopupMenuItem(javax.swing.JPopupMenu popupMenu,
PlugIn executable,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
|
java.lang.String[] |
behead(java.lang.String[] a1)
|
static javax.swing.JMenuItem |
childMenuItem(java.lang.String childName,
javax.swing.MenuElement menu)
|
MultiEnableCheck |
createFenceExistsCheck()
Deprecated. Use the EnableCheckFactory methods instead |
MultiEnableCheck |
createLayersSelectedCheck()
Deprecated. Use the EnableCheckFactory methods instead |
javax.swing.JMenu |
createMenusIfNecessary(javax.swing.JMenu parent,
java.lang.String[] menuPath)
|
MultiEnableCheck |
createOneLayerSelectedCheck()
Deprecated. Use the EnableCheckFactory methods instead |
MultiEnableCheck |
createVectorsExistCheck()
Deprecated. Use the EnableCheckFactory methods instead |
static javax.swing.JMenuItem |
installMnemonic(javax.swing.JMenuItem menuItem,
javax.swing.MenuElement parent)
|
javax.swing.JMenuBar |
menuBar()
|
javax.swing.JMenu |
menuBarMenu(java.lang.String childName)
|
static java.lang.String |
removeProperties(java.lang.String menuItemName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureInstaller(WorkbenchContext workbenchContext)
| Method Detail |
|---|
public MultiEnableCheck createLayersSelectedCheck()
public MultiEnableCheck createOneLayerSelectedCheck()
public MultiEnableCheck createVectorsExistCheck()
public MultiEnableCheck createFenceExistsCheck()
public void addMenuSeparator(java.lang.String menu)
public void addMenuSeparator(java.lang.String[] menuPath)
public void addMenuSeparator(javax.swing.JMenu menu)
public java.lang.String[] behead(java.lang.String[] a1)
public void addMainMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName,
javax.swing.Icon icon,
EnableCheck enableCheck)
public void addLayerViewMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName)
public void addLayerNameViewMenuItem(PlugIn executable,
java.lang.String menuName,
java.lang.String menuItemName)
public void addLayerViewMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName)
public void addLayerNameViewMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName)
public void addMainMenuItem(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
menuPath - separate items with slashes; items will be created if they
do not already existmenuItemName - name of the menu itemcheckBox - whether to create a JCheckBoxMenuItem or a JMenuItemGUIUtil.toSmallIcon(javax.swing.ImageIcon)
public javax.swing.JMenuItem addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugin,
int index)
public javax.swing.JMenuItem addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugin,
javax.swing.JMenuItem menuItem,
int index)
menuPath - path from the main menu to the menu itemplugin - the plugin associated to this menu itemmenuItem - the menu item (JMenuItem, JCheckBoxMenuItem, JMenu, JRadioButtonMenuItem)index - the index of the menu item in its parent menupublic static java.lang.String removeProperties(java.lang.String menuItemName)
public static javax.swing.JMenuItem installMnemonic(javax.swing.JMenuItem menuItem,
javax.swing.MenuElement parent)
public javax.swing.JMenu createMenusIfNecessary(javax.swing.JMenu parent,
java.lang.String[] menuPath)
public void addMenuItemShownListener(javax.swing.JMenuItem menuItem,
MenuItemShownListener menuItemShownListener)
public void addPopupMenuItem(javax.swing.JPopupMenu popupMenu,
PlugIn executable,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
enableCheck - null to leave unspecifiedpublic javax.swing.JMenuBar menuBar()
public javax.swing.JMenu menuBarMenu(java.lang.String childName)
public static javax.swing.JMenuItem childMenuItem(java.lang.String childName,
javax.swing.MenuElement menu)
public void addMainMenuItemWithJava14Fix(PlugIn executable,
java.lang.String[] menuPath,
java.lang.String menuItemName,
boolean checkBox,
javax.swing.Icon icon,
EnableCheck enableCheck)
public static javax.swing.JMenu addMainMenu(FeatureInstaller featureInstaller,
java.lang.String[] menuPath,
java.lang.String menuName,
int index)
public javax.swing.JMenuItem addMainMenuItem(java.lang.String[] menuPath,
AbstractUiPlugIn plugIn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||