org.pentaho.di.ui.spoon
Class ChangedWarningDialog

java.lang.Object
  extended by org.pentaho.di.ui.spoon.ChangedWarningDialog
All Implemented Interfaces:
ChangedWarningInterface

public class ChangedWarningDialog
extends Object
implements ChangedWarningInterface


Constructor Summary
ChangedWarningDialog()
           
 
Method Summary
static ChangedWarningInterface getInstance()
           
 String getName()
           
static void setInstance(ChangedWarningInterface cwi)
           
 int show()
          Display a dialog asking the user if they want to save their work before closing the tab
 int show(String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangedWarningDialog

public ChangedWarningDialog()
Method Detail

setInstance

public static void setInstance(ChangedWarningInterface cwi)

getInstance

public static ChangedWarningInterface getInstance()

getName

public String getName()

show

public int show()
         throws Exception
Description copied from interface: ChangedWarningInterface
Display a dialog asking the user if they want to save their work before closing the tab

Specified by:
show in interface ChangedWarningInterface
Returns:
The decision of the user: SWT.YES; SWT.NO; SWT.CANCEL
Throws:
Exception

show

public int show(String fileName)
         throws Exception
Specified by:
show in interface ChangedWarningInterface
Throws:
Exception