use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.
the class PreviewSelectDialog method dispose.
public void dispose() {
props.setScreen(new WindowProperty(shell));
shell.dispose();
}
use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.
the class RegexEvalHelperDialog method dispose.
public void dispose() {
props.setScreen(new WindowProperty(shell));
shell.dispose();
}
use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.
the class SlaveServerDialog method dispose.
public void dispose() {
props.setScreen(new WindowProperty(shell));
shell.dispose();
}
use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.
the class PropsUI method setDefault.
public void setDefault() {
FontData fd;
RGB col;
lastUsedFiles = new ArrayList<LastUsedFile>();
lastUsedRepoFiles = new LinkedHashMap<>();
openTabFiles = new ArrayList<LastUsedFile>();
screens = new Hashtable<String, WindowProperty>();
properties.setProperty(STRING_LOG_LEVEL, getLogLevel());
properties.setProperty(STRING_LOG_FILTER, getLogFilter());
if (display != null) {
// Set Default Look for all dialogs and sizes.
String prop = BasePropertyHandler.getProperty("Default_UI_Properties_Resource", "org.pentaho.di.ui.core.default");
try {
ResourceBundle bundle = ResourceBundle.getBundle(prop);
if (bundle != null) {
Enumeration<String> enumer = bundle.getKeys();
String theKey;
while (enumer.hasMoreElements()) {
theKey = enumer.nextElement();
properties.setProperty(theKey, bundle.getString(theKey));
}
}
} catch (Exception ex) {
// don't throw an exception, but log it.
ex.printStackTrace();
}
fd = getFixedFont();
properties.setProperty(STRING_FONT_FIXED_NAME, fd.getName());
properties.setProperty(STRING_FONT_FIXED_SIZE, "" + fd.getHeight());
properties.setProperty(STRING_FONT_FIXED_STYLE, "" + fd.getStyle());
fd = getDefaultFont();
properties.setProperty(STRING_FONT_DEFAULT_NAME, fd.getName());
properties.setProperty(STRING_FONT_DEFAULT_SIZE, "" + fd.getHeight());
properties.setProperty(STRING_FONT_DEFAULT_STYLE, "" + fd.getStyle());
fd = getDefaultFont();
properties.setProperty(STRING_FONT_GRAPH_NAME, fd.getName());
properties.setProperty(STRING_FONT_GRAPH_SIZE, "" + fd.getHeight());
properties.setProperty(STRING_FONT_GRAPH_STYLE, "" + fd.getStyle());
fd = getDefaultFont();
properties.setProperty(STRING_FONT_GRID_NAME, fd.getName());
properties.setProperty(STRING_FONT_GRID_SIZE, "" + fd.getHeight());
properties.setProperty(STRING_FONT_GRID_STYLE, "" + fd.getStyle());
fd = getDefaultFont();
properties.setProperty(STRING_FONT_NOTE_NAME, fd.getName());
properties.setProperty(STRING_FONT_NOTE_SIZE, "" + fd.getHeight());
properties.setProperty(STRING_FONT_NOTE_STYLE, "" + fd.getStyle());
col = getBackgroundRGB();
properties.setProperty(STRING_BACKGROUND_COLOR_R, "" + col.red);
properties.setProperty(STRING_BACKGROUND_COLOR_G, "" + col.green);
properties.setProperty(STRING_BACKGROUND_COLOR_B, "" + col.blue);
col = getGraphColorRGB();
properties.setProperty(STRING_GRAPH_COLOR_R, "" + col.red);
properties.setProperty(STRING_GRAPH_COLOR_G, "" + col.green);
properties.setProperty(STRING_GRAPH_COLOR_B, "" + col.blue);
properties.setProperty(STRING_ICON_SIZE, "" + getIconSize());
properties.setProperty(STRING_LINE_WIDTH, "" + getLineWidth());
properties.setProperty(STRING_SHADOW_SIZE, "" + getShadowSize());
properties.setProperty(STRING_MAX_UNDO, "" + getMaxUndo());
setSashWeights(getSashWeights());
}
}
use of org.pentaho.di.ui.core.gui.WindowProperty in project pentaho-kettle by pentaho.
the class PropsUI method storeScreens.
public void storeScreens() {
// Add screens hash table to properties..
//
Enumeration<String> keys = screens.keys();
int nr = 1;
while (keys.hasMoreElements()) {
String name = keys.nextElement();
properties.setProperty("ScreenName" + nr, name);
WindowProperty winprop = screens.get(name);
properties.setProperty(STRING_SIZE_MAX + nr, winprop.isMaximized() ? YES : NO);
if (winprop.getRectangle() != null) {
properties.setProperty(STRING_SIZE_X + nr, "" + winprop.getX());
properties.setProperty(STRING_SIZE_Y + nr, "" + winprop.getY());
properties.setProperty(STRING_SIZE_W + nr, "" + winprop.getWidth());
properties.setProperty(STRING_SIZE_H + nr, "" + winprop.getHeight());
}
nr++;
}
}
Aggregations