1) Introduced a warning log message for breakpoints that do not match the local path...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPeclipsePlugin.java
index d04f027..ba72251 100644 (file)
@@ -8,28 +8,28 @@
  **********************************************************************/
 package net.sourceforge.phpeclipse;
 
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Enumeration;
+//import java.io.File;
+//import java.io.IOException;
+//import java.io.InputStream;
+//import java.util.ArrayList;
+//import java.util.Collection;
+//import java.util.Enumeration;
 import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.PropertyResourceBundle;
-import java.util.Set;
+//import java.util.HashSet;
+//import java.util.Iterator;
+//import java.util.List;
+//import java.util.PropertyResourceBundle;
+//import java.util.Set;
 
-import net.sourceforge.phpdt.core.IBuffer;
+//import net.sourceforge.phpdt.core.IBuffer;
 import net.sourceforge.phpdt.core.IBufferFactory;
-import net.sourceforge.phpdt.core.ICompilationUnit;
-import net.sourceforge.phpdt.core.IJavaElement;
-import net.sourceforge.phpdt.core.JavaCore;
-import net.sourceforge.phpdt.core.WorkingCopyOwner;
+//import net.sourceforge.phpdt.core.ICompilationUnit;
+//import net.sourceforge.phpdt.core.IJavaElement;
+//import net.sourceforge.phpdt.core.JavaCore;
+//import net.sourceforge.phpdt.core.WorkingCopyOwner;
 import net.sourceforge.phpdt.internal.core.BatchOperation;
-import net.sourceforge.phpdt.internal.core.JavaModelManager;
-import net.sourceforge.phpdt.internal.core.util.Util;
+//import net.sourceforge.phpdt.internal.core.JavaModelManager;
+//import net.sourceforge.phpdt.internal.core.util.Util;
 /*import net.sourceforge.phpdt.internal.corext.template.php.CodeTemplateContextType;
 import net.sourceforge.phpdt.internal.corext.template.php.HTMLContextType;
 import net.sourceforge.phpdt.internal.corext.template.php.JavaContextType;
@@ -63,33 +63,33 @@ import net.sourceforge.phpeclipse.phpeditor.util.PHPColorProvider;*/
 
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceChangeEvent;
-import org.eclipse.core.resources.ISavedState;
+//import org.eclipse.core.resources.IResource;
+//import org.eclipse.core.resources.IResourceChangeEvent;
+//import org.eclipse.core.resources.ISavedState;
 import org.eclipse.core.resources.IWorkspace;
 import org.eclipse.core.resources.IWorkspaceRunnable;
 import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.resources.WorkspaceJob;
+//import org.eclipse.core.resources.WorkspaceJob;
 import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdapterManager;
-import org.eclipse.core.runtime.IConfigurationElement;
+//import org.eclipse.core.runtime.IAdapterManager;
+//import org.eclipse.core.runtime.IConfigurationElement;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
+//import org.eclipse.core.runtime.Path;
+//import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.runtime.Plugin;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.text.templates.ContextTypeRegistry;
-import org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry;
-/*import org.eclipse.jface.action.GroupMarker;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.preference.PreferenceConverter;
-import org.eclipse.jface.resource.JFaceResources;*/
+//import org.eclipse.core.runtime.jobs.Job;
+//import org.eclipse.jface.text.templates.ContextTypeRegistry;
+//import org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry;
+//import org.eclipse.jface.action.GroupMarker;
+//import org.eclipse.jface.action.IMenuManager;
+//import org.eclipse.jface.action.Separator;
+//import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.PreferenceConverter;
+//import org.eclipse.jface.resource.JFaceResources;
 /*import org.eclipse.jface.text.BadLocationException;
 import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.templates.ContextTypeRegistry;
@@ -117,7 +117,7 @@ import org.eclipse.ui.texteditor.ConfigurationElementSorter;
 import org.eclipse.ui.texteditor.IDocumentProvider;
 import org.eclipse.ui.texteditor.ITextEditor;
 import org.eclipse.ui.texteditor.MarkerAnnotationPreferences;*/
-import org.osgi.framework.BundleContext;
+//import org.osgi.framework.BundleContext;
 
 /**
  * The main plugin class to be used in the desktop.
@@ -157,14 +157,14 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
         * 
         * @since 3.0
         */
-       private static final String TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_templates"; //$NON-NLS-1$
+       //private static final String TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_templates"; //$NON-NLS-1$
 
        /**
         * The key to store customized code templates.
         * 
         * @since 3.0
         */
-       private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$
+       //private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$
 
        public static final String PHP_CODING_ACTION_SET_ID = PLUGIN_ID
                        + ".ui.CodingActionSet"; //$NON-NLS-1$
@@ -193,7 +193,7 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
         * 
         * @since 3.0
         */
-       private ContextTypeRegistry fCodeTemplateContextTypeRegistry;
+       //private ContextTypeRegistry fCodeTemplateContextTypeRegistry;
 
        /**
         * The template store for the java editor.
@@ -210,10 +210,10 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
        /*private TemplateStore fCodeTemplateStore;*/
 
        /** Windows 9x */
-       private static final int WINDOWS_9x = 6;
+       //private static final int WINDOWS_9x = 6;
 
        /** Windows NT */
-       private static final int WINDOWS_NT = 5;
+       //private static final int WINDOWS_NT = 5;
 
        /*private ImageDescriptorRegistry fImageDescriptorRegistry;*/
 
@@ -231,7 +231,7 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
 
        /*private MembersOrderPreferenceCache fMembersOrderPreferenceCache;*/
 
-       private IFile fLastEditorFile = null;
+       //private IFile fLastEditorFile = null;
 
 /*     private JavaEditorTextHoverDescriptor[] fJavaEditorTextHoverDescriptors;*/
 
@@ -482,9 +482,9 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
 //             return getDefault().internalGetImageDescriptorRegistry();
 //     }
 
-       static IPath getInstallLocation() {
-               return new Path(getDefault().getBundle().getEntry("/").getFile());
-       }
+//     static IPath getInstallLocation() {
+//             return new Path(getDefault().getBundle().getEntry("/").getFile());
+//     }
 
        // public static int getJVM() {
        // return jvm;
@@ -678,9 +678,9 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
 //             return fJavaTextTools;
 //     }
 
-       public IFile getLastEditorFile() {
-               return fLastEditorFile;
-       }
+//     public IFile getLastEditorFile() {
+//             return fLastEditorFile;
+//     }
 
        /**
         * Returns the string from the plugin's resource bundle, or 'key' if not
@@ -933,7 +933,7 @@ public class PHPeclipsePlugin extends /*AbstractUIPlugin*/Plugin implements
 //     }
 
        public void setLastEditorFile(IFile textEditor) {
-               this.fLastEditorFile = textEditor;
+               //this.fLastEditorFile = textEditor;
        }
 
        /*