de.frag.umlplugin.actions
Class ExportGraphAction

java.lang.Object
  extended by com.intellij.openapi.actionSystem.AnAction
      extended by de.frag.umlplugin.actions.ExportGraphAction
All Implemented Interfaces:
Graph2DViewConsumer

public class ExportGraphAction
extends com.intellij.openapi.actionSystem.AnAction
implements Graph2DViewConsumer

Exports graphs to files (to images for example).


Field Summary
 
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
EMPTY_ARRAY, ourClientProperty
 
Constructor Summary
ExportGraphAction()
           
 
Method Summary
 void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
          Open dialog to select file format and export graph to selected file.
 void setGraph2DViewProvider(Graph2DViewProvider graph2DViewProvider)
          Sets the graph view provider that provides access to graph views.
 
Methods inherited from class com.intellij.openapi.actionSystem.AnAction
beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, createTooltipText, displayTextInToolbar, getShortcutSet, getTemplatePresentation, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, unregisterCustomShortcutSet, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportGraphAction

public ExportGraphAction()
Method Detail

setGraph2DViewProvider

public void setGraph2DViewProvider(@NotNull
                                   Graph2DViewProvider graph2DViewProvider)
Sets the graph view provider that provides access to graph views.

Specified by:
setGraph2DViewProvider in interface Graph2DViewConsumer
Parameters:
graph2DViewProvider - new provider

actionPerformed

public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
Open dialog to select file format and export graph to selected file.

Specified by:
actionPerformed in class com.intellij.openapi.actionSystem.AnAction
Parameters:
e - Carries information on the invocation place