|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.action.ContributionItem
com.ibm.carma.ui.action.OpenWithActionMenu
public class OpenWithActionMenu
Action which contributes a menu displaying the available editors for the given CARMA member selection. The list of available editors is based on the file extension of the given CARMA Member.
This class may be instantiated and used without further configuration; this class is not intended to be subclassed.
Example:
OpenWithActionMenu openWithActionMenu = new OpenWithActionMenu();
openWithActionMenu.updateSelection(selection);
MenuManager openWith= new MenuManager("Open with...", CarmaUIPlugin.PLUGIN_ID+ ".OpenWithSubMenu"); //$NON-NLS-1$
openWith.add(openWithActionMenu);
....
This Class is not intended to be subclassed, or instantiated.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ID
|
| Constructor Summary | |
|---|---|
OpenWithActionMenu()
Creates an open with menu |
|
| Method Summary | |
|---|---|
void |
dispose()
|
void |
fill(org.eclipse.swt.widgets.Menu menu,
int index)
|
boolean |
isDynamic()
|
boolean |
isEnabled()
|
void |
setActionState(RAMActionState state)
Sets the display state of the menu |
void |
setEnabled(boolean enabled)
|
void |
updateSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
Updates the current selection of the menu. |
| Methods inherited from class org.eclipse.jface.action.ContributionItem |
|---|
fill, fill, fill, getId, getParent, isDirty, isGroupMarker, isSeparator, isVisible, saveWidgetState, setParent, setVisible, toString, update, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ID
| Constructor Detail |
|---|
public OpenWithActionMenu()
| Method Detail |
|---|
public void dispose()
dispose in interface org.eclipse.jface.action.IContributionItemdispose in class org.eclipse.jface.action.ContributionItempublic void updateSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
selection - new selection for the menupublic void setEnabled(boolean enabled)
enabled - the enabled to setpublic boolean isEnabled()
isEnabled in interface org.eclipse.jface.action.IContributionItemisEnabled in class org.eclipse.jface.action.ContributionItempublic void setActionState(RAMActionState state)
state - the display state of the menu
public void fill(org.eclipse.swt.widgets.Menu menu,
int index)
fill in interface org.eclipse.jface.action.IContributionItemfill in class org.eclipse.jface.action.ContributionItempublic boolean isDynamic()
isDynamic in interface org.eclipse.jface.action.IContributionItemisDynamic in class org.eclipse.jface.action.ContributionItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||