Examples of load()


Examples of org.freeplane.core.io.xml.TreeXmlReader.load()

  }

  protected void load(final URI xmlFile) throws MalformedURLException, XMLException, IOException {
    final TreeXmlReader reader = new TreeXmlReader(readManager);
    reader.load(new InputStreamReader(new BufferedInputStream(xmlFile.toURL().openStream())));
  }
 
  public synchronized LOAD_RETURN_TYPE loadProject(AWorkspaceProject project) throws IOException {
    try {
      File projectSettings = new File(URIUtils.getAbsoluteFile(project.getProjectDataPath()),"settings.xml");
View Full Code Here

Examples of org.freeplane.core.resources.components.OptionPanelBuilder.load()

        if (!addOn.supportsOperation(AddOnProperties.OP_CONFIGURE)) {
          JOptionPane.showMessageDialog(ManageAddOnsPanel.this, getText("cannot.configure", addOn.getTranslatedName()), "Freeplane", JOptionPane.ERROR_MESSAGE);
        }
        else {
          OptionPanelBuilder optionPanelBuilder = new OptionPanelBuilder();
          optionPanelBuilder.load(new StringReader(addOn.getPreferencesXml()));
          MModeController.createPropertyAction(optionPanelBuilder).actionPerformed(e);
        }
      }
    };
  }
View Full Code Here

Examples of org.freeplane.features.url.UrlManager.load()

    UrlManager loader = UrlManager.getController();
    final File file = loader.defaultTemplateFile();
    if (file != null) {
      try {
        MapModel styleMapContainer = new MapModel();
        loader.load(Compat.fileToUrl(file), styleMapContainer);
        if (null != MapStyleModel.getExtension(styleMapContainer)){
          moveStyle(styleMapContainer, map, false);
          return;
        }
      }
View Full Code Here

Examples of org.gedcom4j.parser.GedcomParser.load()

     * @throws IOException
     */
    @Test
    public void testToStringBigFile() throws IOException, GedcomParserException {
        GedcomParser gp = new GedcomParser();
        gp.load("sample/5.5.1 sample 1.ged");
        Gedcom g = gp.gedcom;

        for (Family f : g.families.values()) {
            assertNotNull(f.customTags.toString());
            assertFalse(0 == f.customTags.hashCode());
View Full Code Here

Examples of org.geoserver.config.util.XStreamPersister.load()

                    throws IOException {
                XStreamPersister p = xpf.createXMLPersister();
                p.setCatalog( catalog );
               
                configurePersister(p,this);
                return p.load( in, clazz );
            }
        };
    }
   
    @Override
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleService.load()

    @Override
    protected void doOnChange() {       
        GeoServerRoleService theService = getService();
        try {
            if (theService!=null)
                theService.load();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.geoserver.security.GeoServerRoleStore.load()

                for (GeoServerRole role : remove)
                    gaStore.disAssociateRoleFromGroup(role, group.getGroupname());       
                gaStore.store();
            }       
        } catch (IOException ex) {
            try {gaStore.load(); } catch (IOException ex2) {};
            throw ex;
        }

    }
View Full Code Here

Examples of org.geoserver.security.GeoServerUserGroupService.load()

    @Override
    protected void doOnChange() {
        GeoServerUserGroupService theService = getService();
        try {
            if (theService!=null)
                theService.load();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
   
View Full Code Here

Examples of org.geoserver.security.GeoServerUserGroupStore.load()

                store.store();
            };
        } catch (IOException ex) {
            try {
                //try to reload the store
                store.load();
            } catch (IOException ex2) {};
            throw ex;
        }

        GeoServerRoleStore gaStore = null;
View Full Code Here

Examples of org.geoserver.security.validation.UserGroupStoreValidationWrapper.load()

                ugStore.associateUserToGroup(user, group);
            }
            ugStore.store();

        } catch (IOException ex) {
            try {ugStore.load(); } catch (IOException ex2) {};
            throw ex;
        } catch (PasswordPolicyException ex) {          
            try {ugStore.load(); } catch (IOException ex2) {};
            throw ex;
        }
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.