/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties ps) { Property settings = ps.getProperty(PROPERTY_GUI_REFRESH); if(settings!=null) { sprefresh.setValue(Integer.valueOf(settings.getValue())); } return IFuture.DONE; }
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties ps) { Property settings = ps.getProperty(PROPERTY_GUI_REFRESH); if(settings!=null) { sprefresh.setValue(Integer.valueOf(settings.getValue())); } return IFuture.DONE; }
/** * Set the properties of the mechanism. */ public void setProperties(Properties props) { if(props.getProperty("responses")!=null) { setResponses(props.getIntProperty("responses")); } } }
/** * Set the properties of the mechanism. */ public void setProperties(Properties props) { // System.out.println("setProps"); if(props.getProperty("ttpcid")!=null) { IComponentIdentifier cid = props.getProperty("ttpcid").getValue()!=null? new BasicComponentIdentifier(props.getProperty("ttpcid").getValue()): null; setTTPCid(cid); // setTTPCid((IComponentIdentifier)JavaReader.objectFromXML(props.getProperty("responses").getValue(), null); } else if(props.getProperty("verify")!=null) { setverify(props.getBooleanProperty("verify")); } } }
/** * Set the properties of the mechanism. */ public void setProperties(Properties props) { // System.out.println("setProps"); if(props.getProperty("ttpcid")!=null) { IComponentIdentifier cid = props.getProperty("ttpcid").getValue()!=null? new ComponentIdentifier(props.getProperty("ttpcid").getValue()): null; setTTPCid(cid); // setTTPCid((IComponentIdentifier)JavaReader.objectFromXML(props.getProperty("responses").getValue(), null); } else if(props.getProperty("verify")!=null) { setverify(props.getBooleanProperty("verify")); } } }
/** * Set the properties of the mechanism. */ public void setProperties(Properties props) { if(props.getProperty("responses")!=null) { setResponses(props.getIntProperty("responses")); } } }
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties props) { cbshowchars.setSelected(props.getBooleanProperty("showchars")); ((JTabbedPane)inner).setSelectedIndex(props.getIntProperty("selected_tab")); if(props.getProperty("sph")!=null) sph.setDividerLocation(props.getDoubleProperty("sph")); if(props.getProperty("spv")!=null) spv.setDividerLocation(props.getDoubleProperty("spv")); return IFuture.DONE; }
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties props) { cbshowchars.setSelected(props.getBooleanProperty("showchars")); ((JTabbedPane)inner).setSelectedIndex(props.getIntProperty("selected_tab")); if(props.getProperty("sph")!=null) sph.setDividerLocation(props.getDoubleProperty("sph")); if(props.getProperty("spv")!=null) spv.setDividerLocation(props.getDoubleProperty("spv")); return IFuture.DONE; }
/** * Set properties loaded from project. */ public IFuture<Void> setProperties(Properties ps) { int timemode = ps.getProperty("timemode")!=null ? ps.getIntProperty("timemode") : 2; setTimemode(timemode); updateView(); return IFuture.DONE; }
/** * Set properties loaded from project. */ public IFuture<Void> setProperties(Properties ps) { int timemode = ps.getProperty("timemode")!=null ? ps.getIntProperty("timemode") : 2; setTimemode(timemode); updateView(); return IFuture.DONE; }
private static void loadPreferencesIntoProperties(Properties props, IPreferences preferences, boolean preferFileProperties) { Map<String, ?> prefs = preferences.getAll(); for (Entry<String, ?> pref : prefs.entrySet()) { String[] key = pref.getKey().split("\\."); String targetPropValue = (String) pref.getValue(); Properties parentProps = props; for (int i = 0; i < key.length - 1; i++) { String id = key[i]; Properties childProps = parentProps.getSubproperty(id); if (childProps == null) { childProps = new Properties(null, id, null); parentProps.addSubproperties(childProps); } parentProps = childProps; } String targetPropId = key[key.length - 1]; Property targetProp = parentProps.getProperty(targetPropId); if (targetProp == null) { targetProp = new Property(targetPropId, targetPropValue); parentProps.addProperty(targetProp); } else if (!preferFileProperties){ parentProps.getProperty(targetPropId).setValue(targetPropValue); } } }
if(delay>0) setDelay(delay); setFastAwareness(props.getProperty("fast")!=null ? props.getBooleanProperty("fast") : true); setAutoCreateProxy(props.getProperty("autocreate")!=null ? props.getBooleanProperty("autocreate") : true); setAutoDeleteProxy(props.getProperty("autodelete")!=null ? props.getBooleanProperty("autodelete") : true);
Property prop = props.getProperty("perspective"); if(prop!=null) prop = props.getProperty("consoleheights"); if(prop!=null)
if(delay>0) setDelay(delay); setFastAwareness(props.getProperty("fast")!=null ? props.getBooleanProperty("fast") : true); setAutoCreateProxy(props.getProperty("autocreate")!=null ? props.getBooleanProperty("autocreate") : true); setAutoDeleteProxy(props.getProperty("autodelete")!=null ? props.getBooleanProperty("autodelete") : true);
if(delay>0) setDelay(delay); setFastAwareness(props.getProperty("fast")!=null ? props.getBooleanProperty("fast") : true); setAutoCreateProxy(props.getProperty("autocreate")!=null ? props.getBooleanProperty("autocreate") : true); setAutoDeleteProxy(props.getProperty("autodelete")!=null ? props.getBooleanProperty("autodelete") : true);
Property prop = props.getProperty("perspective"); if(prop!=null) prop = props.getProperty("consoleheights"); if(prop!=null)
if(props.getProperty("timeout")!=null) tfto.setText(timeout); if(props.getProperty("concurrency")!=null)
if(props.getProperty("timeout")!=null) tfto.setText(timeout); if(props.getProperty("concurrency")!=null)