Initial version from the webtools project; sligthly modified for phpeclipse
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / org / eclipse / webbrowser / IWebBrowserEditorInput.java
1 /**
2  * Copyright (c) 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  *    IBM - Initial API and implementation
10  */
11 package org.eclipse.webbrowser;
12
13 import java.net.URL;
14 import org.eclipse.ui.IEditorInput;
15 /**
16  * The editor input for the Web browser editor. If the
17  * integrated Web browser exists for this platform, (and
18  * the user has chosen to use it) this information will
19  * be used to populate the Web browser. If not, this
20  * information will be used to launch an external Web
21  * browser.
22  */
23 public interface IWebBrowserEditorInput extends IEditorInput {
24         /**
25          * Returns true if this page can reuse the browser that the
26          * given input is being displayed in, or false if it should
27          * open up in a new page.
28          *
29          * @param input org.eclipse.webbrowser.IWebBrowserEditorInput
30          * @return boolean
31          */
32         public boolean canReplaceInput(IWebBrowserEditorInput input);
33
34         /**
35          * Returns the url that should be displayed in the browser.
36          *
37          * @return java.net.URL
38          */
39         public URL getURL();
40
41         /**
42          * Returns true if the Web statusbar should be shown.
43          *
44          * @return boolean
45          */
46         public boolean isStatusbarVisible();
47
48         /**
49          * Returns true if the Web toolbar should be shown.
50          *
51          * @return boolean
52          */
53         public boolean isToolbarVisible();
54 }