X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java b/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java index f86e1ca..1295b94 100644 --- a/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java +++ b/net.sourceforge.phpeclipse.phpmanual/src/net/sourceforge/phpeclipse/phpmanual/views/PHPManualView.java @@ -20,6 +20,7 @@ import net.sourceforge.phpdt.phphelp.PHPHelpPlugin; import net.sourceforge.phpeclipse.PHPeclipsePlugin; import net.sourceforge.phpeclipse.phpeditor.PHPEditor; import net.sourceforge.phpeclipse.phpmanual.PHPManualUIPlugin; +import net.sourceforge.phpeclipse.ui.WebUI; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.Path; @@ -167,8 +168,6 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I if (part != null && !((PHPEditor)part).equals(lastEditor)) { SelectionListenerWithASTManager.getDefault().addListener((PHPEditor)part, this); lastEditor = (PHPEditor)part; - } else { - System.out.println(part); } } @@ -338,7 +337,7 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I } catch (Exception e) { return null; } - return "" + PHPManualUIPlugin.getString("LookupMiss") + ""; + return null; // Keeps the last reference } /** @@ -349,7 +348,7 @@ public class PHPManualView extends ViewPart implements INullSelectionListener, I */ private PHPEditor getJavaEditor() { try { - IEditorPart part = PHPeclipsePlugin.getActivePage().getActiveEditor(); + IEditorPart part = /*PHPeclipsePlugin*/WebUI.getActivePage().getActiveEditor(); if (part instanceof PHPEditor) return (PHPEditor) part; else