org.infai.emo.matcher.editor.wizard.impl
Class ModOpWizard

java.lang.Object
  extended by org.infai.emo.matcher.editor.wizard.Wizard
      extended by org.infai.emo.matcher.editor.wizard.impl.ModOpWizard

public class ModOpWizard
extends Wizard

This wizard is used to load the models for the comparison and to configure the comparison-settings.

Version:
1.0.0
Author:
Stanley Hillner
See Also:
Wizard

Field Summary
private  ModelMatcherEditor editor
          The editor from which the wizard was called or which shall be opened by the wizard.
private  java.lang.String m1Path
          The path of the file which contains the first model.
private  java.lang.String m2Path
          The path of the file which contains the second model.
private  java.lang.String mmPath
          The path of the file which contains the meta-model.
 
Constructor Summary
ModOpWizard(java.lang.String title, ModelMatcherEditor editor)
          This constructor initializes the wizard by adding some pages and building the UI.
 
Method Summary
 boolean computeCancel()
          This method is the central action to be executed after clicking the cancel-button.
 boolean computeFinish()
          This method is the central action to be executed after clicking the finish-button.
 ModelMatcherEditor getEditor()
           
 java.lang.String getM1Path()
           
 java.lang.String getM2Path()
           
 java.lang.String getMmPath()
           
 void openWizard()
          Method opens the pre-built wizard if the number of pages is different from 0.
 void setEditor(ModelMatcherEditor editor)
           
 void setM1Path(java.lang.String path)
           
 void setM2Path(java.lang.String path)
           
 void setMmPath(java.lang.String mmPath)
           
 
Methods inherited from class org.infai.emo.matcher.editor.wizard.Wizard
addPage, disableBack, disableFinish, disableNext, enableBack, enableFinish, enableNext, getDisplay, getPages, getShell, setPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m1Path

private java.lang.String m1Path
The path of the file which contains the first model.


m2Path

private java.lang.String m2Path
The path of the file which contains the second model.


mmPath

private java.lang.String mmPath
The path of the file which contains the meta-model.


editor

private ModelMatcherEditor editor
The editor from which the wizard was called or which shall be opened by the wizard.

See Also:
ModelMatcherEditor
Constructor Detail

ModOpWizard

public ModOpWizard(java.lang.String title,
                   ModelMatcherEditor editor)
This constructor initializes the wizard by adding some pages and building the UI.

Parameters:
title - the title for the editor that shall be shown in the title-bar.
editor - the editor.
See Also:
ModelMatcherEditor
Method Detail

openWizard

public void openWizard()
Method opens the pre-built wizard if the number of pages is different from 0.

Overrides:
openWizard in class Wizard

computeFinish

public boolean computeFinish()
This method is the central action to be executed after clicking the finish-button.
Users must implement this method.
Note: After executing this method the wizard will be closed automatically.

Specified by:
computeFinish in class Wizard
Returns:
true if this method finished without errors.

computeCancel

public boolean computeCancel()
This method is the central action to be executed after clicking the cancel-button.
Users must implement this method.
Note: After executing this method the wizard will be closed automatically.

Specified by:
computeCancel in class Wizard
Returns:
true if this method finished without errors.

getEditor

public ModelMatcherEditor getEditor()
Returns:
the editor which will be opened by clicking the finish-button.
See Also:
ModelMatcherEditor

setEditor

public void setEditor(ModelMatcherEditor editor)
Parameters:
editor - the editor for the comparison.
See Also:
ModelMatcherEditor

getM1Path

public java.lang.String getM1Path()
Returns:
the path for the first model.

setM1Path

public void setM1Path(java.lang.String path)
Parameters:
path - the path for the first model.

getM2Path

public java.lang.String getM2Path()
Returns:
the path for the second model.

setM2Path

public void setM2Path(java.lang.String path)
Parameters:
path - the path for the second model.

getMmPath

public java.lang.String getMmPath()
Returns:
the path for the meta-model.

setMmPath

public void setMmPath(java.lang.String mmPath)
Parameters:
mmPath - the path for the meta-model.