Search in sources :

Example 71 with WindowProperty

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

the class PaloCubeCreateDialog method dispose.

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

Example 72 with WindowProperty

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

the class JobEntryDummyDialog method dispose.

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

Example 73 with WindowProperty

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

the class JobEntryAddResultFilenamesDialog method dispose.

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

Example 74 with WindowProperty

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

the class JobEntryCheckDbConnectionsDialog method dispose.

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

Example 75 with WindowProperty

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

the class Spoon method saveSettings.

public void saveSettings() {
    if (shell.isDisposed()) {
        // we cannot save the settings, it's too late
        return;
    }
    WindowProperty windowProperty = new WindowProperty(shell);
    windowProperty.setName(APP_TITLE);
    props.setScreen(windowProperty);
    props.setLogLevel(DefaultLogLevel.getLogLevel().getCode());
    if (sashform.getWeights()[0] != 0) {
        props.setSashWeights(sashform.getWeights());
    }
    // Also save the open files...
    // Go over the list of tabs, then add the info to the list
    // of open tab files in PropsUI
    // 
    props.getOpenTabFiles().clear();
    for (TabMapEntry entry : delegates.tabs.getTabs()) {
        String fileType = null;
        String filename = null;
        String directory = null;
        int openType = 0;
        if (entry.getObjectType() == ObjectType.TRANSFORMATION_GRAPH) {
            fileType = LastUsedFile.FILE_TYPE_TRANSFORMATION;
            TransMeta transMeta = (TransMeta) entry.getObject().getManagedObject();
            filename = rep != null ? transMeta.getName() : transMeta.getFilename();
            directory = transMeta.getRepositoryDirectory().toString();
            openType = LastUsedFile.OPENED_ITEM_TYPE_MASK_GRAPH;
            entry.setObjectName(transMeta.getName());
        } else if (entry.getObjectType() == ObjectType.JOB_GRAPH) {
            fileType = LastUsedFile.FILE_TYPE_JOB;
            JobMeta jobMeta = (JobMeta) entry.getObject().getManagedObject();
            filename = rep != null ? jobMeta.getName() : jobMeta.getFilename();
            directory = jobMeta.getRepositoryDirectory().toString();
            openType = LastUsedFile.OPENED_ITEM_TYPE_MASK_GRAPH;
            entry.setObjectName(jobMeta.getName());
        }
        if (fileType != null) {
            props.addOpenTabFile(fileType, filename, directory, rep != null, rep != null ? rep.getName() : null, openType);
        }
    }
    props.saveProps();
}
Also used : WindowProperty(org.pentaho.di.ui.core.gui.WindowProperty) JobMeta(org.pentaho.di.job.JobMeta) TransMeta(org.pentaho.di.trans.TransMeta) ValueMetaString(org.pentaho.di.core.row.value.ValueMetaString) Point(org.pentaho.di.core.gui.Point) KettleExtensionPoint(org.pentaho.di.core.extension.KettleExtensionPoint)

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