**********************************************************************/
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;
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;
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.
*
* @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$
*
* @since 3.0
*/
- private ContextTypeRegistry fCodeTemplateContextTypeRegistry;
+ //private ContextTypeRegistry fCodeTemplateContextTypeRegistry;
/**
* The template store for the java editor.
/*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;*/
/*private MembersOrderPreferenceCache fMembersOrderPreferenceCache;*/
- private IFile fLastEditorFile = null;
+ //private IFile fLastEditorFile = null;
/* private JavaEditorTextHoverDescriptor[] fJavaEditorTextHoverDescriptors;*/
// 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;
// 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
// }
public void setLastEditorFile(IFile textEditor) {
- this.fLastEditorFile = textEditor;
+ //this.fLastEditorFile = textEditor;
}
/*