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 ChangedWarningInterface
getInstance()
String
getName()
protected org.pentaho.ui.xul.components.XulMessageBox
runXulChangedWarningDialog(String fileName)
static void
setInstance(ChangedWarningInterface cwi)
int
show()
Display a dialog asking the user if they want to save their work before closing the tabint
show(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 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 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:
show
in interfaceChangedWarningInterface
- Throws:
Exception
-
runXulChangedWarningDialog
protected org.pentaho.ui.xul.components.XulMessageBox runXulChangedWarningDialog(String fileName) throws IllegalArgumentException, org.pentaho.ui.xul.XulException
- Throws:
IllegalArgumentException
org.pentaho.ui.xul.XulException
-
-