org.eclipse.datatools.sqltools.routineeditor.ui.launching.internal
Class SaveRoutineStatusHandler

java.lang.Object
  extended by org.eclipse.datatools.sqltools.routineeditor.ui.launching.internal.SaveRoutineStatusHandler
All Implemented Interfaces:
org.eclipse.debug.core.IStatusHandler

public class SaveRoutineStatusHandler
extends java.lang.Object
implements org.eclipse.debug.core.IStatusHandler

Author:
Hui Cao

Field Summary
static java.lang.String PREF_SAVE_DIRTY_EDITORS_BEFORE_LAUNCH
          String preference controlling whether editors are saved before launching.
 
Constructor Summary
SaveRoutineStatusHandler()
           
 
Method Summary
 java.lang.Object handleStatus(org.eclipse.core.runtime.IStatus status, java.lang.Object source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREF_SAVE_DIRTY_EDITORS_BEFORE_LAUNCH

public static final java.lang.String PREF_SAVE_DIRTY_EDITORS_BEFORE_LAUNCH
String preference controlling whether editors are saved before launching. Valid values are either "always", "never", or "prompt". If "always" or "never", launching will save editors (or not) automatically. If "prompt", the user will be prompted each time.

Since:
1.6
See Also:
Constant Field Values
Constructor Detail

SaveRoutineStatusHandler

public SaveRoutineStatusHandler()
Method Detail

handleStatus

public java.lang.Object handleStatus(org.eclipse.core.runtime.IStatus status,
                                     java.lang.Object source)
                              throws org.eclipse.core.runtime.CoreException
Specified by:
handleStatus in interface org.eclipse.debug.core.IStatusHandler
Throws:
org.eclipse.core.runtime.CoreException