X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.smarty.ui/src/net/sourceforge/phpdt/smarty/ui/internal/editor/SmartyEditorActionContributor.java b/net.sourceforge.phpeclipse.smarty.ui/src/net/sourceforge/phpdt/smarty/ui/internal/editor/SmartyEditorActionContributor.java index 9dd8c26..c1a722b 100644 --- a/net.sourceforge.phpeclipse.smarty.ui/src/net/sourceforge/phpdt/smarty/ui/internal/editor/SmartyEditorActionContributor.java +++ b/net.sourceforge.phpeclipse.smarty.ui/src/net/sourceforge/phpdt/smarty/ui/internal/editor/SmartyEditorActionContributor.java @@ -12,10 +12,10 @@ package net.sourceforge.phpdt.smarty.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 SmartyEditorActionContributor 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();