org.eclipse.gmt.umlx
Class Environment

java.lang.Object
  extended by org.eclipse.gmt.umlx.Environment
All Implemented Interfaces:
IEnvironment
Direct Known Subclasses:
EditorEnvironment

public class Environment
extends java.lang.Object
implements IEnvironment

EditorEnvironment provides the environment when editing (rather than testing).


Constructor Summary
Environment()
           
 
Method Summary
 java.lang.Object getClipboardContents()
          Get the current clip-board contents.
 void logException(java.lang.Throwable e, boolean showErrorDialog)
          Log an exception to the Console Error Log, and optionally show it in a prompter.
 void setClipboardContents(java.lang.Object contents)
          Set the current clip-board contents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Environment

public Environment()
Method Detail

getClipboardContents

public java.lang.Object getClipboardContents()
Description copied from interface: IEnvironment
Get the current clip-board contents.

Specified by:
getClipboardContents in interface IEnvironment
Returns:
the current clip-board contents

logException

public void logException(java.lang.Throwable e,
                         boolean showErrorDialog)
Description copied from interface: IEnvironment
Log an exception to the Console Error Log, and optionally show it in a prompter.

Specified by:
logException in interface IEnvironment
Parameters:
e - the exception
showErrorDialog - true to show exception in a prompter.

setClipboardContents

public void setClipboardContents(java.lang.Object contents)
Description copied from interface: IEnvironment
Set the current clip-board contents.

Specified by:
setClipboardContents in interface IEnvironment
Parameters:
contents - the new (non-null) contents