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()
          Deprecated. Using such a static method is a cheap way to get around the problem of finding the right context for an operation. This may fail in some situations. Therefore, a more generic and reliable solution for managing the context of things that happen in view management must be found.
static void log(IStatus status)
          Convenience method for dropping log infos.
 
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()
Deprecated. Using such a static method is a cheap way to get around the problem of finding the right context for an operation. This may fail in some situations. Therefore, a more generic and reliable solution for managing the context of things that happen in view management must be found.

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, which may be null if there is no open editor

log

public static void log(IStatus status)
Convenience method for dropping log infos.

Parameters:
status - a status to be logged