org.ow2.clif.scenario.isac.egui.wizards.plugin
Class InteractionManager

java.lang.Object
  extended by org.ow2.clif.scenario.isac.egui.wizards.plugin.InteractionManager

public class InteractionManager
extends java.lang.Object

This class permits to manage all interactions between user and model. This class constructs the appropriate property or wizard GUI page.

Author:
Fabrice Rivart

Constructor Summary
InteractionManager(org.eclipse.jface.dialogs.DialogPage page, org.eclipse.core.resources.IProject project, java.lang.String actionType)
          Constructor.
 
Method Summary
 void apply()
          This method try to apply all modifications into model.
 void cancel()
          This method performs cancel all modifications into model.
 void catchException(java.lang.Exception e)
          This method open a message error dialog to user, block plugin activity in setting valide page to false and close the shell.
 org.eclipse.swt.widgets.Composite createActionContents(org.eclipse.swt.widgets.Composite arg0)
          This method constructs graphics components.
 org.eclipse.swt.widgets.Composite createPluginContents(org.eclipse.swt.widgets.Composite arg0)
          This method constructs graphics components.
 void initContents()
          This method initializes graphics
 void setProject(org.eclipse.core.resources.IProject project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionManager

public InteractionManager(org.eclipse.jface.dialogs.DialogPage page,
                          org.eclipse.core.resources.IProject project,
                          java.lang.String actionType)
Constructor.

Parameters:
page - DialogPage where interactions are done
project - IProject representing the current project where user does modifications
actionType - String representing action type to manipulate (sample, test, timer, control, object, plugin)
Method Detail

initContents

public void initContents()
This method initializes graphics


createPluginContents

public org.eclipse.swt.widgets.Composite createPluginContents(org.eclipse.swt.widgets.Composite arg0)
This method constructs graphics components.

Parameters:
arg0 - Composite where contents must be created.

createActionContents

public org.eclipse.swt.widgets.Composite createActionContents(org.eclipse.swt.widgets.Composite arg0)
This method constructs graphics components.

Parameters:
arg0 - Composite where contents must be created.

catchException

public void catchException(java.lang.Exception e)
This method open a message error dialog to user, block plugin activity in setting valide page to false and close the shell.

Parameters:
e - Exception to catch

apply

public void apply()
This method try to apply all modifications into model.


cancel

public void cancel()
This method performs cancel all modifications into model.


setProject

public void setProject(org.eclipse.core.resources.IProject project)
Parameters:
project - the project to set