org.infai.emo.matcher.editor.pages
Class ModelComparatorPage

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.infai.emo.matcher.editor.pages.ModelComparatorPage
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class ModelComparatorPage
extends org.eclipse.swt.widgets.Composite

This is the page that shows the matching between the models using a graphical representation.
The page is divided into 3 parts (2 TreeViewers and 1 Canvas).

Version:
1.0.0
Author:
Stanley Hillner
See Also:
ModelMatcherTreeViewer, ModelMatcherCanvas

Field Summary
private  ModelMatcherCanvas can
          The component of this page that provides a canvas for displaying the similarities between both models.
private  org.eclipse.swt.widgets.Composite comp
          The composite on which the GUI for this page is located.
private  ModelMatcherEditor editor
          The MultiPageEditor in which the page currently is located.
private  Model leftModel
          The Model for the left Tree.
private  ModelMatcherTreeViewer leftTree
          The component of this page that carries the first model of the comparison, consisting of a TreeViewer and a TableViewer.
private  Model metaModel
          The MetaModel.
private  java.lang.String metaModelPath
          The path of the meta-model that is used to work on the models.
private  java.lang.String model1Path
          The path of the left model.
private  java.lang.String model2Path
          The path of the right model.
private  Model rightModel
          The Model for the right Tree.
private  ModelMatcherTreeViewer rightTree
          The component of this page that carries the second model of the comparison, consisting of a TreeViewer and a TableViewer.
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
ModelComparatorPage(org.eclipse.swt.widgets.Composite parent, int style, ModelMatcherEditor e)
          The constructor of this page that creates the GUI.
 
Method Summary
 ModelMatcherCanvas getCan()
           
 ModelMatcherEditor getEditor()
           
 Model getLeftModel()
           
 ModelMatcherTreeViewer getLeftTree()
           
 Model getMetaModel()
           
 java.lang.String getMetaModelPath()
           
 java.lang.String getModel1Path()
           
 java.lang.String getModel2Path()
           
 Model getRightModel()
           
 ModelMatcherTreeViewer getRightTree()
           
 void setLeftModel(Model leftModel)
           
 void setMetaModel(Model metaModel)
           
 void setMetaModelPath(java.lang.String metaModelPath)
           
 void setModel1Path(java.lang.String model1Path)
           
 void setModel2Path(java.lang.String model2Path)
           
 void setRightModel(Model rightModel)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

leftTree

private ModelMatcherTreeViewer leftTree
The component of this page that carries the first model of the comparison, consisting of a TreeViewer and a TableViewer.

See Also:
ModelMatcherTreeViewer

rightTree

private ModelMatcherTreeViewer rightTree
The component of this page that carries the second model of the comparison, consisting of a TreeViewer and a TableViewer.

See Also:
ModelMatcherTreeViewer

can

private ModelMatcherCanvas can
The component of this page that provides a canvas for displaying the similarities between both models.

See Also:
ModelMatcherCanvas

editor

private ModelMatcherEditor editor
The MultiPageEditor in which the page currently is located.

See Also:
ModelMatcherEditor

metaModelPath

private java.lang.String metaModelPath
The path of the meta-model that is used to work on the models.


leftModel

private Model leftModel
The Model for the left Tree.
The Model contains all Elements that shall be displayed.

See Also:
Model

rightModel

private Model rightModel
The Model for the right Tree.
The Model contains all Elements that shall be displayed.

See Also:
Model

metaModel

private Model metaModel
The MetaModel.

See Also:
Model

model1Path

private java.lang.String model1Path
The path of the left model.


model2Path

private java.lang.String model2Path
The path of the right model.


comp

private org.eclipse.swt.widgets.Composite comp
The composite on which the GUI for this page is located.

See Also:
Composite
Constructor Detail

ModelComparatorPage

public ModelComparatorPage(org.eclipse.swt.widgets.Composite parent,
                           int style,
                           ModelMatcherEditor e)
The constructor of this page that creates the GUI.

Parameters:
parent - the Composite on which the page can organize its components.
Normally this Composite is the Composite which you can get from the MultiPageEditorPart using the getContainer() method.
style - the SWT-style used for the Composite.
e - this is the MultiPageEditor that contains this page.
See Also:
SWT, ModelMatcherEditor
Method Detail

getLeftTree

public ModelMatcherTreeViewer getLeftTree()
Returns:
the leftTree
See Also:
ModelMatcherTreeViewer

getRightTree

public ModelMatcherTreeViewer getRightTree()
Returns:
the rightTree
See Also:
ModelMatcherTreeViewer

getCan

public ModelMatcherCanvas getCan()
Returns:
the canvas for the matching-details.
See Also:
ModelMatcherCanvas

getEditor

public ModelMatcherEditor getEditor()
Returns:
the editor that contains this page.
See Also:
ModelMatcherEditor

getMetaModelPath

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

setMetaModelPath

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

getLeftModel

public Model getLeftModel()
Returns:
the left model of the comparison.
See Also:
Model

setLeftModel

public void setLeftModel(Model leftModel)
Parameters:
leftModel - the left model of the comparison.
See Also:
Model

getRightModel

public Model getRightModel()
Returns:
the right model of the comparison.
See Also:
Model

setRightModel

public void setRightModel(Model rightModel)
Parameters:
rightModel - the right model of the comparison.
See Also:
Model

getMetaModel

public Model getMetaModel()
Returns:
the meta-model.
See Also:
Model

setMetaModel

public void setMetaModel(Model metaModel)
Parameters:
metaModel - the meta-model.
See Also:
Model

getModel1Path

public java.lang.String getModel1Path()
Returns:
the path for the first model of the comparison.

setModel1Path

public void setModel1Path(java.lang.String model1Path)
Parameters:
model1Path - the path for the first model of the comparison.

getModel2Path

public java.lang.String getModel2Path()
Returns:
the path for the second model of the comparison.

setModel2Path

public void setModel2Path(java.lang.String model2Path)
Parameters:
model2Path - the path for the second model of the comparison.