* Added browser like links (Ctrl+Mouseclick on identifier; same as F3 shortcut)
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.wiki / src / net / sourceforge / phpeclipse / wiki / builder / AddBuilderAction.java
index 7a3b3f2..1ebbf1b 100644 (file)
@@ -1,15 +1,12 @@
 package net.sourceforge.phpeclipse.wiki.builder;
 
-import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.util.Iterator;
 
 import net.sourceforge.phpeclipse.wiki.preferences.Util;
 
 import org.eclipse.core.resources.ICommand;
-import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IProjectDescription;
 import org.eclipse.core.resources.IResource;
@@ -74,7 +71,7 @@ public class AddBuilderAction implements IObjectActionDelegate {
   public void selectionChanged(IAction action, ISelection selection) {
   }
 
-  private void addBuilder(IProject project) {
+  public static void addBuilder(IProject project) {
     IProjectDescription desc;
     try {
       desc = project.getDescription();
@@ -111,7 +108,7 @@ public class AddBuilderAction implements IObjectActionDelegate {
     }
   }
 
-  private void createVelocityFile(IProject project, String filename) throws CoreException {
+  private static void createVelocityFile(IProject project, String filename) throws CoreException {
     InputStream is = AddBuilderAction.class.getResourceAsStream(filename);
     final IFile file = project.getFile(new Path("wpsrc/" + filename));
     if (!file.exists()) {