/** * 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) { 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 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; }
/** * 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; }
/** * Set the properties. */ public IFuture<Void> setProperties(Properties props) { Properties firstprops = props.getSubproperty("first"); if(firstprops!=null) p1.setProperties(firstprops); Properties secondprops = props.getSubproperty("second"); if(secondprops!=null) p2.setProperties(secondprops); splitpanel.setDividerLocation(props.getIntProperty("split_location")); return IFuture.DONE; }
/** * Set the properties. */ public IFuture<Void> setProperties(Properties props) { Properties firstprops = props.getSubproperty("first"); if(firstprops!=null) p1.setProperties(firstprops); Properties secondprops = props.getSubproperty("second"); if(secondprops!=null) p2.setProperties(secondprops); splitpanel.setDividerLocation(props.getIntProperty("split_location")); return IFuture.DONE; }
if(windowprops != null) int w = windowprops.getIntProperty("width"); int h = windowprops.getIntProperty("height"); int x = windowprops.getIntProperty("x"); int y = windowprops.getIntProperty("y"); window.setBounds(x, y, w, h); int es = windowprops.getIntProperty("extendedState"); window.setExtendedState(es);
if(windowprops != null) int w = windowprops.getIntProperty("width"); int h = windowprops.getIntProperty("height"); int x = windowprops.getIntProperty("x"); int y = windowprops.getIntProperty("y"); window.setBounds(x, y, w, h); int es = windowprops.getIntProperty("extendedState"); window.setExtendedState(es);
/** * 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; }
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); } });
concurrency = props.getIntProperty("concurrency"); if(concurrency==-1) tfpar.getModel().setSelectedItem("all");
concurrency = props.getIntProperty("concurrency"); if(concurrency==-1) tfpar.getModel().setSelectedItem("all");