org.jupe.editors.classdiagram
Class EditorRunnable

java.lang.Object
  extended by org.jupe.editors.classdiagram.EditorRunnable
All Implemented Interfaces:
java.lang.Runnable, IEditorRunnable

public class EditorRunnable
extends java.lang.Object
implements IEditorRunnable

Author:
Roman Wolf

Constructor Summary
EditorRunnable(org.eclipse.core.resources.IFile file, java.lang.Class kind, boolean activePerspectiveOnly, java.lang.String perspectiveId)
          Constructor
 
Method Summary
 org.eclipse.ui.IEditorPart getEditor()
          
 void run()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorRunnable

public EditorRunnable(org.eclipse.core.resources.IFile file,
                      java.lang.Class kind,
                      boolean activePerspectiveOnly,
                      java.lang.String perspectiveId)
Constructor

Parameters:
file - file to check
kind - editor class
activePerspectiveOnly - if true check active perspective only, false otherwise
perspectiveId - perspective id
Method Detail

getEditor

public org.eclipse.ui.IEditorPart getEditor()

Specified by:
getEditor in interface IEditorRunnable
Returns:
IEditorPart

run

public void run()

Specified by:
run in interface java.lang.Runnable