use of org.netbeans.core.windows.persistence.ModeConfig in project netbeans-rcp-lite by outersky.
the class ConfigFactory method createDefaultExplorerModeConfig.
private static ModeConfig createDefaultExplorerModeConfig() {
ModeConfig mc = new ModeConfig();
// NOI18N
mc.name = "explorer";
mc.bounds = null;
mc.relativeBounds = null;
mc.frameState = -1;
mc.state = Constants.MODE_STATE_JOINED;
mc.kind = Constants.MODE_KIND_VIEW;
mc.constraints = createDefaultExplorerConstraints();
// NOI18N
mc.selectedTopComponentID = "runtime";
mc.permanent = true;
mc.tcRefConfigs = createDefaultExplorerTCRefConfigs();
return mc;
}
use of org.netbeans.core.windows.persistence.ModeConfig in project netbeans-rcp-lite by outersky.
the class ConfigFactory method createDefaultFormModeConfig.
private static ModeConfig createDefaultFormModeConfig() {
ModeConfig mc = new ModeConfig();
mc.name = "Form";
mc.bounds = null;
mc.relativeBounds = null;
mc.frameState = -1;
mc.state = Constants.MODE_STATE_JOINED;
mc.kind = Constants.MODE_KIND_VIEW;
mc.constraints = createDefaultFormConstraints();
// NOI18N
mc.selectedTopComponentID = "ComponentInspector";
mc.permanent = true;
mc.tcRefConfigs = createDefaultFormTCRefConfigs();
return mc;
}
use of org.netbeans.core.windows.persistence.ModeConfig in project netbeans-rcp-lite by outersky.
the class WindowManagerImpl method updateModeConstraintsFromXml.
@Override
public boolean updateModeConstraintsFromXml(String xml) {
try {
ModeConfig modeConfig = PersistenceManager.getDefault().createModeFromXml(xml);
ModeImpl mode = findModeImpl(modeConfig.name);
mode.setConstraints(modeConfig.constraints);
return true;
} catch (IOException ex) {
Exceptions.printStackTrace(ex);
return false;
}
}
Aggregations