org.gcn.plinguaplugin.actions
Class CreateContainerAction

java.lang.Object
  extended by org.gcn.plinguaplugin.actions.CreateContainerAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate
Direct Known Subclasses:
CreatePsystemAction, ImportPsystemAction

public abstract class CreateContainerAction
extends java.lang.Object
implements org.eclipse.ui.IObjectActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

This class provides common functionality for actions which create wizards based on a container selected by the user

Author:
Manuel Garcia-Quismondo-Fernandez

Constructor Summary
CreateContainerAction()
           
 
Method Summary
 void dispose()
           
protected abstract  org.eclipse.jface.wizard.IWizard getWizard()
           
 void init(org.eclipse.ui.IWorkbenchWindow window)
           
 void run(org.eclipse.jface.action.IAction action)
           
 void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
           
 void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
           
protected abstract  void setPackage(org.eclipse.jface.wizard.IWizard wizard, java.lang.String filePackage, boolean change)
           
protected abstract  void setProject(org.eclipse.jface.wizard.IWizard wizard, java.lang.String project, boolean change)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateContainerAction

public CreateContainerAction()
Method Detail

setActivePart

public void setActivePart(org.eclipse.jface.action.IAction action,
                          org.eclipse.ui.IWorkbenchPart targetPart)
Specified by:
setActivePart in interface org.eclipse.ui.IObjectActionDelegate
See Also:
IObjectActionDelegate.setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)

run

public void run(org.eclipse.jface.action.IAction action)
Specified by:
run in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.run(org.eclipse.jface.action.IAction)

selectionChanged

public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
Specified by:
selectionChanged in interface org.eclipse.ui.IActionDelegate
See Also:
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.dispose()

init

public void init(org.eclipse.ui.IWorkbenchWindow window)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
See Also:
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)

setProject

protected abstract void setProject(org.eclipse.jface.wizard.IWizard wizard,
                                   java.lang.String project,
                                   boolean change)

setPackage

protected abstract void setPackage(org.eclipse.jface.wizard.IWizard wizard,
                                   java.lang.String filePackage,
                                   boolean change)

getWizard

protected abstract org.eclipse.jface.wizard.IWizard getWizard()