Package org.metaworks

Examples of org.metaworks.Type.createInstance()


              public void windowGainedFocus(WindowEvent e) {
               
                try {

                  final Type deployOrNot = new Type("Select forms to deploy");
                  final Instance deployInstance = deployOrNot.createInstance();

                  new ForLoop(){

                    public void logic(Object target) {
                      OpenedForm openedForm = (OpenedForm) target;
View Full Code Here


        defaultSettings.setFieldValue("Alias", alias);
        defaultSettings.setFieldValue("Version", new Integer(version+1));
        defaultSettings.setFieldValue("Author", getRevisionInfo());
      }*/

      ObjectInstance objInstance = (ObjectInstance)saveDialog.createInstance();
      objInstance.setObject(defaultSettings);
      inputForm.setInstance(objInstance);       
      inputForm.postInputDialog(this, "Confirm", "Confirm", saveDialog.getName());
     
      return emptyIfSuccess.isEmpty();
View Full Code Here

     
      settings.store(new FileOutputStream(GlobalContext.SETTING_FILE), null);
     
      for(Enumeration enumeration = settings.keys(); enumeration.hasMoreElements(); ){
        String k = (String)enumeration.nextElement();
        Instance rec = settingsTable.createInstance();
        rec.setFieldValue("property", k);
        rec.setFieldValue("value", settings.get(k));
        app.addInstance(rec);       
      }
    }catch(Exception e){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.