public static PHPLineBreakpoint lineBreakpointExists(IResource resource, int lineNumber)
                        throws CoreException {
                String modelId = PHPDebugCorePlugin.PLUGIN_ID; // getPluginIdentifier();
-               String markerType = PHPLineBreakpoint.getMarkerType();
+               //String markerType = PHPLineBreakpoint.getMarkerType();
                IBreakpointManager manager = DebugPlugin.getDefault()
                                .getBreakpointManager();
                IBreakpoint[] breakpoints = manager.getBreakpoints(modelId);
 
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.debug.core.DebugPlugin;
 import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.jface.text.IDocument;
+//import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.ITextSelection;
 import org.eclipse.jface.viewers.ISelection;
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.ui.IFileEditorInput;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.texteditor.IEditorStatusLine;
-import org.eclipse.ui.texteditor.ITextEditor;
+//import org.eclipse.ui.texteditor.ITextEditor;
 
 /**
  * Toggles a line breakpoint in a Java editor.
                        ITextSelection textSelection = (ITextSelection) selection;
                        // IType type = getType(textSelection);
                        IEditorInput editorInput = editorPart.getEditorInput();
-                       IDocument document = ((ITextEditor) editorPart)
-                                       .getDocumentProvider().getDocument(editorInput);
+//                     IDocument document = ((ITextEditor) editorPart)
+//                                     .getDocumentProvider().getDocument(editorInput);
                        int lineNumber = textSelection.getStartLine() + 1;
                        int offset = textSelection.getOffset();
                        try {
 
                IDocument document;
                Control control;
                Label label;
-               Spinner spinner;
+               //Spinner spinner;
                String condition = "";
                boolean enabled = false;
                int hitCount = 0;
 
 
        private Image fImage;
 
-       private boolean fStatusLineAboveButtons;
+       //private boolean fStatusLineAboveButtons;
 
        /**
         * Creates an instane of a status dialog.
         */
        public StatusDialog(Shell parent) {
                super(parent);
-               fStatusLineAboveButtons = false;
+               //fStatusLineAboveButtons = false;
                fLastStatus = new StatusInfo();
        }
 
         *            if <code>true</code> status line is placed above buttons; if
         *            <code>false</code> to the right
         */
-       public void setStatusLineAboveButtons(boolean aboveButtons) {
-               fStatusLineAboveButtons = aboveButtons;
-       }
+//     public void setStatusLineAboveButtons(boolean aboveButtons) {
+//             //fStatusLineAboveButtons = aboveButtons;
+//     }
 
        /**
         * Update the dialog's status line to reflect the given status. It is save
 
                        }
 
                        if (lineNumber != -1) {
-                               JavadocConsoleHyperLink link = new JavadocConsoleHyperLink(
-                                               path, lineNumber);
+//                             JavadocConsoleHyperLink link = new JavadocConsoleHyperLink(
+//                                             path, lineNumber);
                                // TODO XXX Disabled for 3.1 fConsole.addLink(link,
                                // line.getOffset(), index1);
 
 
 
        public IProcess run(InterpreterRunnerConfiguration configuration,
                        ILaunch launch) {
-               String[] env;
-               String name, value;
+               //String[] env;
+               //String name, value;
                PHPDBGProxy newPHPDBGProxy = new PHPDBGProxy(configuration
                                .useRemoteDebugger(), configuration.getRemoteSourcePath(),
                                configuration.usePathTranslation(), configuration.getPathMap());
-               int pos;
+               //int pos;
 
                IProcess process = null;
                PHPDebugTarget debugTarget = new PHPDebugTarget(launch, process);
        protected void setEnvironmentVariables(
                        InterpreterRunnerConfiguration configuration, int listenPort) {
                String DBGSessID;
-               String env[] = new String[18];
+               //String env[] = new String[18];
                long id = Math.round(Math.random() * 100000);
 
                DBGSessID = "DBGSESSID=" + id + "@clienthost:" + listenPort;
 
 
        protected String renderCommandLine(
                        InterpreterRunnerConfiguration configuration) {
-               PHPInterpreter interpreter = configuration.getInterpreter();
+               //PHPInterpreter interpreter = configuration.getInterpreter();
 
                StringBuffer buffer = new StringBuffer();
                buffer.append(this.getDebugCommandLineArgument());
 
        IPath    localPath;
        Iterator iterator;
        String   fileName;
-       String   file;
+       //String   file;
        String   local;
 
        fileName = ((PHPStackFrame) stackFrame).getFileName ();                 // Get the filename as it is submitted by DBG
-       file     = "";
+       //file     = "";
 
     if (remoteDebug) {                                              // Is it a remote debugging session
                path = new Path (fileName);                                 // Create a IPath object for the server side filename
                if (!remoteSourcePath.isEmpty()) {
                        if (remoteSourcePath.isPrefixOf (path)) {                   // Is the server side filename with the remote source path
                                path        = path.removeFirstSegments (remoteSourcePath.matchingFirstSegments (path)); // Remove the remote source path
-                               file        = path.toString ();                         // The filename without the remote source path
+                               //file        = path.toString ();                         // The filename without the remote source path
                                projectPath = (PHPeclipsePlugin.getWorkspace().getRoot().getProject(projectName).getLocation()); // Get the absolute project path
 
                                return (projectPath.append (path)).toOSString ();       // Return the filename as absolute client side path
 
                } else if (command.equals("testStarted")) {
 
                        String testID = args[0];
-                       String testCount = args[1];
+                       //String testCount = args[1];
                        String testName = args[2];
                        String parentTestSuiteName = args[3];
 
 
                super(GRID);
                setPreferenceStore(PHPUnitPlugin.getDefault().getPreferenceStore());
                setDescription("Please browse for the folder containing the PHPUnit files (among them: \"phpunit.php\" and \"socketTestResult.php\"). If you don't have it, please download the latest version from http://sourceforge.net/projects/phpunit/ first. ");
-               initializeDefaults();
+               //initializeDefaults();
        }
 
        /**
         * Sets the default values of the preferences.
         */
-       private void initializeDefaults() {
-               IPreferenceStore store = getPreferenceStore();
-
-       }
+//     private void initializeDefaults() {
+//             //IPreferenceStore store = getPreferenceStore();
+//
+//     }
 
        /**
         * Creates the field editors. Field editors are abstractions of the common
 
 
                        BufferedReader in = new BufferedReader(reader);
                        String report = null;
-                       int i = 0;
+                       //int i = 0;
                        // keep listening until the
                        while ((report = in.readLine()) != null
                                        && (report != "end_all_tests")) {
 
 
                String string = "";
 
-               TestSuite node = root;
+               //TestSuite node = root;
 
                string = root.toString();
 
 
 
        private boolean hasFailure;
 
-       private boolean isAllPass;
+       //private boolean isAllPass;
 
        private boolean hasError;
 
                testSuites = new Vector();
 
                hasError = false;
-               isAllPass = true;
+               //isAllPass = true;
                hasFailure = false;
        }
 
 
 
 import net.sourceforge.phpeclipse.ui.editor.ShowExternalPreviewAction;
 
-import org.eclipse.core.resources.IFile;
-import org.eclipse.ui.IEditorInput;
+//import org.eclipse.core.resources.IFile;
+//import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
+//import org.eclipse.ui.IFileEditorInput;
 import org.eclipse.ui.texteditor.BasicTextEditorActionContributor;
 import org.eclipse.ui.texteditor.ITextEditor;
 
                        textEditor = (ITextEditor) part;
 
                if (textEditor != null) {
-                       IFile file = null;
-                       IEditorInput editorInput = textEditor.getEditorInput();
+                       //IFile file = null;
+                       //IEditorInput editorInput = textEditor.getEditorInput();
 
-                       if (editorInput instanceof IFileEditorInput) {
-                               file = ((IFileEditorInput) editorInput).getFile();
-                       }
+//                     if (editorInput instanceof IFileEditorInput) {
+//                             file = ((IFileEditorInput) editorInput).getFile();
+//                     }
 
                        ShowExternalPreviewAction fShowExternalPreviewAction = ShowExternalPreviewAction
                                        .getInstance();
 
        protected void validateVariables(TemplateVariable[] variables)
                        throws TemplateException {
                ArrayList required = new ArrayList(5);
-               String contextName = getId();
+               //String contextName = getId();
                // if (NEWTYPE_CONTEXTTYPE.equals(contextName)) {
                // required.add(PACKAGE_DECLARATION);
                // required.add(TYPE_DECLARATION);
 
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.Status;
 //import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.text.BadLocationException;
 import org.eclipse.jface.text.Document;
 import org.eclipse.jface.text.IDocument;
 
                if (lineDelimiter == null)
                        lineDelimiter = PLATFORM_LINE_DELIMITER;
-               IPreferenceStore prefs = WebUI.getDefault()
-                               .getPreferenceStore();
+//             IPreferenceStore prefs = WebUI.getDefault()
+//                             .getPreferenceStore();
                // axelcl start
                // boolean useCodeFormatter =
                // prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER);
 
        }
 
        private Composite createAdvancedTabContent(TabFolder folder) {
-               String[] errorWarningIgnore = new String[] { ERROR, WARNING, IGNORE };
-
-               String[] errorWarningIgnoreLabels = new String[] {
-                               PreferencesMessages
-                                               .getString("CompilerConfigurationBlock.error"), //$NON-NLS-1$
-                               PreferencesMessages
-                                               .getString("CompilerConfigurationBlock.warning"), //$NON-NLS-1$
-                               PreferencesMessages
-                                               .getString("CompilerConfigurationBlock.ignore") //$NON-NLS-1$
-               };
-
-               String[] enabledDisabled = new String[] { ENABLED, DISABLED };
+               //String[] errorWarningIgnore = new String[] { ERROR, WARNING, IGNORE };
+
+//             String[] errorWarningIgnoreLabels = new String[] {
+//                             PreferencesMessages
+//                                             .getString("CompilerConfigurationBlock.error"), //$NON-NLS-1$
+//                             PreferencesMessages
+//                                             .getString("CompilerConfigurationBlock.warning"), //$NON-NLS-1$
+//                             PreferencesMessages
+//                                             .getString("CompilerConfigurationBlock.ignore") //$NON-NLS-1$
+//             };
+
+               //String[] enabledDisabled = new String[] { ENABLED, DISABLED };
 
                int nColumns = 3;
 
 
                fBackgroundDefaultRadioButton.setSelection(default_);
                fBackgroundCustomRadioButton.setSelection(!default_);
                fBackgroundColorButton.setEnabled(!default_);
-               boolean closeJavaDocs = fOverlayStore
-                               .getBoolean(PreferenceConstants.EDITOR_CLOSE_JAVADOCS);
+//             boolean closeJavaDocs = fOverlayStore
+//                             .getBoolean(PreferenceConstants.EDITOR_CLOSE_JAVADOCS);
                // fAddJavaDocTagsButton.setEnabled(closeJavaDocs);
                fEscapeStringsButtonDQ.setEnabled(fOverlayStore
                                .getBoolean(PreferenceConstants.EDITOR_WRAP_STRINGS_DQ));
 
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Shell;
 import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PlatformUI;
+//import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.commands.ICommand;
-import org.eclipse.ui.commands.ICommandManager;
+//import org.eclipse.ui.commands.ICommandManager;
 import org.eclipse.ui.commands.IKeySequenceBinding;
 import org.eclipse.ui.keys.KeySequence;
-
+//import org.eclipse.jface.bindings.keys.KeySequence;
 /**
  * Abstract class for providing hover information for Java elements.
  * 
 
        private ICommand fCommand;
        {
-               ICommandManager commandManager = PlatformUI.getWorkbench()
-                               .getCommandSupport().getCommandManager();
+//             ICommandManager commandManager = PlatformUI.getWorkbench()
+//                             .getCommandSupport().getCommandManager();
                // fCommand=
                // commandManager.getCommand(PHPEditorActionDefinitionIds.SHOW_JAVADOC);
                // if (!fCommand.isDefined())
 
                                                        String endTag = lineDelimiter + indentation + " */"; //$NON-NLS-1$
                                                        d.replace(c.offset, 0, endTag); //$NON-NLS-1$
                                                        // evaluate method signature
-                                                       ICompilationUnit unit = getCompilationUnit();
+                                                       //ICompilationUnit unit = getCompilationUnit();
 
                                                        // if
                                                        // (PHPeclipsePlugin.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_ADD_JAVADOC_TAGS)
 
 import net.sourceforge.phpeclipse.ui.WebUI;
 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
 
-import org.eclipse.jface.text.IDocument;
+//import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.ITextViewer;
 import org.eclipse.jface.text.contentassist.ICompletionProposal;
 import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
                        int documentOffset) {
                ICompilationUnit unit = fManager.getWorkingCopy(fEditor
                                .getEditorInput());
-               IDocument document = viewer.getDocument();
+               //IDocument document = viewer.getDocument();
 
                IPHPCompletionProposal[] results = new IPHPCompletionProposal[0];
 
 
 import net.sourceforge.phpdt.core.IJavaProject;
 import net.sourceforge.phpdt.core.IMember;
 import net.sourceforge.phpdt.core.IMethod;
-import net.sourceforge.phpdt.core.IPackageFragmentRoot;
+//import net.sourceforge.phpdt.core.IPackageFragmentRoot;
 import net.sourceforge.phpdt.core.IType;
 import net.sourceforge.phpdt.core.JavaModelException;
 import net.sourceforge.phpdt.internal.ui.PHPUIMessages;
 import org.eclipse.core.runtime.Assert;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.graphics.Point;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.ide.IDE.SharedImages;
+//import org.eclipse.ui.ISharedImages;
+//import org.eclipse.ui.ide.IDE.SharedImages;
 import org.eclipse.ui.model.IWorkbenchAdapter;
 
 /**
 
        private static ImageDescriptor DESC_OBJ_PROJECT;
 
-       private static ImageDescriptor DESC_OBJ_FOLDER;
-       {
-               ISharedImages images = WebUI.getDefault().getWorkbench()
-                               .getSharedImages();
-               DESC_OBJ_PROJECT_CLOSED = images
-                               .getImageDescriptor(SharedImages.IMG_OBJ_PROJECT_CLOSED);
-               DESC_OBJ_PROJECT = images
-                               .getImageDescriptor(SharedImages.IMG_OBJ_PROJECT);
-               DESC_OBJ_FOLDER = images
-                               .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER);
-       }
+//     private static ImageDescriptor DESC_OBJ_FOLDER;
+//     {
+//             ISharedImages images = WebUI.getDefault().getWorkbench()
+//                             .getSharedImages();
+//             DESC_OBJ_PROJECT_CLOSED = images
+//                             .getImageDescriptor(SharedImages.IMG_OBJ_PROJECT_CLOSED);
+//             DESC_OBJ_PROJECT = images
+//                             .getImageDescriptor(SharedImages.IMG_OBJ_PROJECT);
+//             DESC_OBJ_FOLDER = images
+//                             .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER);
+//     }
 
        private ImageDescriptorRegistry fRegistry;
 
                        }
 
                        case IJavaElement.PACKAGE_FRAGMENT_ROOT: {
-                               IPackageFragmentRoot root = (IPackageFragmentRoot) element;
+                               //IPackageFragmentRoot root = (IPackageFragmentRoot) element;
                                // if (root.isArchive()) {
                                // IPath attach= root.getSourceAttachmentPath();
                                // if (root.isExternal()) {
 
         */
        protected int getOverrideIndicators(IMethod method)
                        throws JavaModelException {
-               IType type = method.getDeclaringType();
+               //IType type = method.getDeclaringType();
                // ITypeHierarchy hierarchy=
                // SuperTypeHierarchyCache.getTypeHierarchy(type);
                // if (hierarchy != null) {
 
                fEditor = editor;
                fGroupName = groupName;
 
-               ISelectionProvider provider = fSite.getSelectionProvider();
-               ISelection selection = provider.getSelection();
+               //ISelectionProvider provider = fSite.getSelectionProvider();
+               //ISelection selection = provider.getSelection();
 
                // fAddImport= new AddImportOnSelectionAction(editor);
                // fAddImport.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_IMPORT);
 
         *            root used as the source folder
         */
        protected void initContainerPage(IJavaElement elem) {
-               IPackageFragmentRoot initRoot = null;
+               //IPackageFragmentRoot initRoot = null;
                // if (elem != null) {
                // initRoot= JavaModelUtil.getPackageFragmentRoot(elem);
                // if (initRoot == null || initRoot.isArchive()) {
                                                                                        "NewContainerWizardPage.error.ProjectClosed", proj.getFullPath().toString())); //$NON-NLS-1$
                                        return status;
                                }
