public class InteractionManager
extends java.lang.Object
Constructor and Description |
---|
InteractionManager(org.eclipse.jface.dialogs.DialogPage page,
org.eclipse.core.resources.IProject project,
java.lang.String actionType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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) |
public InteractionManager(org.eclipse.jface.dialogs.DialogPage page, org.eclipse.core.resources.IProject project, java.lang.String actionType)
page
- DialogPage where interactions are doneproject
- IProject representing the current project where user does modificationsactionType
- String representing action type to manipulate
(sample, test, timer, control, object, plugin)public void initContents()
public org.eclipse.swt.widgets.Composite createPluginContents(org.eclipse.swt.widgets.Composite arg0)
arg0
- Composite where contents must be created.public org.eclipse.swt.widgets.Composite createActionContents(org.eclipse.swt.widgets.Composite arg0)
arg0
- Composite where contents must be created.public void catchException(java.lang.Exception e)
e
- Exception to catchpublic void apply()
public void cancel()
public void setProject(org.eclipse.core.resources.IProject project)
project
- the project to set