You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ob...@apache.org on 2004/05/08 06:05:08 UTC

cvs commit: avalon-sandbox/ide/org.apache.avalon.ide.eclipse.core/src/org/apache/avalon/ide/eclipse/core/resource ProjectResourceManager.java

oberhack    2004/05/07 21:05:08

  Modified:    ide/org.apache.avalon.ide.eclipse.core/src/org/apache/avalon/ide/eclipse/core/resource
                        ProjectResourceManager.java
  Log:
  meta generation added
  
  Revision  Changes    Path
  1.3       +3 -38     avalon-sandbox/ide/org.apache.avalon.ide.eclipse.core/src/org/apache/avalon/ide/eclipse/core/resource/ProjectResourceManager.java
  
  Index: ProjectResourceManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.core/src/org/apache/avalon/ide/eclipse/core/resource/ProjectResourceManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProjectResourceManager.java	2 Mar 2004 12:07:44 -0000	1.2
  +++ ProjectResourceManager.java	8 May 2004 04:05:08 -0000	1.3
  @@ -69,7 +69,7 @@
   
               // create project structure and generate files.
               createProjectResources(model, param);
  -
  +            
               // refresh the directory
               getProject().refreshLocal(IProject.DEPTH_INFINITE, null);
   
  @@ -136,8 +136,9 @@
               }
   
           }
  +        // add required libs
           helper.setClasspath();
  -    }
  +       }
   
       /**
   	 * @return
  @@ -161,41 +162,5 @@
           xml.setPluginId(pluginId);
           xml.setFileName(fileName);
           return ProjectModelConfiguration.newInstance(xml);
  -    }
  -
  -    /**
  -     * @param pString
  -     */
  -    public void addBuilder(String builderID)
  -    {
  -        try
  -        {
  -            IProjectDescription desc = getProject().getDescription();
  -            ICommand[] commands = desc.getBuildSpec();
  -            boolean found = false;
  -
  -            for (int i = 0; i < commands.length; ++i) {
  -                if (commands[i].getBuilderName().equals(builderID)) {
  -                    found = true;
  -                    break;
  -                }
  -            }
  -            if (!found) { 
  -                //add builder to project
  -                ICommand command = desc.newCommand();
  -                command.setBuilderName(builderID);
  -                ICommand[] newCommands = new ICommand[commands.length + 1];
  -
  -                // Add it before other builders.
  -                System.arraycopy(commands, 0, newCommands, 1, commands.length);
  -                newCommands[0] = command;
  -                desc.setBuildSpec(newCommands);
  -                getProject().setDescription(desc, null);
  -            }
  -        } catch (CoreException e)
  -        {
  -            MerlinDeveloperCore.log(e, "Error while setting the builder commands");
  -        }
  -
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org