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

java.lang.Object
  extended by org.infai.emo.matcher.editor.wizard.WizardPage
      extended by org.infai.emo.matcher.editor.wizard.impl.LoadPage

public class LoadPage
extends WizardPage

This page contains the file-choosers for the models.
It is plugged into the wizard as a wizard-page.

Version:
1.0.0
Author:
Stanley Hillner
See Also:
WizardPage

Field Summary
private  org.eclipse.swt.widgets.Button browseM1
          The browse-button for the model-1-file-chooser.
private  org.eclipse.swt.widgets.Button browseM2
          The browse-button for the model-2-file-chooser.
private  org.eclipse.swt.widgets.Button browseMM
          The browse-button for the meta-model-file-chooser.
private  boolean crossProduct
          This flag indicates whether a full cross-product between both models shall be used for the matching.
private  org.eclipse.swt.widgets.Button crossProductButton
          The button that indicates the use of a full cross-product between both models.
private  java.lang.String m1Path
          The path for the first model.
private  java.lang.String m2Path
          The path for the second model.
private  java.lang.String mmPath
          The path of the meta-model that describes the definition of the models.
private  org.eclipse.swt.widgets.Button noCrossProductButton
          The button that indicates to not use a full cross-product between both models.
private  org.eclipse.swt.widgets.Text textM1
          The text-field that contains the path of the first model.
private  org.eclipse.swt.widgets.Text textM2
          The text-field that contains the path of the second model.
private  org.eclipse.swt.widgets.Text textMM
          The text-field that contains the path of the meta-model.
 
Constructor Summary
LoadPage()
          Creates a new LoadPage but does not initialize the UI.
 
Method Summary
private  void addListeners()
          Method adds the Listeners to the Buttons and the text-fields so that the models can be selected and a check for the existence of the models can be provided.
private  void checkInputs()
          Checks whether the file extensions of both model-files equal.
 void createPage(org.eclipse.swt.widgets.Composite parent)
          Creates the UI for the page.
 java.lang.String getM1Path()
           
 java.lang.String getM2Path()
           
 java.lang.String getMmPath()
           
 java.lang.String getPageDescription()
          
 java.lang.String getPageTitle()
          
 void setM1Path(java.lang.String path)
           
 void setM2Path(java.lang.String path)
           
 void setMmPath(java.lang.String mmPath)
           
 boolean useCrossProduct()
           
 
Methods inherited from class org.infai.emo.matcher.editor.wizard.WizardPage
getImage, getPage, getWizard, setImage, setPage, setWizard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mmPath

private java.lang.String mmPath
The path of the meta-model that describes the definition of the models.


m1Path

private java.lang.String m1Path
The path for the first model.


m2Path

private java.lang.String m2Path
The path for the second model.


textM1

private org.eclipse.swt.widgets.Text textM1
The text-field that contains the path of the first model.

See Also:
Text

textM2

private org.eclipse.swt.widgets.Text textM2
The text-field that contains the path of the second model.

See Also:
Text

textMM

private org.eclipse.swt.widgets.Text textMM
The text-field that contains the path of the meta-model.

See Also:
Text

browseM1

private org.eclipse.swt.widgets.Button browseM1
The browse-button for the model-1-file-chooser.

See Also:
Button

browseM2

private org.eclipse.swt.widgets.Button browseM2
The browse-button for the model-2-file-chooser.

See Also:
Button

browseMM

private org.eclipse.swt.widgets.Button browseMM
The browse-button for the meta-model-file-chooser.

See Also:
Button

crossProductButton

private org.eclipse.swt.widgets.Button crossProductButton
The button that indicates the use of a full cross-product between both models.

See Also:
Button

noCrossProductButton

private org.eclipse.swt.widgets.Button noCrossProductButton
The button that indicates to not use a full cross-product between both models.

See Also:
Button

crossProduct

private boolean crossProduct
This flag indicates whether a full cross-product between both models shall be used for the matching.

Constructor Detail

LoadPage

public LoadPage()
Creates a new LoadPage but does not initialize the UI.

Method Detail

createPage

public void createPage(org.eclipse.swt.widgets.Composite parent)
Creates the UI for the page.
This method must create the GUI for this page.

Specified by:
createPage in class WizardPage
Parameters:
parent - the Composite on which the page can be created.
See Also:
Composite

checkInputs

private void checkInputs()
Checks whether the file extensions of both model-files equal.
If yes the wizard can complete or call the next page


addListeners

private void addListeners()
Method adds the Listeners to the Buttons and the text-fields so that the models can be selected and a check for the existence of the models can be provided.


getPageTitle

public java.lang.String getPageTitle()

Specified by:
getPageTitle in class WizardPage
Returns:
the title of this page.

getPageDescription

public java.lang.String getPageDescription()

Specified by:
getPageDescription in class WizardPage
Returns:
the description for this page.

getMmPath

public java.lang.String getMmPath()
Returns:
the path of the file that contains the meta-model.

getM1Path

public java.lang.String getM1Path()
Returns:
the path of the file that contains the first model.

getM2Path

public java.lang.String getM2Path()
Returns:
the path of the file that contains the second model.

setMmPath

public void setMmPath(java.lang.String mmPath)
Parameters:
mmPath - the path of the file that contains the meta-model.

setM1Path

public void setM1Path(java.lang.String path)
Parameters:
path - the path of the file that contains the first model.

setM2Path

public void setM2Path(java.lang.String path)
Parameters:
path - the path of the file that contains the second model.

useCrossProduct

public boolean useCrossProduct()
Returns:
whether a full cross-product between both models shall be used for the comparison.