Package org.destecs.ide.core.resources

Examples of org.destecs.ide.core.resources.IDestecsProject


    if (model.isOk())
    {
      return true; // no need to do any work
    } else
    {
      final IDestecsProject currentProject = this;

      final IProgressMonitor mon = monitor;
      ISafeRunnable runnable = new ISafeRunnable()
      {
View Full Code Here


    if(configurations.size() == 0)
    {
      return;
    }
   
    IDestecsProject dProject = (IDestecsProject) project.getAdapter(IDestecsProject.class);
    File base = dProject.getOutputFolder().getLocation().toFile();

    DestecsAcaDebugTarget acaTarget = new DestecsAcaDebugTarget(launch, project, new File(base, outputPreFix), configurations);
    launch.addDebugTarget(acaTarget);

    AcaSimulationManager manager = new AcaSimulationManager(acaTarget);
View Full Code Here

            {
              // Show error
              return;
            }

            IDestecsProject dproject = (IDestecsProject) project.getAdapter(IDestecsProject.class);
            dePath.setText(dproject.getVdmModelFolder().getProjectRelativePath().toString());
            fProjectText.setText(project.getName());
          }

        }
      }
View Full Code Here

  public void performApply(ILaunchConfigurationWorkingCopy configuration)
  {
    if (getProject() != null)
    {
      IDestecsProject p = (IDestecsProject) getProject().getAdapter(IDestecsProject.class);
      if (p.getContractFile() != null)
      {
        configuration.setAttribute(IDebugConstants.DESTECS_LAUNCH_CONFIG_CONTRACT_PATH, p.getContractFile().getProjectRelativePath().toString());
      }else
      {
       
      }
    }
View Full Code Here

      return false;
    }

    selectScenarioButton.setEnabled(true);

    IDestecsProject destecsProject = (IDestecsProject) getProject().getAdapter(IDestecsProject.class);
    DestecsModel destecsModel = destecsProject.getModel();

    IPreferenceStore store = DestecsUIPlugin.getDefault().getPreferenceStore();
    Boolean typeCheck = store.getBoolean(IDestecsPreferenceConstants.ACTIVATE_DESTECSCHECK_PREFERENCE);

    if (!destecsModel.isOk())
View Full Code Here

      configurations = generator.generate();
    } catch (Exception e1) {
      throw new CoreException(new Status(IStatus.ERROR, "DESTECS Debug", e1.getMessage()));
    }

    IDestecsProject dProject = (IDestecsProject) project.getAdapter(IDestecsProject.class);
    File base = dProject.getOutputFolder().getLocation().toFile();

    DestecsAcaDebugTarget acaTarget = new DestecsAcaDebugTarget(launch, project, new File(base, outputPreFix), configurations);
    launch.addDebugTarget(acaTarget);

    AcaSimulationManager manager = new AcaSimulationManager(acaTarget);
View Full Code Here

        CoSimLaunchConfigurationTab cosimLaunchTab = (CoSimLaunchConfigurationTab) tab;
        IProject project = cosimLaunchTab.getProject();
        if (project != null)
        {
          ContractParserWrapper parser = new ContractParserWrapper();
          IDestecsProject dproject = (IDestecsProject) project.getAdapter(IDestecsProject.class);

          Contract contract;
          try
          {
            if (dproject == null)
            {
              return;
            }
            File file = dproject.getContractFile().getLocation().toFile();
            if (!file.exists())
            {
              return;
            }
            contract = parser.parse(file);
View Full Code Here

    if (projects.containsKey(project.getName()))
      return projects.get(project.getName());
    else
    {

      IDestecsProject p = getLeastAccessed();
      if (p != null)
      {
        lastAccessed.remove(p);
        lastAccessed.add(project);
      }
View Full Code Here

  }

  protected void storeProperties(IProgressMonitor monitor, Properties props)
      throws CoreException
  {
    IDestecsProject dp = (IDestecsProject) getProject().getAdapter(IDestecsProject.class);
    if (dp != null)
    {
      IFile file = dp.getVdmModelFolder().getFile(".metadata");

      ByteArrayOutputStream out = new ByteArrayOutputStream();
      try
      {
        props.store(out, "");
      } catch (IOException e)
      {
        VdmMetadataBuilderPlugin.log("Failed to store metadatafile for project: "+getProject(), e);
      }

      if (file.exists())
      {
        file.setContents(new ByteArrayInputStream(out.toByteArray()), IFile.FORCE, monitor);
      } else if( dp.getVdmModelFolder().isAccessible() &&  dp.getVdmModelFolder().exists())
      {
        file.create(new ByteArrayInputStream(out.toByteArray()), IFile.FORCE, monitor);
      }

    }
View Full Code Here

                System.out.println("ended add builder thread");
                return;
              }

              System.out.println("Adding builder for: " + p);
              IDestecsProject project = DestecsProject.createProject(p);
              Assert.isNotNull(project, "VDM Project creation faild for project: "
                  + p);
//              try
//              {
//                if (!project.hasBuilder())
View Full Code Here

TOP

Related Classes of org.destecs.ide.core.resources.IDestecsProject

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.