Package workspace.elements

Examples of workspace.elements.HaxeProject


   *         unit.
   *
   */
  protected boolean isNonRootSourceFile(IFile resource) {
      String projName = resource.getProject().getName();
      HaxeProject project = Activator.getProjectManager().getProject(projName);
     
      for (BuildFile f : project.getBuildFiles())
      {
          if (f.getMainClass().equals(resource))
          {
              return !resource.isDerived() && false;
          }
View Full Code Here


        return currentAST;
    }
   
    private void link()
    {
        HaxeProject project = Activator.getProjectManager().getProject(fProject.getName());
        Linker linker = new Linker(project);
        if (currentAST instanceof Module)
        {
            ((Module)currentAST).setFullPackage(Activator.getProjectManager().getCurrentFile().getPackage());
        }
View Full Code Here

            String outFolder = pageOne.getOutputFolder();
            String mainFilePath = pageOne.getMainFileName();
            String mainFileFolder = mainFilePath.substring(
                    0,
                    mainFilePath.lastIndexOf("."));
            HaxeProject project = HaxeProjectCreator.createProject(name, location);
           
            // creating build file
            BuildFile buildFile = pageOne.getBuildFile();
            project.addBuildFile(buildFile);
            project.createFile(buildFile.getPath().toString(), buildFile.getContent(), false);
           
            // here the initial structure for project should be
            String[] struct = {srcFolder, outFolder, mainFileFolder};
            project.createFolders(struct);
           
            // create main file and add it to the project
            project.createFile(pageOne.getMainFileName() + CodeFile.EXTENTION_WITH_DOT);
           
            //TODO: find haxe compiler and attach it or inform user about not found
        }
        catch (NullPointerException e)
        {
View Full Code Here

    private void findProjectsInWorkspace()
    {
        for (IProject p : ResourcesPlugin.getWorkspace().getRoot().getProjects())
        {
            HaxeProject pr = new HaxeProject(p);
            projects.put(p.getName(), pr);
        }
    }
View Full Code Here

        {
            throw new NullPointerException();
        }

        IProject baseProject = createBaseProject(projectName, location);
        HaxeProject project = new HaxeProject(baseProject);
        try {
            addNature(baseProject);
        } catch (CoreException e) {
            e.printStackTrace();
            baseProject = null;
View Full Code Here

         * @return true if resource children should be visited, false overwise
         */
        private boolean processAddAction(final IResource resource)
        {
            ProjectManager manager = Activator.getProjectManager();
            HaxeProject project = null;
            switch (resource.getType())
            {
                case IResource.FOLDER: return true;
                case IResource.PROJECT:
                    project = new HaxeProject((IProject)resource);
                    manager.addProject(project);
                    break;
                case IResource.FILE:
                    String extention = resource.getFileExtension();
                    if (CodeFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                        project =
                                manager.getProject(resource.getProject().getName());
                        project.addFile((IFile)resource);
                    }
                    else if (BuildFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                        project =
                                manager.getProject(resource.getProject().getName());
View Full Code Here

                    break;
                case IResource.FILE:
                    String extention = resource.getFileExtension();
                    if (CodeFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                        HaxeProject project =
                                manager.getProject(resource.getProject().getName());
                        project.removeFile((IFile)resource);
                    }
                    else if (BuildFile.EXTENTION.equalsIgnoreCase(extention))
                    {
                       
                    }
View Full Code Here

        if (file != null)
        {
            return RefactoringStatus.createErrorStatus("Can't edit library file");
        }       
        // available for editing
        HaxeProject proj = Activator.getProjectManager().getCurrentHaxeProject();
        file = proj.getFile(pack);
        if (file.getRealFile().getResourceAttributes().isReadOnly())
        {
            return RefactoringStatus.createErrorStatus("File isn't editable");
        }
       
View Full Code Here

       
    }

    public static HaxeRenameProcessor getAppropriateProcessor(final HaxeTree node, String newName)
    {
        HaxeProject project = Activator.getProjectManager().getCurrentHaxeProject();
       
        if (node instanceof Declaration)
        {
            return new VariableRenameProcessor(
                    (Declaration)node,
View Full Code Here

    private void highlightCurrentNodeUsagesInText()
    {       
        ISourceViewer view = getSourceViewer();
        CodeFile hFile = currentFile;
        IFile activeFile = hFile.getRealFile();
        HaxeProject project = Activator.getProjectManager().getCurrentHaxeProject();
        CodeFile currFile = project.getFile(activeFile);
        String currPack = currFile.getPackage();
       
        TextPresentation presentation = new TextPresentation();
       
        for (NodeLink info : usagesList.get(currPack))
View Full Code Here

TOP

Related Classes of workspace.elements.HaxeProject

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.