/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties ps) { int refresh = 5000; if(ps!=null) { refresh = ps.getIntProperty("defrefresh"); remotecb.setSelected(ps.getBooleanProperty("dfremote")); } for(int i=0; i<rb_refresh.length; i++) { if(((Integer)rb_refresh[i].getClientProperty("refresh")).intValue()==refresh) rb_refresh[i].doClick(); } return IFuture.DONE; }
/** * Advices the the panel to restore its properties from the argument */ public IFuture<Void> setProperties(Properties ps) { int refresh = 5000; if(ps!=null) { refresh = ps.getIntProperty("defrefresh"); remotecb.setSelected(ps.getBooleanProperty("dfremote")); } for(int i=0; i<rb_refresh.length; i++) { if(((Integer)rb_refresh[i].getClientProperty("refresh")).intValue()==refresh) rb_refresh[i].doClick(); } return IFuture.DONE; }
/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { final boolean exe = props.getBooleanProperty("executing"); return access.getExternalAccess().scheduleImmediate(new IComponentStep<Void>() { public IFuture<Void> execute(IInternalAccess ia) { // startoninit==false means service already running if(exe && !executing && !startoninit) { start(); } else if(!exe && executing) { pause(); } else if(!exe) { startoninit = false; } return IFuture.DONE; } }); }
/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { final boolean exe = props.getBooleanProperty("executing"); return access.getExternalAccess().scheduleStep(new ImmediateComponentStep<Void>() { public IFuture<Void> execute(IInternalAccess ia) { // startoninit==false means service already running if(exe && !executing && !startoninit) { start(); } else if(!exe && executing) { pause(); } else if(!exe) { startoninit = false; } return IFuture.DONE; } }); }
/** * Update from given properties. */ public IFuture<Void> setProperties(Properties props) { final boolean exe = props.getBooleanProperty("executing"); return access.getExternalAccess().scheduleImmediate(new IComponentStep<Void>() { public IFuture<Void> execute(IInternalAccess ia) { // startoninit==false means service already running if(exe && !executing && !startoninit) { start(); } else if(!exe && executing) { pause(); } else if(!exe) { startoninit = false; } 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; }
/** * 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; }
boolean selected = props.getBooleanProperty(checkboxes[i].getText());
public void customResultAvailable(IResourceIdentifier rid) { lastrid = rid; Property[] aargs = props.getProperties("argument"); loadargs = new String[aargs.length]; for(int i=0; i<aargs.length; i++) { loadargs[i] = aargs[i].getValue(); } final String mo = props.getStringProperty("model"); if(mo!=null) { lastfile = mo; loadconfig = props.getStringProperty("config"); loadname = props.getStringProperty("name"); reloadModel(); } setStartSuspended(props.getBooleanProperty("startsuspended")); setAutoGenerate(props.getBooleanProperty("autogenerate")); numcomponents.setValue(Integer.valueOf(props.getIntProperty("number"))); ret.setResult(null); } });
public void customResultAvailable(IResourceIdentifier rid) { lastrid = rid; Property[] aargs = props.getProperties("argument"); loadargs = new String[aargs.length]; for(int i=0; i<aargs.length; i++) { loadargs[i] = aargs[i].getValue(); } final String mo = props.getStringProperty("model"); if(mo!=null) { lastfile = mo; loadconfig = props.getStringProperty("config"); loadname = props.getStringProperty("name"); reloadModel(); } setStartSuspended(props.getBooleanProperty("startsuspended")); setAutoGenerate(props.getBooleanProperty("autogenerate")); numcomponents.setValue(Integer.valueOf(props.getIntProperty("number"))); ret.setResult(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);
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);
saveonexit = saveonexit && windowprops.getBooleanProperty("saveonexit");
saveonexit = saveonexit && windowprops.getBooleanProperty("saveonexit");
.equals(controlcenter.getPlatformAccess().getComponentIdentifier().getPlatformName())) consoleenabled = props.getBooleanProperty("consoleenabled"); console.setConsoleEnabled(consoleenabled);
.equals(controlcenter.getPlatformAccess().getComponentIdentifier().getPlatformName())) consoleenabled = props.getBooleanProperty("consoleenabled"); console.setConsoleEnabled(consoleenabled);
teststable.setAllowDuplicates(props.getBooleanProperty("allowduplicates")); allowduplicates.setSelected(props.getBooleanProperty("allowduplicates"));
/** * 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")); } } }