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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations