de.cau.cs.kieler.core.ui.util
Class EditorUtils

java.lang.Object
  extended by de.cau.cs.kieler.core.ui.util.EditorUtils

public final class EditorUtils
extends Object

Static utility class for working with editors.

Rating red

Method Summary
static IEditorPart getLastActiveEditor()
          Return the last active editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLastActiveEditor

public static IEditorPart getLastActiveEditor()
Return the last active editor. Returns the active editor of the current page if it is not null. This might happen when you maximize a view and minimize it again. Returns the first editor of any open editors if the active editor is null.

Returns:
the last open active editor, maybe null if there is no open editor or called from non-UI thread