deletet because wrongly uploaded
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / PHPeclipsePlugin.java
index fe4136e..735cda1 100644 (file)
@@ -75,6 +75,7 @@ import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.IWorkbenchWindow;
 import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.ide.IDE;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.eclipse.ui.texteditor.IDocumentProvider;
 import org.eclipse.ui.texteditor.ITextEditor;
@@ -609,7 +610,7 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon
     IEditorPart editor;
     ITextEditor textEditor;
     if (file != null && file.exists()) {
-      editor = page.openEditor(file);
+      editor = IDE.openEditor(page, file, true);
       textEditor = (ITextEditor) editor.getAdapter(ITextEditor.class);
     } else {
       // Otherwise open the stream directly