Package org.sintef.umt.project

Examples of org.sintef.umt.project.ProjectEditor


        String gendir = "src";
               
        if (current_store_dir != null && !(current_store_dir.equals(""))){
          gendir = current_store_dir + System.getProperty("file.separator") + gendir;
        }
        ProjectEditor current = null;
        try {
          current = projectmanager.getCurrentProject();
        if (current != null) {
          gendir = current.getGenDir ();
          gendir = current.getLocation() + System.getProperty("file.separator") + gendir;
          String userfile = current.getUserPropertiesFile();
          PropertyGroup userprops = current.getUserProperties();
         
          if (userfile != null && !userfile.equals("")) {
            // Create the user parameters and store them to the file
           
            // get directory from the location of the 'implementation'
View Full Code Here


      } else if (action.equalsIgnoreCase("delete")){
        projectmanager.selectProject("delete");
      } else if (action.equalsIgnoreCase("delete_current")) {
        String current = projectmanager.getCurrentProjectName();
        String id = "";
          ProjectEditor editor = projectmanager.getCurrentProject();
          if (editor != null)
              id = projectmanager.getCurrentProject().getId();
        int result = JOptionPane.showConfirmDialog(UMTMain.this, "Sure you want to delete current project '" + current + "'");
        if (result == JOptionPane.OK_OPTION) {
          projectmanager.closeProject();
View Full Code Here

    }
    public void projectOpened (String project, String location, String id) {
      UMTMain.this.setTitle(title + " [" + project + "]");
      try {
        pimviewer.closeView();
        ProjectEditor current = projectmanager.getCurrentProject();
        if (current != null)
            transformationeditor.addPropertyGroupEditorLister(current);
        String[] sources = current.getSources();
        // File sourcefile = new File (location + System.getProperty("file.separator") + source);
       
        // For now, only open the first file....
        for (int i = 0; i < sources.length; i++) {
          File sourcefile = new File(sources[i]);
          doOpenAnyFile (sourcefile, false, "class");             
        }
        // TODO: ADD RECENT PROJECT....
        _workcontext.setState(WorkContext.STATE_OPENED_PROJECT);       

      } catch (Exception ex) {
        output.addLine("" + ex.getMessage());
      }
      setMenuEnabled (project_menuitems, true);
      setMenuEnabled (model_menuitems, true);           
      tab.setEnabledAt(PROJECT_TAB_INDEX, true);
        ProjectEditor peditor = projectmanager.getCurrentProject();
        if (peditor != null)
            tab.setComponentAt(PROJECT_TAB_INDEX, peditor.getProjectViewer());
   
View Full Code Here

      /* Launch profiles editor */   
      launchEditor (profileeditor, "Edit Profiles");       
    } else if (action.equalsIgnoreCase("Preferences")) {
      showPreferences ();
    } else if (action.equalsIgnoreCase("RefreshSource")) {
      ProjectEditor pe = projectmanager.getCurrentProject();
      if (pe != null) {
        projectmanager.doOpenProject(pe.getId());
      } else {
        if (current_source != null && !(current_source.equals(""))){
          openSelectedFile (current_source);
        }           
      }         
View Full Code Here

      // TODO: Check for updates etc.
      // The source already has a project -- ask user to open this.. or just open it
     
      projectmanager.createProjectDialog(name,location,source.getAbsolutePath(), type);
     
      ProjectEditor editor = projectmanager.getCurrentProject();
      if (editor != null)
          projectmanager.doOpenProject(editor.getName());
  }
View Full Code Here

   * Get the current project name
   *
   */
 
  public static String getProjectName () {
    ProjectEditor project_editor = null;
    if (projectmanager != null)
        project_editor = projectmanager.getCurrentProject();
    if (project_editor != null)
        return project_editor.getName();
    return "";
  }
View Full Code Here

 
  /**
   * Get the current project location
   */
  public static String getProjectLocation () {
    ProjectEditor project_editor = null;
    project_editor = projectmanager.getCurrentProject();
    if (project_editor != null)
      return project_editor.getLocation();
    return "";
  }
View Full Code Here

  }
 
  private void storeSettings () {
    profileeditor.store();
    transformationeditor.store();   
      ProjectEditor editor = projectmanager.getCurrentProject();
      if (editor != null)
          editor.saveProject();
  }
View Full Code Here

TOP

Related Classes of org.sintef.umt.project.ProjectEditor

Copyright © 2018 www.massapicom. 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.