-                               IJavaProject jproject = JavaCore.create(proj);
+                               //IJavaProject jproject = JavaCore.create(proj);
                                // fCurrRoot= jproject.getPackageFragmentRoot(res);
                                // if (res.exists()) {
                                // try {
 
 import org.eclipse.core.runtime.IStatus;
 import org.eclipse.core.runtime.NullProgressMonitor;
 import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.text.BadLocationException;
 import org.eclipse.jface.text.templates.Template;
 import org.eclipse.jface.text.templates.TemplateException;
         */
        protected IStatus modifiersChanged() {
                StatusInfo status = new StatusInfo();
-               int modifiers = getModifiers();
+               //int modifiers = getModifiers();
+               
                // if (Flags.isFinal(modifiers) && Flags.isAbstract(modifiers)) {
                // status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.ModifiersFinalAndAbstract"));
                // //$NON-NLS-1$
                        // ImportsStructure imports;
                        int indent = 0;
 
-                       IPreferenceStore store = PreferenceConstants.getPreferenceStore();
+                       //IPreferenceStore store = PreferenceConstants.getPreferenceStore();
                        // String[] prefOrder =
                        // JavaPreferencesSettings.getImportOrderPreference(store);
                        // int threshold =
                        // solves 14661
                        // imports.addImport(pack.getElementName(), getTypeName());
                        //
-                       String typeContent = constructTypeStub(lineDelimiter);// new
+                       //String typeContent = constructTypeStub(lineDelimiter);// new
                                                                                                                                        // ImportsManager(imports),
                                                                                                                                        // lineDelimiter);
 
 
 import java.util.Iterator;
 
 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.ui.IPreferenceConstants;
+//import net.sourceforge.phpeclipse.ui.IPreferenceConstants;
 import net.sourceforge.phpeclipse.ui.WebUI;
 import net.sourceforge.phpeclipse.ui.editor.ShowExternalPreviewAction;
-import net.sourceforge.phpeclipse.ui.overlaypages.ProjectPrefUtil;
+//import net.sourceforge.phpeclipse.ui.overlaypages.ProjectPrefUtil;
 import net.sourceforge.phpeclipse.webbrowser.IWebBrowser;
 import net.sourceforge.phpeclipse.webbrowser.internal.BrowserManager;
 
                                case IResource.FILE:
                                        // single file:
                                        IFile previewFile = (IFile) resource;
-                                       String extension = previewFile.getFileExtension()
-                                                       .toLowerCase();
-                                       boolean bringToTopPreview = ProjectPrefUtil
-                                                       .getPreviewBooleanValue(
-                                                                       previewFile,
-                                                                       IPreferenceConstants.PHP_BRING_TO_TOP_PREVIEW_DEFAULT);
+//                                     String extension = previewFile.getFileExtension()
+//                                                     .toLowerCase();
+//                                     boolean bringToTopPreview = ProjectPrefUtil
+//                                                     .getPreviewBooleanValue(
+//                                                                     previewFile,
+//                                                                     IPreferenceConstants.PHP_BRING_TO_TOP_PREVIEW_DEFAULT);
                                        // boolean showHTMLFilesLocal =
                                        // ProjectPrefUtil.getPreviewBooleanValue(previewFile,
                                        // IPreferenceConstants.PHP_SHOW_HTML_FILES_LOCAL);
                                        // boolean showXMLFilesLocal =
                                        // ProjectPrefUtil.getPreviewBooleanValue(previewFile,
                                        // IPreferenceConstants.PHP_SHOW_XML_FILES_LOCAL);
-                                       boolean isHTMLFileName = "html".equals(extension)
-                                                       || "htm".equals(extension)
-                                                       || "xhtml".equals(extension);
-                                       boolean isXMLFileName = "xml".equals(extension)
-                                                       || "xsd".equals(extension)
-                                                       || "dtd".equals(extension);
+//                                     boolean isHTMLFileName = "html".equals(extension)
+//                                                     || "htm".equals(extension)
+//                                                     || "xhtml".equals(extension);
+//                                     boolean isXMLFileName = "xml".equals(extension)
+//                                                     || "xsd".equals(extension)
+//                                                     || "dtd".equals(extension);
 
                                        String localhostURL;
                                        // if (showHTMLFilesLocal && isHTMLFileName) {
 
                String line = (String) fFileMap.get(file.getProjectRelativePath()
                                .toString());
                if (line != null) {
-                       PHPIdentifierLocation ident;
+                       //PHPIdentifierLocation ident;
                        ArrayList allClassNames = new ArrayList();
                        addLine(treeMap, null, line, allClassNames);
                        int i = 0;
        }
 
        public void addIdentifiers(TreeMap treeMap, String startClazz) {
-               PHPIdentifierLocation ident;
+               //PHPIdentifierLocation ident;
                ArrayList allClassNames = new ArrayList();
                addClassName(treeMap, startClazz, allClassNames);
                int i = 0;
 
 import net.sourceforge.phpdt.internal.compiler.util.Util;
 import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil;
 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.ui.WebUI;
+//import net.sourceforge.phpeclipse.ui.WebUI;
 
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
 
 /**
  * Analyzing php files in a first pass over all resources !
        }
 
        private void parseIdentifiers(boolean goBack) {
-               char[] ident;
+               //char[] ident;
                String identifier;
                PHPIdentifier value;
                int counter = 0;
 
-               IPreferenceStore store = WebUI.getDefault()
-                               .getPreferenceStore();
+//             IPreferenceStore store = WebUI.getDefault()
+//                             .getPreferenceStore();
                try {
                        while (fToken != TokenNameEOF && fToken != TokenNameERROR) {
                                if (fToken == TokenNameVariable) {
 
 import net.sourceforge.phpdt.internal.compiler.util.Util;
 import net.sourceforge.phpdt.internal.ui.util.PHPFileUtil;
 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.ui.WebUI;
+//import net.sourceforge.phpeclipse.ui.WebUI;
 
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
 
 /**
  * Helper class for exporting resources to the file system.
        }
 
        private boolean obfuscate(StringBuffer buf) {
-               char[] ident;
+               //char[] ident;
                String identifier;
                PHPIdentifier value;
 
                int startPosition = 0;
                int lastPosition = 0;
 
-               IPreferenceStore store = WebUI.getDefault()
-                               .getPreferenceStore();
+//             IPreferenceStore store = WebUI.getDefault()
+//                             .getPreferenceStore();
                try {
                        while (fToken != TokenNameEOF && fToken != TokenNameERROR) {
                                if (fToken == TokenNameVariable) {
 
 import net.sourceforge.phpeclipse.obfuscator.ObfuscatorIgnores;
 import net.sourceforge.phpeclipse.obfuscator.ObfuscatorPass1Exporter;
 import net.sourceforge.phpeclipse.obfuscator.ObfuscatorPass2Exporter;
-import net.sourceforge.phpeclipse.ui.WebUI;
+//import net.sourceforge.phpeclipse.ui.WebUI;
 
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.jface.operation.IRunnableWithProgress;
 import org.eclipse.jface.operation.ModalContext;
-import org.eclipse.jface.preference.IPreferenceStore;
+//import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.dialogs.IOverwriteQuery;
 
                        throws InterruptedException {
                IPath fullPath = location.append(file.getName());
                fMonitor.subTask(file.getFullPath().toString());
-               String properPathString = fullPath.toOSString();
-               File targetFile = new File(properPathString);
+               //String properPathString = fullPath.toOSString();
+               //File targetFile = new File(properPathString);
 
                // if (targetFile.exists()) {
                // if (!targetFile.canWrite()) {
 
        private void createExporters(IResource resource) {
                IProject project = resource.getProject();
-               IPreferenceStore store = WebUI.getDefault()
-                               .getPreferenceStore();
+//             IPreferenceStore store = WebUI.getDefault()
+//                             .getPreferenceStore();
                ObfuscatorIgnores ignore = new ObfuscatorIgnores(project);
                fCurrentIdentifierMap = ignore.getIdentifierMap();
                fCurrentProjectName = project.getName();
 
 import org.eclipse.jface.viewers.ViewerFilter;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.Transfer;
+//import org.eclipse.swt.dnd.DND;
+//import org.eclipse.swt.dnd.Transfer;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.ui.texteditor.IUpdate;
 import org.eclipse.ui.texteditor.TextEditorAction;
 import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-import org.eclipse.ui.views.navigator.LocalSelectionTransfer;
+//import org.eclipse.ui.views.navigator.LocalSelectionTransfer;
 
 /**
  * The content outline page of the Java editor. The viewer implements a
                        if (d != null) {
                                d.asyncExec(new Runnable() {
                                        public void run() {
-                                               ICompilationUnit cu = (ICompilationUnit) fInput;
-                                               IJavaElement base = cu;
+                                               //ICompilationUnit cu = (ICompilationUnit) fInput;
+                                               //IJavaElement base = cu;
                                                // if (fTopLevelTypeOnly) {
                                                // base= getMainType(cu);
                                                // if (base == null) {
        }
 
        private void initDragAndDrop() {
-               int ops = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
-               Transfer[] transfers = new Transfer[] { LocalSelectionTransfer
-                               .getInstance() };
+//             int ops = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
+//             Transfer[] transfers = new Transfer[] { LocalSelectionTransfer
+//                             .getInstance() };
 
                // Drop Adapter
                // TransferDropTargetListener[] dropListeners= new
 
 
 import org.eclipse.core.resources.IFile;
 import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.ITextOperationTarget;
+//import org.eclipse.jface.text.ITextOperationTarget;
 import org.eclipse.jface.text.Position;
 import org.eclipse.jface.text.source.Annotation;
 import org.eclipse.jface.text.source.IVerticalRulerInfo;
                // return;
 
                if (fPosition != null) {
-                       ITextOperationTarget operation = (ITextOperationTarget) fTextEditor
-                                       .getAdapter(ITextOperationTarget.class);
+//                     ITextOperationTarget operation = (ITextOperationTarget) fTextEditor
+//                                     .getAdapter(ITextOperationTarget.class);
                        // final int opCode= PHPUnitEditor.CORRECTIONASSIST_PROPOSALS;
                        // if (operation != null && operation.canDoOperation(opCode)) {
                        // fTextEditor.selectAndReveal(fPosition.getOffset(),
                        if (annotation instanceof IJavaAnnotation) {
                                IJavaAnnotation javaAnnotation = (IJavaAnnotation) annotation;
                                if (!javaAnnotation.isMarkedDeleted()) {
-                                       Position position = model.getPosition(annotation);
+                                       //Position position = model.getPosition(annotation);
                                        // if (includesRulerLine(position, document) &&
                                        // JavaCorrectionProcessor.hasCorrections(javaAnnotation))
                                        // return position;
 
        protected void createActions() {
                super.createActions();
 
-               ActionGroup oeg, ovg, jsg, sg;
+               ActionGroup oeg/*, ovg, jsg, sg*/;
                fActionGroups = new CompositeActionGroup(
                                new ActionGroup[] { oeg = new OpenEditorActionGroup(this),
                                // sg= new ShowActionGroup(this),
 
 //import net.sourceforge.phpeclipse.PHPeclipsePlugin;
 import net.sourceforge.phpeclipse.ui.WebUI;
 
-import org.eclipse.jface.text.IDocument;
+//import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.ITextViewer;
 import org.eclipse.jface.text.TextPresentation;
 import org.eclipse.jface.text.contentassist.ICompletionProposal;
 
        private ICompletionProposal[] internalComputeCompletionProposals(
                        ITextViewer viewer, int offset, int contextOffset) {
-               IDocument document = viewer.getDocument();
+               //IDocument document = viewer.getDocument();
                ICompilationUnit unit = fManager.getWorkingCopy(fEditor
                                .getEditorInput());
 
 
        private int guessContextInformationPosition(ITextViewer viewer, int offset) {
                int contextPosition = offset;
-               IDocument document = viewer.getDocument();
+               //IDocument document = viewer.getDocument();
                return contextPosition;
        }
 
 
                if (textEditor != null) {
                        // If a line number was given, go to it
                        if (offset >= 0) {
-                               IDocument document = textEditor.getDocumentProvider()
-                                               .getDocument(textEditor.getEditorInput());
+//                             IDocument document = textEditor.getDocumentProvider()
+//                                             .getDocument(textEditor.getEditorInput());
                                textEditor.selectAndReveal(offset, length);
                        }
                }
 
 
        public static ShowInContextBrowser getShowInContext(IFile previewFile,
                        boolean forceDBGPreview, String postFix) {
-               String extension = previewFile.getFileExtension().toLowerCase();
+               //String extension = previewFile.getFileExtension().toLowerCase();
                // boolean showHTMLFilesLocal = false;
                // boolean showXMLFilesLocal = false;
-               boolean isHTMLFileName = false;
-               boolean isXMLFileName = false;
+//             boolean isHTMLFileName = false;
+//             boolean isXMLFileName = false;
                String localhostURL;
                if (!forceDBGPreview) {
                        // showHTMLFilesLocal =
                        // showXMLFilesLocal =
                        // ProjectPrefUtil.getPreviewBooleanValue(previewFile,
                        // IPreferenceConstants.PHP_SHOW_XML_FILES_LOCAL);
-                       isHTMLFileName = "html".equals(extension)
-                                       || "htm".equals(extension) || "xhtml".equals(extension);
-                       isXMLFileName = "xml".equals(extension) || "xsd".equals(extension)
-                                       || "dtd".equals(extension);
+//                     isHTMLFileName = "html".equals(extension)
+//                                     || "htm".equals(extension) || "xhtml".equals(extension);
+//                     isXMLFileName = "xml".equals(extension) || "xsd".equals(extension)
+//                                     || "dtd".equals(extension);
                }
                // if (showHTMLFilesLocal && isHTMLFileName) {
                // localhostURL = previewFile.getLocation().toString();
 
                if (targetElemName == null) {
                        rootPage = new NewElementWizardPage();
                } else {
-                       IDocument doc = getDocument();
+                       //IDocument doc = getDocument();
                        rootPage = createElementEditPage(targetElemName);
                        rootPage.setEditType(EditElementWizardPage.MODIFY);
                }
 
                addButton = createButton(parent, "&Add");
                addButton.addSelectionListener(new SelectionListener() {
                        public void widgetSelected(SelectionEvent e) {
-                               int insertIndex = getSelectionIndex();
+                               //int insertIndex = getSelectionIndex();
                                String[] newData = inputValue();
                                if (newData != null) {
                                        attrs.add(newData);
 
 
 import net.sourceforge.phpeclipse.ui.editor.ShowExternalPreviewAction;
 
-import org.eclipse.core.resources.IFile;
-import org.eclipse.ui.IEditorInput;
+//import org.eclipse.core.resources.IFile;
+//import org.eclipse.ui.IEditorInput;
 import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IFileEditorInput;
+//import org.eclipse.ui.IFileEditorInput;
 import org.eclipse.ui.texteditor.BasicTextEditorActionContributor;
 import org.eclipse.ui.texteditor.ITextEditor;
 
                        textEditor = (ITextEditor) part;
 
                if (textEditor != null) {
-                       IFile file = null;
-                       IEditorInput editorInput = textEditor.getEditorInput();
+                       //IFile file = null;
+                       //IEditorInput editorInput = textEditor.getEditorInput();
 
-                       if (editorInput instanceof IFileEditorInput) {
-                               file = ((IFileEditorInput) editorInput).getFile();
-                       }
+//                     if (editorInput instanceof IFileEditorInput) {
+//                             file = ((IFileEditorInput) editorInput).getFile();
+//                     }
 
                        ShowExternalPreviewAction fShowExternalPreviewAction = ShowExternalPreviewAction
                                        .getInstance();
 
                if (target instanceof File) {
                        File externalFile = (File) target;
                        if (externalFile.isFile()) {
-                               String fileName = externalFile.getName().toLowerCase();
+                               //String fileName = externalFile.getName().toLowerCase();
                                // if (fileName.endsWith(".jar" //$NON-NLS-1$
                                // ) || fileName.endsWith(".zip" //$NON-NLS-1$
                                // )) { // external binary archive
 
                        throw WRONG_ARGUMENT;
                }
                try {
-                       int existingValue = Integer.parseInt(value);
+                       //int existingValue = Integer.parseInt(value);
                        // if ((existingValue & Alignment.M_INDENT_BY_ONE) != 0) {
                        // return INDENT_BY_ONE;
                        // } else if ((existingValue & Alignment.M_INDENT_ON_COLUMN) != 0) {
 
                        if (isInterface) {
                                if (isInRange) {
                                        int modifiers = typeDeclaration.modifiers;
-                                       boolean deprecated = false; // (modifiers & AccDeprecated)
+                                       //boolean deprecated = false; // (modifiers & AccDeprecated)
                                                                                                // != 0; //
                                        // remember deprecation so as to not lose
                                        // it below
 
                try {
                        // diet = true;
-                       CompilationResult compilationUnitResult = new CompilationResult(
-                                       unit, 0, 0, 10); // this.options.maxProblemsPerUnit);
-                       CompilationUnitDeclaration parsedUnit = parse(unit,
-                                       compilationUnitResult, start, end);
+//                     CompilationResult compilationUnitResult = new CompilationResult(
+//                                     unit, 0, 0, 10); // this.options.maxProblemsPerUnit);
+//                     CompilationUnitDeclaration parsedUnit = parse(unit,
+//                                     compilationUnitResult, start, end);
                        // if (scanner.recordLineSeparator) {
                        // requestor.acceptLineSeparatorPositions(scanner.getLineEnds());
                        // }
 
                continueLabel = new Label();
 
                Constant cst = this.condition.constant;
-               boolean isConditionTrue = cst != NotAConstant
-                               && cst.booleanValue() == true;
+//             boolean isConditionTrue = cst != NotAConstant
+//                             && cst.booleanValue() == true;
                boolean isConditionFalse = cst != NotAConstant
                                && cst.booleanValue() == false;
 
 
                                        pathNames[i] = ((ClasspathDirectory) this.classpaths[i]).path;
                                }
                        } else {
-                               String lowercaseClasspathName = classpathNames[i].toLowerCase();
+                               //String lowercaseClasspathName = classpathNames[i].toLowerCase();
                                // if (lowercaseClasspathName.endsWith(SUFFIX_STRING_jar)
                                // || lowercaseClasspathName.endsWith(SUFFIX_STRING_zip)) {
                                // this.classpaths[i] = this.getClasspathJar(file); // will
 
                nextImport: for (int i = 0; i < numberOfStatements; i++) {
                        ImportReference importReference = referenceContext.imports[i];
                        IFile file = importReference.getFile();
-                       SourceTypeBinding typeBinding;
+                       //SourceTypeBinding typeBinding;
                        // char[][] compoundName = importReference.tokens;
                        char[][] compoundName = null;
                        if (file != null) {
 
                // fully_qualified_class_name
                do {
                        if (token == TokenNameIdentifier) {
-                               char[] ident = scanner.getCurrentIdentifierSource();
+                               //char[] ident = scanner.getCurrentIdentifierSource();
                                // TODO make this code working better:
                                // SingleTypeReference ref =
                                // ParserUtil.getTypeReference(scanner,
                // incastrix
                //String projectPath = ProjectPrefUtil.getDocumentRoot(file.getProject())
                //              .toString();
-                String filePath = file.getFullPath().toString();
+                //String filePath = file.getFullPath().toString();
                 
                 String ext = file.getFileExtension();
                 int fileExtensionLength = ext == null ? 0 : ext.length() + 1;
 
                // not filled at this point
 
                /* only positions available */
-               int start = sourceType.getNameSourceStart();
-               int end = sourceType.getNameSourceEnd();
+               //int start = sourceType.getNameSourceStart();
+               //int end = sourceType.getNameSourceEnd();
 
                /* convert package and imports */
                // if (sourceType.getPackageName() != null
 
                        path = projectPath.append(path);
                }
                // source attachment info (optional)
-               IPath sourceAttachmentPath = element.hasAttribute("sourcepath") //$NON-NLS-1$
-               ? new Path(element.getAttribute("sourcepath")) //$NON-NLS-1$
-                               : null;
-               IPath sourceAttachmentRootPath = element.hasAttribute("rootpath") //$NON-NLS-1$
-               ? new Path(element.getAttribute("rootpath")) //$NON-NLS-1$
-                               : null;
+//             IPath sourceAttachmentPath = element.hasAttribute("sourcepath") //$NON-NLS-1$
+//             ? new Path(element.getAttribute("sourcepath")) //$NON-NLS-1$
+//                             : null;
+//             IPath sourceAttachmentRootPath = element.hasAttribute("rootpath") //$NON-NLS-1$
+//             ? new Path(element.getAttribute("rootpath")) //$NON-NLS-1$
+//                             : null;
 
                // exported flag (optional)
                boolean isExported = element.getAttribute("exported").equals("true"); //$NON-NLS-1$ //$NON-NLS-2$
                        if (path != null && path.isAbsolute() && !path.isEmpty()) {
                                IProject prereqProjectRsc = workspaceRoot.getProject(path
                                                .segment(0));
-                               IJavaProject prereqProject = JavaCore.create(prereqProjectRsc);
+                               //IJavaProject prereqProject = JavaCore.create(prereqProjectRsc);
                                try {
                                        if (!prereqProjectRsc.exists()
                                                        || !prereqProjectRsc
 
                                        return;
                                }
                                for (int i = 0, length = projects.length; i < length; i++) {
-                                       JavaProject project = (JavaProject) projects[i];
+                                       //JavaProject project = (JavaProject) projects[i];
                                        // IClasspathEntry[] classpath;
                                        // try {
                                        // classpath =
 
                if (returnProject) {
                        return proj;
                }
-               int rootEnd = memento.indexOf(JavaElement.JEM_PACKAGEFRAGMENT,
-                               projectEnd + 1);
+//             int rootEnd = memento.indexOf(JavaElement.JEM_PACKAGEFRAGMENT,
+//                             projectEnd + 1);
                // TODO temp-del
                // if (rootEnd == -1) {
                // return model.getHandleFromMementoForRoot(memento, proj, projectEnd,
 
                        throw newNotPresentException();
                }
 
-               IWorkspace workspace = ResourcesPlugin.getWorkspace();
-               IWorkspaceRoot wRoot = workspace.getRoot();
+               //IWorkspace workspace = ResourcesPlugin.getWorkspace();
+               //IWorkspaceRoot wRoot = workspace.getRoot();
                // cannot refresh cp markers on opening (emulate cp check on startup)
                // since can create deadlocks (see bug 37274)
                // IClasspathEntry[] resolvedClasspath =
 
                String extension = path.getFileExtension();
                if (extension == null) {
-                       String packageName = path.toString().replace(IPath.SEPARATOR, '.');
+                       //String packageName = path.toString().replace(IPath.SEPARATOR, '.');
 
                        // IPackageFragment[] pkgFragments =
                        // getNameLookup().findPackageFragments(packageName, false);
        public NameLookup newNameLookup(ICompilationUnit[] workingCopies)
                        throws JavaModelException {
 
-               JavaProjectElementInfo info = getJavaProjectElementInfo();
+               //JavaProjectElementInfo info = getJavaProjectElementInfo();
                // lock on the project info to avoid race condition while computing the
                // pkg fragment roots and package fragment caches
                // synchronized(info){
 
                // determine if src == project and/or if bin == project
                IPath projectPath = project.getProject().getFullPath();
                boolean srcIsProject = false;
-               boolean binIsProject = false;
+               //boolean binIsProject = false;
                char[][] exclusionPatterns = null;
                IClasspathEntry[] classpath = null;
                IPath projectOutput = null;
                                }
                        }
                        projectOutput = project.getOutputLocation();
-                       binIsProject = projectPath.equals(projectOutput);
+                       //binIsProject = projectPath.equals(projectOutput);
                } catch (JavaModelException e) {
                        // ignore
                }
                                switch (res.getType()) {
                                case IResource.FILE:
                                        IPath resFullPath = res.getFullPath();
-                                       String resName = res.getName();
+                                       //String resName = res.getName();
 
                                        // ignore a jar file on the classpath
                                        // if (ProjectPrefUtil.isArchiveFileName(resName) &&
 
                        break;
                case IJavaElement.PACKAGE_FRAGMENT:
                        // get rid of package fragment cache
-                       JavaProject project = (JavaProject) element.getJavaProject();
+                       //JavaProject project = (JavaProject) element.getJavaProject();
                        // project.resetCaches();
                        break;
                }
                        break;
                case IJavaElement.PACKAGE_FRAGMENT:
                        // get rid of package fragment cache
-                       JavaProject project = (JavaProject) element.getJavaProject();
+                       //JavaProject project = (JavaProject) element.getJavaProject();
                        // project.resetCaches();
                        break;
                }
 
                                .get(pkgName);
                if (frags != null) {
                        for (int i = 0; i < frags.length; i++) {
-                               IPackageFragment frag = frags[i];
+                               //IPackageFragment frag = frags[i];
                                // if (!(frag instanceof JarPackageFragment)) {
                                // ICompilationUnit cu= frag.getCompilationUnit(cuName);
                                // if (cu != null && cu.exists()) {
 
                if (!underlyingResource.isAccessible())
                        throw newNotPresentException();
 
-               int kind = getKind();
+               //int kind = getKind();
                String extType;
                // if (kind == IPackageFragmentRoot.K_SOURCE) {
                extType = "php"; // EXTENSION_java;
                                                        .getFileExtension();
                                        if (extension != null) {
                                                if (extension.equalsIgnoreCase(extType)) {
-                                                       IJavaElement childElement;
+                                                       //IJavaElement childElement;
                                                        // if (kind == IPackageFragmentRoot.K_SOURCE &&
                                                        // ProjectPrefUtil.isValidCompilationUnitName(child.getName()))
                                                        // {
 
                        vChildren.add(pkg);
                }
                try {
-                       JavaProject javaProject = (JavaProject) getJavaProject();
+                       //JavaProject javaProject = (JavaProject) getJavaProject();
                        IResource[] members = folder.members();
                        boolean hasIncluded = isIncluded;
                        for (int i = 0, max = members.length; i < max; i++) {
 
                                case IResource.FOLDER:
                                        if (Util.isValidFolderNameForPackage(memberName)) {
-                                               boolean isMemberIncluded = !Util.isExcluded(member,
-                                                               exclusionPatterns);
+//                                             boolean isMemberIncluded = !Util.isExcluded(member,
+//                                                             exclusionPatterns);
                                                // keep looking inside as long as included already, or
                                                // may have child included due to inclusion patterns
                                                // if (isMemberIncluded || inclusionPatterns != null) {
 
  *******************************************************************************/
 package net.sourceforge.phpdt.internal.core;
 
-import net.sourceforge.phpdt.core.IClasspathEntry;
+//import net.sourceforge.phpdt.core.IClasspathEntry;
 import net.sourceforge.phpdt.core.IJavaProject;
 import net.sourceforge.phpdt.core.IPackageFragmentRoot;
 import net.sourceforge.phpdt.core.JavaModelException;
                Object[] nonJavaResources = new IResource[5];
                int nonJavaResourcesCounter = 0;
                try {
-                       IClasspathEntry[] classpath = project
-                                       .getResolvedClasspath(true/* ignore unresolved variable */);
+//                     IClasspathEntry[] classpath = project
+//                                     .getResolvedClasspath(true/* ignore unresolved variable */);
                        IResource[] members = folder.members();
                        nextResource: for (int i = 0, max = members.length; i < max; i++) {
                                IResource member = members[i];
 
                                                .bind(
                                                                "classpath.settingOutputLocationProgress", project.getElementName()), 2); //$NON-NLS-1$
 
-               IPath oldLocation = project.getOutputLocation();
+               //IPath oldLocation = project.getOutputLocation();
 
                // see if this will cause any package fragments to be added
                boolean deltaToFire = false;
 
 
        protected void copyPackages(ClasspathMultiDirectory sourceLocation)
                        throws CoreException {
-               final int segmentCount = sourceLocation.sourceFolder.getFullPath()
-                               .segmentCount();
+//             final int segmentCount = sourceLocation.sourceFolder.getFullPath()
+//                             .segmentCount();
                final char[][] exclusionPatterns = sourceLocation.exclusionPatterns;
-               final IContainer outputFolder = sourceLocation.binaryFolder;
+               //final IContainer outputFolder = sourceLocation.binaryFolder;
                final boolean isAlsoProject = sourceLocation.sourceFolder
                                .equals(javaBuilder.currentProject);
                sourceLocation.sourceFolder.accept(new IResourceProxyVisitor() {
 
                                dirList = new String[members.length];
                                int index = 0;
                                for (int i = 0, l = members.length; i < l; i++) {
-                                       IResource m = members[i];
+                                       //IResource m = members[i];
                                        // if (m.getType() == IResource.FILE &&
                                        // ProjectPrefUtil.isClassFileName(m.getName()))
                                        // // add exclusion pattern check here if we want to hide
 
                                                                .println("Compile this added source file " + typeLocator); //$NON-NLS-1$
                                        sourceFiles.add(new SourceFile((IFile) resource, md,
                                                        ((IFile) resource).getCharset()));
-                                       String typeName = typePath.toString();
+                                       //String typeName = typePath.toString();
                                        // if (!newState.isDuplicateLocator(typeName, typeLocator))
                                        // { // adding
                                        // // dependents
 
 import org.eclipse.core.resources.IProject;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.resources.IResourceDelta;
-import org.eclipse.core.runtime.IPath;
+//import org.eclipse.core.runtime.IPath;
 
 public class State {
        // NOTE: this state cannot contain types that are not defined in this
                                removePackage(children[i]);
                        return;
                case IResource.FILE:
-                       IPath typeLocatorPath = resource.getProjectRelativePath();
+                       //IPath typeLocatorPath = resource.getProjectRelativePath();
                        // if
                        // (ProjectPrefUtil.isJavaFileName(typeLocatorPath.lastSegment()))
                        // removeLocator(typeLocatorPath.toString());
 
 import net.sourceforge.phpdt.core.compiler.CharOperation;
 import net.sourceforge.phpdt.internal.compiler.ast.TypeReference;
 import net.sourceforge.phpdt.internal.core.Assert;
-import net.sourceforge.phpdt.internal.core.PackageFragmentRoot;
+//import net.sourceforge.phpdt.internal.core.PackageFragmentRoot;
 import net.sourceforge.phpdt.internal.core.util.PHPFileUtil;
 
 import org.eclipse.core.resources.IFile;
         */
        public static final boolean isExcluded(IJavaElement element) {
                int elementType = element.getElementType();
-               PackageFragmentRoot root = null;
-               IResource resource = null;
+               //PackageFragmentRoot root = null;
+               //IResource resource = null;
                switch (elementType) {
                case IJavaElement.JAVA_MODEL:
                case IJavaElement.JAVA_PROJECT:
                        // root.fullExclusionPatternChars());
 
                case IJavaElement.COMPILATION_UNIT:
-                       root = (PackageFragmentRoot) element
-                                       .getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
-                       resource = element.getResource();
+//                     root = (PackageFragmentRoot) element
+//                                     .getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
+                       //resource = element.getResource();
                        // if (resource != null && isExcluded(resource,
                        // root.fullInclusionPatternChars(),
                        // root.fullExclusionPatternChars()))
 
                        if (semi == -1) {
                                throw new IllegalArgumentException();
                        }
-                       String name = refTypeSig.substring(arrayCount + 1, semi);
+                       //String name = refTypeSig.substring(arrayCount + 1, semi);
 
                        // String[][] resolvedNames= declaringType.resolveType(name);
                        // if (resolvedNames != null && resolvedNames.length > 0) {
 
                String line = (String) fFileMap.get(file.getProjectRelativePath()
                                .toString());
                if (line != null) {
-                       PHPIdentifierLocation ident;
+                       //PHPIdentifierLocation ident;
                        ArrayList allClassNames = new ArrayList();
                        addLine(treeMap, null, line, allClassNames);
                        int i = 0;
        }
 
        public void addIdentifiers(TreeMap treeMap, String startClazz) {
-               PHPIdentifierLocation ident;
+               //PHPIdentifierLocation ident;
                ArrayList allClassNames = new ArrayList();
                addClassName(treeMap, startClazz, allClassNames);
                int i = 0;