|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.action.Action
com.groovemanager.actions.file.FileNewAction
This subclass of Action is used to create a new file. When performed, an instance of this class will do nothing else than notify all registeres FileNewListeners that a new file should be created.
| Field Summary | |
|---|---|
private java.util.ArrayList |
listeners
List of FileNewListeners registered with this Action |
| Fields inherited from interface org.eclipse.jface.action.IAction |
|---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
FileNewAction(java.lang.String text)
Constructs a new FileNewAction with the given name |
|
FileNewAction(java.lang.String text,
org.eclipse.jface.resource.ImageDescriptor image)
Constructs a new FileNewAction with the given name and the given image. |
|
FileNewAction(java.lang.String text,
int style)
Constructs a new FileNewAction with the given name using the given style constant |
|
| Method Summary | |
|---|---|
void |
addFileNewListener(FileNewListener listener)
Register a FileNewListener with this Action. |
void |
removeFileNewListener(FileNewListener listener)
Remove a registered FileNewListener from this Action |
void |
run()
Perform this Action. |
| Methods inherited from class org.eclipse.jface.action.Action |
|---|
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removeAcceleratorText, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList listeners
| Constructor Detail |
|---|
public FileNewAction(java.lang.String text)
text - This Action´s name
public FileNewAction(java.lang.String text,
org.eclipse.jface.resource.ImageDescriptor image)
text - This Action´s nameimage - This Action´s image
public FileNewAction(java.lang.String text,
int style)
text - This Action´s namestyle - The style constant to be used by this Action| Method Detail |
|---|
public void addFileNewListener(FileNewListener listener)
listener - The FileNewListener to registerpublic void removeFileNewListener(FileNewListener listener)
listener - The FileNewListener to remove.public void run()
run in interface org.eclipse.jface.action.IActionrun in class org.eclipse.jface.action.ActionIAction.run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||