Examples of load()


Examples of megamek.common.Board.load()

    public void previewBoard() {
        String boardName = (String) lisBoardsAvailable.getSelectedValue();
        if (lisBoardsAvailable.getSelectedIndex() > 2) {
            IBoard board = new Board(Integer.parseInt(texBoardWidth.getText()),
                    Integer.parseInt(texBoardHeight.getText()));
            board.load(boardName + ".board");
            if (chkRotateBoard.isSelected()) {
                BoardUtilities.flip(board, true, true);
            }
            MapPreview mapPreview = null;
            try {
View Full Code Here

Examples of megamek.common.IBoard.load()

    public void previewBoard() {
        String boardName = (String) lisBoardsAvailable.getSelectedValue();
        if (lisBoardsAvailable.getSelectedIndex() > 2) {
            IBoard board = new Board(Integer.parseInt(texBoardWidth.getText()),
                    Integer.parseInt(texBoardHeight.getText()));
            board.load(boardName + ".board");
            if (chkRotateBoard.isSelected()) {
                BoardUtilities.flip(board, true, true);
            }
            MapPreview mapPreview = null;
            try {
View Full Code Here

Examples of mireka.transmission.queue.dataprop.DataProperties.load()

        try {
            File propertiesFile = new File(dir, mailName.envelopeFileName());
            InputStream propertiesStream = new FileInputStream(propertiesFile);
            DataProperties properties = new DataProperties();
            try {
                properties
                        .load(new InputStreamReader(propertiesStream, "UTF-8"));
            } catch (UnsupportedEncodingException e) {
                throw new RuntimeException(e); // impossible
            } finally {
                propertiesStream.close();
View Full Code Here

Examples of modbuspal.generator.Generator.load()

                if( gen==null )
                {
                    throw new InstantiationException("Generator "+className+" cannot be instanciated");
                }
               
                gen.load(node);
                addGenerator(gen);
            }
        }
    }
View Full Code Here

Examples of mx4j.persist.PersisterMBean.load()

   public void load() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
   {
      PersisterMBean persister = findPersister();
      if (persister != null)
      {
         ModelMBeanInfo info = (ModelMBeanInfo)persister.load();
         setModelMBeanInfo(info);
      }
   }

   public void store() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
View Full Code Here

Examples of name.abuchen.portfolio.util.IniFileManipulator.load()

        // be cleared for the next runs

        try
        {
            IniFileManipulator m = new IniFileManipulator();
            m.load();
            m.unsetClearPersistedState();
            if (m.isDirty())
                m.save();
        }
        catch (IOException ignore)
View Full Code Here

Examples of name.shamansir.mvp4glayoutdemo.client.page.company.view.widget.CompanyPortlet.load()

    @Override
    public void showCompanies(Set<Company> companies, UrlBuilder url) {
        panel.clear();
        for (Company company: companies) {
            CompanyPortlet portlet = new CompanyPortlet();
            portlet.load(company,
                    url.from(P.COMPANY_SHOW, String.valueOf(company.getId())));
            portlet.createView();
            panel.add(portlet.getMainView());
        }
    }
View Full Code Here

Examples of net.alteiar.campaign.player.tools.PropertieBase.load()

  }

  public PluginInfo(File dir) throws IOException {
    PropertieBase propertie = new PropertieBase(dir.getCanonicalPath()
        + "/plugin.prop");
    propertie.load();

    // LOAD GENERAL INFO ABOUT PLUGIN
    name = propertie.getValue(PROP_PLUGIN_NAME);
    corePlugin = propertie.getValue(PROP_CLASS_CORE_PLUGIN_NAME);
    documentPlugin = propertie.getValue(PROP_CLASS_DOCUMENT_PLUGIN_NAME);
View Full Code Here

Examples of net.aufdemrand.denizencore.interfaces.dExternal.load()

                    try {
                        compilationUnit.addJavaSource(fileName.replace(".java", ""), readFile(f.getAbsolutePath()));
                        ClassLoader classLoader = javaSourceCompiler.compile(compilationUnit);
                        Class<dExternal> load = (Class<dExternal>) classLoader.loadClass(fileName.replace(".java", ""));
                        dExternal loadedClass = load.newInstance();
                        loadedClass.load();
                        loadedExternals.add(loadedClass);
                    } catch (Exception e) {
                        if (e instanceof IllegalStateException) {
                            dB.echoError("No JDK found! External .java files will not be loaded.");
                            dB.echoError(e);
View Full Code Here

Examples of net.augeas.Augeas.load()

        File fl = File.createTempFile("_rhq", null);
        //write the 'to' file to disk
        FileUtils.writeStringToFile(fl, contents);
        aug.set(transformPrefix + "/lens", lens);
        aug.set(transformPrefix + "/incl", fl.getAbsolutePath());
        aug.load();
        return aug;
    }

    private String normalizeToUnix(byte[] contents) throws UnsupportedEncodingException {
        String s = new String(contents, "UTF8");
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.