Package org.eclipse.imp.model

Examples of org.eclipse.imp.model.ISourceProject


        try {
          if (!editor.isEditable()) return;
          IParseController pc = editor.getParseController();
          if (pc == null) return;
          IPath dpath = pc.getPath();
          ISourceProject project = pc.getProject();
          dpath = project != null ?
              project.getRawProject().getLocation().append(dpath)
              : dpath;
              System.err.println("The path is " + dpath);
              IWorkspace workspace= ResourcesPlugin.getWorkspace();
              final IFile dfile = workspace.getRoot().getFileForLocation(dpath);
              Job job = new Job("Compile " + dpath) {
View Full Code Here


   * them via calls to <code>fDependency.addDependency()</code>.
   */
  @Override public void collectDependencies(IFile file) {
   
    try {
      final ISourceProject sourceProject
        = ModelFactory.open(file.getProject());
      final String fromPath = file.getFullPath().toString();
      final FregeParseController.FregeData fd
        = new FregeParseController.FregeData(sourceProject);
      final String[] srcs = fd.getSp().split(System.getProperty("path.separator"));
View Full Code Here

      MarkerCreatorWithBatching markerCreator = new MarkerCreatorWithBatching(file, parseController, this);

      parseController.getAnnotationTypeInfo().addProblemMarkerType(
          getErrorMarkerID());

      ISourceProject sourceProject = ModelFactory.open(file.getProject());
      parseController.initialize(file.getProjectRelativePath(),
          sourceProject, markerCreator);

      String contents = BuilderUtils.getFileContents(file);
      final TGlobal result = parseController.parse(contents, new CompProgress());
View Full Code Here

            MarkerCreatorWithBatching markerCreator = new MarkerCreatorWithBatching(file, parseController, this);

            parseController.getAnnotationTypeInfo().addProblemMarkerType(
                    getErrorMarkerID());

            ISourceProject sourceProject = ModelFactory.open(file.getProject());
            parseController.initialize(
                    file.getProjectRelativePath(),
                    sourceProject,
                    markerCreator);
View Full Code Here

    if (node instanceof ICompilationUnit) {
      ICompilationUnit cu = (ICompilationUnit) node;
      return cu.getPath();
    }
    if (node instanceof HaxeTree) {
      ISourceProject iSourceProject = fParseController.getProject();
      IPath result = this.fParseController.getPath();
      Path tmp = new Path(fParseController.getProject().getName()
          + "/" + result.toString());
      return tmp;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.imp.model.ISourceProject

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.