sk.uniba.euromath.editor.xmlEditor.actions
Class EMMenuManager

java.lang.Object
  extended by org.eclipse.jface.action.ContributionManager
      extended by org.eclipse.jface.action.MenuManager
          extended by sk.uniba.euromath.editor.xmlEditor.actions.EMMenuManager
All Implemented Interfaces:
IContributionItem, IContributionManager, IMenuManager

public class EMMenuManager
extends MenuManager

Author:
Tomáš Studva 6.7.2005

Field Summary
protected  boolean enabledLikeChild
          If true, then is enabled only if have enabled visible not separator child.
protected  Node node
          Node associated with manager(menu/submenu).
protected  boolean visible
          Manages visibility by user.
protected  boolean visibleLikeChild
          If true, then is visible only if have visible child.
 
Constructor Summary
EMMenuManager()
          Contructor.
EMMenuManager(String text)
          Contructor.
EMMenuManager(String text, String id)
          Contructor.
 
Method Summary
 Node getNode()
           
 boolean isEnabled()
           
 boolean isVisible()
           
 void setEnabledLikeChild(boolean enabledLikeChild)
           
 void setNode(Node node)
           
 void setVisible(boolean visible)
           
 void setVisibleLikeChild(boolean visibleLikeChild)
           
 
Methods inherited from class org.eclipse.jface.action.MenuManager
addMenuListener, createContextMenu, createMenuBar, createMenuBar, dispose, fill, fill, fill, fill, findMenuUsingPath, findUsingPath, getId, getMenu, getMenuText, getOverrides, getParent, getRemoveAllWhenShown, isDynamic, isGroupMarker, isSeparator, isSubstituteFor, markDirty, removeMenuListener, saveWidgetState, setOverrides, setParent, setRemoveAllWhenShown, update, update, update, update, updateAll
 
Methods inherited from class org.eclipse.jface.action.ContributionManager
add, add, allowItem, appendToGroup, appendToGroup, dumpStatistics, find, getItems, hasDynamicItems, indexOf, indexOf, insert, insertAfter, insertAfter, insertBefore, insertBefore, internalSetItems, isDirty, isEmpty, itemAdded, itemRemoved, prependToGroup, prependToGroup, remove, remove, removeAll, replaceItem, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.action.IContributionManager
add, add, appendToGroup, appendToGroup, find, getItems, insertAfter, insertAfter, insertBefore, insertBefore, isDirty, isEmpty, prependToGroup, prependToGroup, remove, remove, removeAll
 
Methods inherited from interface org.eclipse.jface.action.IContributionItem
isDirty
 

Field Detail

visible

protected boolean visible
Manages visibility by user.


visibleLikeChild

protected boolean visibleLikeChild
If true, then is visible only if have visible child.


enabledLikeChild

protected boolean enabledLikeChild
If true, then is enabled only if have enabled visible not separator child.


node

protected Node node
Node associated with manager(menu/submenu).

Constructor Detail

EMMenuManager

public EMMenuManager()
Contructor.


EMMenuManager

public EMMenuManager(String text)
Contructor.

Parameters:
text -

EMMenuManager

public EMMenuManager(String text,
                     String id)
Contructor.

Parameters:
text -
id -
Method Detail

isVisible

public boolean isVisible()
Specified by:
isVisible in interface IContributionItem
Overrides:
isVisible in class MenuManager

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface IContributionItem
Overrides:
setVisible in class MenuManager

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface IContributionItem
Specified by:
isEnabled in interface IMenuManager
Overrides:
isEnabled in class MenuManager

setNode

public void setNode(Node node)
Parameters:
node -

getNode

public Node getNode()
Returns:
node

setVisibleLikeChild

public void setVisibleLikeChild(boolean visibleLikeChild)
Parameters:
visibleLikeChild -

setEnabledLikeChild

public void setEnabledLikeChild(boolean enabledLikeChild)
Parameters:
enabledLikeChild -


Copyright © 2003-2006 null. All Rights Reserved.