Package 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
-
-
Constructor Summary
Constructors Constructor Description ChangedWarningDialog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangedWarningInterfacegetInstance()StringgetName()protected org.pentaho.ui.xul.components.XulMessageBoxrunXulChangedWarningDialog(String fileName)static voidsetInstance(ChangedWarningInterface cwi)intshow()Display a dialog asking the user if they want to save their work before closing the tabintshow(String fileName)
-
-
-
Field Detail
-
result
protected String result
-
container
protected org.pentaho.ui.xul.XulDomContainer container
-
-
Method Detail
-
setInstance
public static void setInstance(ChangedWarningInterface cwi)
-
getInstance
public static ChangedWarningInterface getInstance()
-
getName
public String getName()
-
show
public int show() throws ExceptionDescription copied from interface:ChangedWarningInterfaceDisplay a dialog asking the user if they want to save their work before closing the tab- Specified by:
showin interfaceChangedWarningInterface- Returns:
- The decision of the user: SWT.YES; SWT.NO; SWT.CANCEL
- Throws:
Exception
-
show
public int show(String fileName) throws Exception
- Specified by:
showin interfaceChangedWarningInterface- Throws:
Exception
-
runXulChangedWarningDialog
protected org.pentaho.ui.xul.components.XulMessageBox runXulChangedWarningDialog(String fileName) throws IllegalArgumentException, org.pentaho.ui.xul.XulException
- Throws:
IllegalArgumentExceptionorg.pentaho.ui.xul.XulException
-
-