com.sap.ide.tools.core.patternfwk.startup
Class SourcePatternAction
com.sap.ide.tools.core.patternfwk.startup.SourcePatternAction
- public class SourcePatternAction
This is the action class used to add a push button to start the source pattern
wizard to the tool bar. It must be set as the class for an editor action of
the source pattern frame editor (in case the multi page editor).
|
Constructor Summary |
SourcePatternAction()
Creates a new SourcePatternAction and initializes it. |
|
Method Summary |
void |
run()
Starts the source pattern wizard. |
void |
run(org.eclipse.jface.action.IAction action)
Starts the source pattern wizard. |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
void |
setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor)
Sets the active editor. |
SourcePatternAction
public SourcePatternAction()
- Creates a new SourcePatternAction and initializes it.
setActiveEditor
public void setActiveEditor(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IEditorPart targetEditor)
- Sets the active editor. This method will be called by Eclipse each time the
active top level editor changes. It must also be called by a multi page
source pattern editor when its active tab has changed.
- Parameters:
action - The actual action behind this delegate (needed to enable or
disable the button in the tool bar).targetEditor - The currently active editor (must implement
IDevelopmentObjectEditor).
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
- See Also:
org.eclipse.ui.IActionDelegate#selectionChanged(IAction, ISelection)
run
public void run()
- Starts the source pattern wizard.
run
public void run(org.eclipse.jface.action.IAction action)
- Starts the source pattern wizard. This method simply delegates to the
method
run() ignoring the given action.
- Parameters:
action - Will be ignored.
Copyright © 2005 SAP AG. All Rights Reserved.