roneditor.dialogs
Class MatchDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by roneditor.dialogs.AbstractMatchDialog
          extended by roneditor.dialogs.MatchDialog
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.gef.commands.CommandStackEventListener

public class MatchDialog
extends AbstractMatchDialog

Subclasses of AbstractMatchDialog are meant to adapt AbstractMatchDialog to a concrete RONEditor by implementing the following methods.

Author:
Tony Modica

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class roneditor.dialogs.AbstractMatchDialog
currentCompletionPos
 
Constructor Summary
MatchDialog(java.util.ArrayList<ronmodel.Rule> rules, java.util.ArrayList<ronmodel.ObjectNet> objectNets)
          Main constructor for this dialog.
 
Method Summary
protected  org.eclipse.gef.commands.Command buildCreateMappingCommand(ronmodel.Codomain codomain, ronmodel.ONNode source, ronmodel.ONNode target)
           
protected  org.eclipse.gef.commands.Command buildDeleteMappingCommand(ronmodel.Mapping mapping)
           
protected  org.eclipse.jface.action.MenuManager createContextMenuProvider(org.eclipse.gef.GraphicalViewer viewer, org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
           
protected  org.eclipse.gef.EditPartFactory createEditPartFactory()
           
protected  org.eclipse.gef.Tool createMappingTool()
           
 
Methods inherited from class roneditor.dialogs.AbstractMatchDialog
buttonAllCompletionsMouseUp, buttonApplyRuleMouseUp, buttonCancelMouseUp, buttonNextMatchMouseUp, buttonNextNetMouseUp, buttonNextRuleMouseUp, buttonPreviousMatchMouseUp, buttonPreviousNetMouseUp, buttonPreviousRuleMouseUp, getCommandStack, getCurrentRule, getHLPlace, getMatchToApply, getObjectNet, getObjectNetCopy, getTarget, isAdapterForType, isCanceled, notifyChanged, open, setTarget, stackChanged
 
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchDialog

public MatchDialog(java.util.ArrayList<ronmodel.Rule> rules,
                   java.util.ArrayList<ronmodel.ObjectNet> objectNets)
Main constructor for this dialog.

Parameters:
rules - The rules that can be switched through for match-setting. Must contain at least 1 rule.
objectNets - The target object nets that can be switched through for match-setting. Must contain at least 1 object net.
Method Detail

createContextMenuProvider

protected org.eclipse.jface.action.MenuManager createContextMenuProvider(org.eclipse.gef.GraphicalViewer viewer,
                                                                         org.eclipse.gef.ui.actions.ActionRegistry actionRegistry)
Specified by:
createContextMenuProvider in class AbstractMatchDialog
Returns:

createEditPartFactory

protected org.eclipse.gef.EditPartFactory createEditPartFactory()
Specified by:
createEditPartFactory in class AbstractMatchDialog
Returns:

createMappingTool

protected org.eclipse.gef.Tool createMappingTool()
Specified by:
createMappingTool in class AbstractMatchDialog
Returns:

buildCreateMappingCommand

protected org.eclipse.gef.commands.Command buildCreateMappingCommand(ronmodel.Codomain codomain,
                                                                     ronmodel.ONNode source,
                                                                     ronmodel.ONNode target)
Specified by:
buildCreateMappingCommand in class AbstractMatchDialog
Returns:

buildDeleteMappingCommand

protected org.eclipse.gef.commands.Command buildDeleteMappingCommand(ronmodel.Mapping mapping)
Specified by:
buildDeleteMappingCommand in class AbstractMatchDialog
Returns: