org.eclipse.etrice.ui.commands.handlers
Class ExportDiagramsHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by org.eclipse.etrice.ui.commands.handlers.ExportDiagramsHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

public class ExportDiagramsHandler
extends org.eclipse.core.commands.AbstractHandler


Field Summary
protected  IResourceValidator resourceValidator
          
Constructor Summary
ExportDiagramsHandler()
           
 
Method Summary
protected  boolean checkPrerequisites(XtextEditor xtextEditor, IXtextDocument document, java.lang.String fragment)
           
 java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
           
protected  void exportDiagrams(RoomModel model, org.eclipse.core.runtime.IPath modelPath, Shell shell)
           
 boolean hasIssues(IXtextDocument xtextDocument, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean isEnabled()
           
 
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceValidator

Constructor Detail

ExportDiagramsHandler

public ExportDiagramsHandler()
Method Detail

execute

public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
                         throws org.eclipse.core.commands.ExecutionException
Throws:
org.eclipse.core.commands.ExecutionException

exportDiagrams

protected void exportDiagrams(RoomModel model,
                              org.eclipse.core.runtime.IPath modelPath,
                              Shell shell)

checkPrerequisites

protected boolean checkPrerequisites(XtextEditor xtextEditor,
                                     IXtextDocument document,
                                     java.lang.String fragment)

hasIssues

public boolean hasIssues(IXtextDocument xtextDocument,
                         org.eclipse.core.runtime.IProgressMonitor monitor)

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.eclipse.core.commands.IHandler
Overrides:
isEnabled in class org.eclipse.core.commands.AbstractHandler