Search in sources :

Example 11 with WindowProperty

use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.

the class PropsUI method loadScreens.

public void loadScreens() {
    screens = new Hashtable<String, WindowProperty>();
    int nr = 1;
    String name = properties.getProperty("ScreenName" + nr);
    while (name != null) {
        boolean max = YES.equalsIgnoreCase(properties.getProperty(STRING_SIZE_MAX + nr));
        int x = Const.toInt(properties.getProperty(STRING_SIZE_X + nr), 0);
        int y = Const.toInt(properties.getProperty(STRING_SIZE_Y + nr), 0);
        int w = Const.toInt(properties.getProperty(STRING_SIZE_W + nr), 320);
        int h = Const.toInt(properties.getProperty(STRING_SIZE_H + nr), 200);
        WindowProperty winprop = new WindowProperty(name, max, x, y, w, h);
        screens.put(name, winprop);
        nr++;
        name = properties.getProperty("ScreenName" + nr);
    }
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty) Point(org.pentaho.di.core.gui.Point)

Example 12 with WindowProperty

use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.

the class SQLEditor method dispose.

public void dispose() {
    props.setScreen(new WindowProperty(shell));
    shell.dispose();
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty)

Example 13 with WindowProperty

use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.

the class ArgumentsDialog method dispose.

private void dispose() {
    props.setScreen(new WindowProperty(shell));
    shell.dispose();
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty)

Example 14 with WindowProperty

use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.

the class BrowserEnvironmentWarningDialog method dispose.

/**
 * dispose
 *
 * used to dispose the dialog.
 */
public void dispose() {
    props.setScreen(new WindowProperty(shell));
    shell.dispose();
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty)

Example 15 with WindowProperty

use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.

the class CheckResultDialog method dispose.

public void dispose() {
    props.setScreen(new WindowProperty(shell));
    shell.dispose();
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty)

Aggregations

WindowProperty (org.pentaho.di.ui.core.gui.WindowProperty)151 Point (org.pentaho.di.core.gui.Point)4 Rectangle (org.eclipse.swt.graphics.Rectangle)3 Monitor (org.eclipse.swt.widgets.Monitor)3 PropsUI (org.pentaho.di.ui.core.PropsUI)3 Composite (org.eclipse.swt.widgets.Composite)2 KettleExtensionPoint (org.pentaho.di.core.extension.KettleExtensionPoint)2 ValueMetaString (org.pentaho.di.core.row.value.ValueMetaString)2 MalformedURLException (java.net.MalformedURLException)1 ParseException (java.text.ParseException)1 ResourceBundle (java.util.ResourceBundle)1 MessagingException (javax.mail.MessagingException)1 FileObject (org.apache.commons.vfs2.FileObject)1 FileSystemException (org.apache.commons.vfs2.FileSystemException)1 SWTException (org.eclipse.swt.SWTException)1 SashForm (org.eclipse.swt.custom.SashForm)1 DropTarget (org.eclipse.swt.dnd.DropTarget)1 DropTargetEvent (org.eclipse.swt.dnd.DropTargetEvent)1 DropTargetListener (org.eclipse.swt.dnd.DropTargetListener)1 FileTransfer (org.eclipse.swt.dnd.FileTransfer)1