ptolemy.vergil.gt
Class TransformationEditor.MatchAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by ptolemy.vergil.toolbox.FigureAction
          extended by ptolemy.vergil.gt.TransformationEditor.MatchAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
TransformationEditor.BatchMatchAction, TransformationEditor.SingleMatchAction
Enclosing class:
TransformationEditor

private class TransformationEditor.MatchAction
extends FigureAction


Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.vergil.toolbox.FigureAction
FigureAction.SourceType
 
Field Summary
private  GraphMatcher _matcher
           
private  MoMLParser _parser
           
 
Fields inherited from class ptolemy.vergil.toolbox.FigureAction
CANVAS_TYPE, CONTEXTMENU_TYPE, HOTKEY_TYPE, MENUBAR_TYPE, PASTE_OFFSET, TOOLBAR_TYPE
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
TransformationEditor.MatchAction(java.lang.String name)
           
 
Method Summary
protected  java.util.List<MatchResult> _getMatchResult(CompositeEntity model)
           
protected  CompositeEntity _getModel(java.io.File file)
           
protected  CompositeEntity _getModel(java.net.URL url)
           
protected  MatchResultViewer _showViewer(CompositeEntity model, java.util.List<MatchResult> results, java.lang.String sourceFileName)
           
 
Methods inherited from class ptolemy.vergil.toolbox.FigureAction
actionPerformed, getFigure, getFrame, getSourceType, getTarget, getX, getY, offsetFigure
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_matcher

private GraphMatcher _matcher

_parser

private MoMLParser _parser
Constructor Detail

TransformationEditor.MatchAction

TransformationEditor.MatchAction(java.lang.String name)
Method Detail

_getMatchResult

protected java.util.List<MatchResult> _getMatchResult(CompositeEntity model)

_getModel

protected CompositeEntity _getModel(java.io.File file)
                             throws java.net.MalformedURLException,
                                    java.lang.Exception
Throws:
java.net.MalformedURLException
java.lang.Exception

_getModel

protected CompositeEntity _getModel(java.net.URL url)
                             throws java.net.MalformedURLException,
                                    java.lang.Exception
Throws:
java.net.MalformedURLException
java.lang.Exception

_showViewer

protected MatchResultViewer _showViewer(CompositeEntity model,
                                        java.util.List<MatchResult> results,
                                        java.lang.String sourceFileName)
                                 throws IllegalActionException,
                                        NameDuplicationException
Throws:
IllegalActionException
NameDuplicationException