Package tool.repository

Examples of tool.repository.FScript


      return;
    }
    // get a connection to fscript
   
    IProject project = getProject(configuration);
    FScript repos = ToolBuilder.getRepository(project);
    String planName = configuration.getAttribute(IToolLaunchConstants.PLAN_NAME, "");
    try {
      repos.runPlan(planName);
    } catch (ToolRepositoryException e) {
      ToolPlugin.showError("Error running plan: " + planName, e);
    }
   
  }
View Full Code Here


    button.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        if (repositoryText.getText().trim().isEmpty())
          return;
        FScript repos = new FScript(ToolProjectSupport.getForteRoot(),
            repositoryText.getText().trim(),
            "", "", forteLoggerFlagsValueText.getText(), true);
        try {
          workspaces = repos.ListWorkspaces();
        } catch (ToolSystemException e1) {
          ToolPlugin.showError("Tool repository error", e1);
        } catch (InvalidToolRepositoryException e1) {
          ToolPlugin.showError("Tool repository error", e1);
        }
View Full Code Here

   *
   * @param project
   * @return
   */
  public static FScript getRepository(IProject project){
    FScript repos = null;
    try {
      repos = (FScript)project.getSessionProperty(new QualifiedName(ToolProjectSupport.PROJECT_QUALIFIED_NAME, ToolProjectSupport.REPOS_OBJECT));
      if (repos == null){
        /*
         * create a ToolRepository based on the project properties
         * and store it as a session property
         */
       
        String forteRoot = project.getPersistentProperty(ToolProjectSupport.forteRootQualifiedName);
        String repository = project.getPersistentProperty(ToolProjectSupport.reposQualifiedName);
        String workspace = project.getPersistentProperty(ToolProjectSupport.workspaceQualifiedName);
        String workspacePassword = project.getPersistentProperty(ToolProjectSupport.worspacePasswordQualifiedName);
        String logFlags = project.getPersistentProperty(ToolProjectSupport.loggerQualifiedName);
        repos = new FScript(forteRoot, repository, workspace, workspacePassword, logFlags, true);
        project.setSessionProperty(new QualifiedName(ToolProjectSupport.PROJECT_QUALIFIED_NAME, ToolProjectSupport.REPOS_OBJECT), repos);
      }
     
    } catch (CoreException e) {
      ToolPlugin.showError("Error getting repository", e);
View Full Code Here

TOP

Related Classes of tool.repository.FScript

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.