Examples of ProjectType


Examples of jSimMacs.data.ProjectType

   * @return object of ProjectType
   * @throws CloneNotSupportedException
   */
  public ProjectType findType(String typeName)
      throws CloneNotSupportedException {
    ProjectType searchKey = new ProjectType(typeName);
    int i = Collections.binarySearch(projectTypes, searchKey);
    if (i >= 0)
      return (ProjectType) projectTypes.get(i).clone();
    return null;
  }
View Full Code Here

Examples of jSimMacs.data.ProjectType

   * Creates Default XML File for Projects
   * @param project
   * @param projectFile
   */
  private void createProjectDefaultFile(Project project, File projectFile) {
    ProjectType type;
    try {
      type = findType(JSimConstants.EMPTYPROJECTSTRING);

      project.setType(type);
      IXMLWriter projectWriter = new ProjectSAXWriter(project);
View Full Code Here

Examples of jSimMacs.data.ProjectType

   * @param wizard
   * @param project
   */
  public void setUpWizard(JSimRunWizard wizard, Project project) {
    wizard.setProject(project);
    ProjectType type = project.getType();

    for (int i = 0; i < type.getCommandData().size(); ++i) {
      CommandStep cmdStep = type.getCommandData().get(i);
      if (cmdStep instanceof Pdb2gmxData) {
        wizard.addTab(type.getCommandData().get(i).getName(),
            new Pdb2gmxPanel(project, i));
      }
      if (cmdStep instanceof EditconfData) {
        wizard.addTab(type.getCommandData().get(i).getName(),
            new EditconfPanel(project, i));
      }
      if (cmdStep instanceof GenboxData) {
        wizard.addTab(type.getCommandData().get(i).getName(),
            new GenboxPanel(project, i));
      }
      if (cmdStep instanceof SimStepData) {
        wizard.addTab(type.getCommandData().get(i).getName()
            + " grompp", new GromppPanel(project, i));
        wizard.addTab(
            type.getCommandData().get(i).getName() + " mdrun",
            new MdrunPanel(project, i));
      }
    }

  }
View Full Code Here

Examples of jSimMacs.data.ProjectType

  public void startElement(String uri, String localName, String name,
      Attributes attributes) throws SAXException {

    if (name.equalsIgnoreCase(XMLConstants.PROJECT)) {
      project.setName(attributes.getValue(XMLConstants.PROJECTTYPENAME));
      ProjectType type = null;
      try {
        type = JSimLogic.getInstance().findType(
            attributes.getValue(XMLConstants.PROJECTATTRIBUTETYPE));
      } catch (CloneNotSupportedException e) {
        throw new SAXException(e);
View Full Code Here

Examples of jSimMacs.data.ProjectType

 
  private MdrunData mdrunData;

  public ProjectTypeIniHandler(ProjectType type) {
    if (type == null)
      type = new ProjectType();
    else
      this.type = type;
  }
View Full Code Here

Examples of net.sf.gum.xml.v1.ProjectType

        if( this.projectName.getText().trim().length() > 0 )
        {
          log.log( Level.FINEST, "Adding new project" );

          ProjectType projectType = new ProjectType();
          projectType.setTitle( this.projectName.getText().trim() );
          // this.gumData.getProject().add( projectType );
        }
      }

      this.newButton.setVisible( true );
View Full Code Here

Examples of net.sf.gum.xml.v1.ProjectType

    if( this.gumData == null )
    {
      this.gumData = new GumData();

      //TODO do this until the New Project functionality gets added...
      ProjectType p = new ProjectType();
      p.setTitle( "Big Brutus" );


//      List<ProjectType> projectTypes = this.gumData.getProject();


      ProjectType p2 = new ProjectType();
      p2.setTitle( "Mangy" );
     
      List<ProjectType> projectTypes = this.gumData.getProject();
      projectTypes.add( p );
      projectTypes.add( p2 );
      this.taskTree.setProjectType( p );
View Full Code Here

Examples of net.sf.gum.xml.v1.ProjectType

    Component component = super.getTreeCellRendererComponent( tree, value, selected, expanded, leaf, row, hasFocus );

    if( value instanceof ProjectType )
    {
      ProjectType p = (ProjectType) value;

      super.setText( p.getTitle() );
      //super.setBackgroundNonSelectionColor( Color.BLUE );

    }
    else if( value instanceof ItemType )
    {
View Full Code Here

Examples of net.sf.mpxj.primavera.schema.ProjectType

         if (projects.size() != 1)
         {
            throw new MPXJException("Exoecting 1 project, found " + projects.size());
         }

         ProjectType project = projects.get(0);

         processProjectHeader(apibo, project);
         processCalendars(apibo);
         processResources(apibo);
         processTasks(project);
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.model.ProjectType

            public Image getImage( Object element )
            {
                if ( element instanceof Project )
                {
                    ProjectType type = ( ( Project ) element ).getType();
                    switch ( type )
                    {
                        case OFFLINE:
                            return Activator.getDefault().getImage( PluginConstants.IMG_PROJECT_OFFLINE_CLOSED );
                        case ONLINE:
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.