misc changes in the internal builder
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / core / ToolFactory.java
index 9f8a201..e008a21 100644 (file)
  *     IBM Corporation - added #createScanner allowing to make comment check stricter
  ******************************************************************************/
 package net.sourceforge.phpdt.core;
-
 import java.util.Map;
 
 import net.sourceforge.phpdt.internal.compiler.parser.Scanner;
 import net.sourceforge.phpdt.internal.formatter.CodeFormatter;
-import net.sourceforge.phpeclipse.PHPCore;
 
 import org.eclipse.core.runtime.Plugin;
 
@@ -40,7 +39,7 @@ public class ToolFactory {
         */
        public static ICodeFormatter createCodeFormatter(){
                
-                       Plugin jdtCorePlugin = PHPCore.getPlugin();
+                       Plugin jdtCorePlugin = JavaCore.getPlugin();
                        if (jdtCorePlugin == null) return null;
                
 //                     IExtensionPoint extension = jdtCorePlugin.getDescriptor().getExtensionPoint(JavaModelManager.FORMATTER_EXTPOINT_ID);
@@ -79,7 +78,7 @@ public class ToolFactory {
         */
        public static ICodeFormatter createDefaultCodeFormatter(Map options){
 
-               if (options == null) options = PHPCore.getOptions();
+               if (options == null) options = JavaCore.getOptions();
                return new CodeFormatter(options);
        }