org.pentaho.di.ui.spoon
Class ChangedWarningDialog
java.lang.Object
org.pentaho.di.ui.spoon.ChangedWarningDialog
- All Implemented Interfaces:
- ChangedWarningInterface
public class ChangedWarningDialog
- extends Object
- implements ChangedWarningInterface
ChangedWarningDialog
public ChangedWarningDialog()
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