Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpeclipse / xml / ui / internal / editor / XMLEditorActionContributor.java
index 8d65d7c..e62f203 100644 (file)
@@ -12,10 +12,10 @@ package net.sourceforge.phpeclipse.xml.ui.internal.editor;
 
 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;
 
@@ -37,12 +37,12 @@ public class XMLEditorActionContributor extends
                        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();