Examples of load()


Examples of net.sourceforge.ganttproject.io.GanttTXTOpen.load()

    }

    public void run(GanttProject project, UIFacade uiFacade, File selectedFile, boolean merge) {
        GanttTXTOpen opener = new GanttTXTOpen(project.getTree(), project,
                project.getArea(), project.getTaskManager());
        opener.load(selectedFile);
        project.setModified();
    }

}
View Full Code Here

Examples of net.sourceforge.ganttproject.io.GanttXMLOpen.load()

                            RoleTagHandler rolesHandler = new RoleTagHandler(
                                    RoleManager.Access.getInstance());
                            loader.addTagHandler(tagHandler);
                            loader.addTagHandler(dependencyHandler);
                            loader.addTagHandler(rolesHandler);
                            loader.load(file);
                            // myproject.setQuickSave (true);
                            // myproject.quickSave ("Import Resources");
                        }
                    });
        }
View Full Code Here

Examples of net.sourceforge.ganttproject.parser.GPParser.load()

            opener.addTagHandler(holidayHandler);
            opener.addParsingListener(holidayHandler);
            //
            PortfolioTagHandler portfolioHandler = new PortfolioTagHandler();
            opener.addTagHandler(portfolioHandler);
            if (opener.load(getInputStream())) {
                mySuccessState.enter();
            } else {
                myFailureState.enter();
            }
        }
View Full Code Here

Examples of net.sourceforge.javaocr.ocrPlugins.mseOCR.TrainingImageLoader.load()

      try {
         TrainingImageLoader loader = new TrainingImageLoader();
         HashMap<Character, ArrayList<TrainingImage>> hashMap = new HashMap<Character, ArrayList<TrainingImage>>();
         for (int i = 0; i < 10; i++) {
            File file = new File(SystemConfiguration.TRAINING_DIRECTORY, "char" + i + ".png");
            loader.load(frame, file.getAbsolutePath(), new CharacterRange('0' + i, '0' + i), hashMap);
         }
         scanner.addTrainingImages(hashMap);
      } catch (IOException e) {
         throw new RuntimeException(e);
      }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.IBytecodeReferenceable.load()

    TypeDescriptor[] types = new TypeDescriptor[parameters.length];
   
    for (int p=0; p<parameters.length; p++) {
      IBytecodeReferenceable parameter = parameters[p];
      parameter.load(context);
      types[p] = parameter.getType();
    }
   
    context.getWriter().invoke(context, parent == null ? method.getDeclaringType() :
      context.getResolutionPool().resolve(parent.getType().getClassName()), method);
View Full Code Here

Examples of net.sourceforge.processdash.hier.DashHierarchy.load()

    private static void loadProcessTemplate(DashHierarchy templates,
                                            InputStream in, boolean close)
        throws IOException
    {
        DashHierarchy template = new DashHierarchy(null);
        template.load(in, close);
        createScriptMaps(template);

        templates.putAll(template);
    }
View Full Code Here

Examples of net.sourceforge.processdash.tool.export.impl.ExternalResourceAutoLocator.load()

                    String directory = instr.getDirectory();
                    if (directory != null && directory.length() > 0)
                        loader.addImportedPath(directory);
                    return null;
                }});
            mapper.loadMappings(loader.load(baseDir));
            // NOTE: this style of resource mapping is not supported by the
            // "default map data source" functionality at this time.
        }
    }
View Full Code Here

Examples of net.sourceforge.processdash.tool.export.impl.ExternalResourceManifestXMLv1.load()

    public void loadDefaultMappings() {
        String setting = System.getProperty(DEFAULT_MAP_DATA_SOURCE_PROPERTY);
        if (StringUtils.hasValue(setting)) {
            File mapDataSource = new File(setting);
            ExternalResourceManifestXMLv1 loader = new ExternalResourceManifestXMLv1();
            loadMappings(loader.load(mapDataSource));
        }
    }
   
    public boolean loadMappings(Map mappings) {
        pathRemappings = normalizeMappings(mappings);
View Full Code Here

Examples of net.sourceforge.processdash.util.FileProperties.load()

      Properties nullProps = new Properties();
      FileProperties newProps = new FileProperties(nullProps, nullProps);
      try {
          FileInputStream in = new FileInputStream(srcFile);
          newProps.load(in);
          in.close();
      } catch (Exception e) {
          return;
      }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.xml.XMLBeanReader.load()

  {
    File prefsFile = new ApplicationFiles().getUserPreferencesFile();
    try
    {
      XMLBeanReader doc = new XMLBeanReader();
      doc.load(prefsFile);
      Iterator it = doc.iterator();
      if (it.hasNext())
      {
        return (SquirrelPreferences)it.next();
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.