|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.widgets.Widget org.eclipse.swt.widgets.Control org.eclipse.swt.widgets.Scrollable org.eclipse.swt.widgets.Composite org.infai.emo.matcher.editor.pages.ModelComparatorPage
public class ModelComparatorPage
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).
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 |
---|
private ModelMatcherTreeViewer leftTree
ModelMatcherTreeViewer
private ModelMatcherTreeViewer rightTree
ModelMatcherTreeViewer
private ModelMatcherCanvas can
ModelMatcherCanvas
private ModelMatcherEditor editor
ModelMatcherEditor
private java.lang.String metaModelPath
private Model leftModel
Model
private Model rightModel
Model
private Model metaModel
Model
private java.lang.String model1Path
private java.lang.String model2Path
private org.eclipse.swt.widgets.Composite comp
Composite
Constructor Detail |
---|
public ModelComparatorPage(org.eclipse.swt.widgets.Composite parent, int style, ModelMatcherEditor e)
parent
- the Composite on which the page can organize its components.style
- the SWT-style used for the Composite.e
- this is the MultiPageEditor that contains this page.SWT
,
ModelMatcherEditor
Method Detail |
---|
public ModelMatcherTreeViewer getLeftTree()
ModelMatcherTreeViewer
public ModelMatcherTreeViewer getRightTree()
ModelMatcherTreeViewer
public ModelMatcherCanvas getCan()
ModelMatcherCanvas
public ModelMatcherEditor getEditor()
ModelMatcherEditor
public java.lang.String getMetaModelPath()
public void setMetaModelPath(java.lang.String metaModelPath)
metaModelPath
- the path for the meta-model.public Model getLeftModel()
Model
public void setLeftModel(Model leftModel)
leftModel
- the left model of the comparison.Model
public Model getRightModel()
Model
public void setRightModel(Model rightModel)
rightModel
- the right model of the comparison.Model
public Model getMetaModel()
Model
public void setMetaModel(Model metaModel)
metaModel
- the meta-model.Model
public java.lang.String getModel1Path()
public void setModel1Path(java.lang.String model1Path)
model1Path
- the path for the first model of the comparison.public java.lang.String getModel2Path()
public void setModel2Path(java.lang.String model2Path)
model2Path
- the path for the second model of the comparison.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |