Added "Navigate->Show In->Navigator" and "Navigate->Show In->PHP Browser" actions.
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / webbrowser / views / ShowInContextBrowser.java
diff --git a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/views/ShowInContextBrowser.java b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/views/ShowInContextBrowser.java
new file mode 100644 (file)
index 0000000..20c3a98
--- /dev/null
@@ -0,0 +1,22 @@
+package net.sourceforge.phpeclipse.webbrowser.views;
+
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.ui.part.ShowInContext;
+
+/**
+ * Adds an URL String to the ShowInContext for the BrowserUtil
+ *
+ *
+ */
+public class ShowInContextBrowser extends ShowInContext {
+       String fLocalhostUrl;
+
+       public ShowInContextBrowser(Object input, ISelection selection, String localhostUrl) {
+               super(input, selection);
+               fLocalhostUrl = localhostUrl;
+       }
+
+       public String getLocalhostUrl() {
+               return fLocalhostUrl;
+       }
+}