org.eclipse.jdt.ui.actions
Class InlineAction
java.lang.Object
|
+--org.eclipse.jface.action.Action
|
+--org.eclipse.jdt.ui.actions.SelectionDispatchAction
|
+--org.eclipse.jdt.ui.actions.InlineAction
- All Implemented Interfaces:
- IAction, ISelectionChangedListener
- public class InlineAction
- extends SelectionDispatchAction
Inlines a method, local variable or a static final field.
This class may be instantiated; it is not intended to be subclassed.
- Since:
- 2.1
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 |
InlineAction(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor)
Note: This constructor is for internal use only. |
InlineAction(IWorkbenchSite site)
Creates a new InlineAction . |
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 |
InlineAction
public InlineAction(IWorkbenchSite site)
- Creates a new
InlineAction
. The action requires
that the selection provided by the site's selection provider is of type
org.eclipse.jface.viewers.IStructuredSelection
.
- Parameters:
site
- the site providing context information for this action
InlineAction
public InlineAction(org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor)
- Note: This constructor is for internal use only. Clients should not call this constructor.
selectionChanged
protected void selectionChanged(ISelection selection)
- Description copied from class:
SelectionDispatchAction
- Notifies this action that the given selection has changed. This default
implementation sets the action's enablement state to
false
.
- Overrides:
selectionChanged
in class SelectionDispatchAction
- Following copied from class:
org.eclipse.jdt.ui.actions.SelectionDispatchAction
- Parameters:
selection
- the new selection
run
public void run(ITextSelection selection)
- Description copied from class:
SelectionDispatchAction
- Executes this actions with the given text selection. This default implementation
calls
run(ISelection selection)
.
- Overrides:
run
in class SelectionDispatchAction
run
public void run(IStructuredSelection selection)
- Description copied from class:
SelectionDispatchAction
- Executes this actions with the given structured selection. This default implementation
calls
run(ISelection selection)
.
- Overrides:
run
in class SelectionDispatchAction
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.