Organized imports
[phpeclipse.git] / net.sourceforge.phpeclipse.webbrowser / src / net / sourceforge / phpeclipse / 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 net.sourceforge.phpeclipse.webbrowser;
12
13 import java.net.URL;
14
15 import org.eclipse.ui.IEditorInput;
16 /**
17  * The editor input for the Web browser editor. If the
18  * integrated Web browser exists for this platform, (and
19  * the user has chosen to use it) this information will
20  * be used to populate the Web browser. If not, this
21  * information will be used to launch an external Web
22  * browser.
23  */
24 public interface IWebBrowserEditorInput extends IEditorInput {
25         /**
26          * Returns true if this page can reuse the browser that the
27          * given input is being displayed in, or false if it should
28          * open up in a new page.
29          *
30          * @param input net.sourceforge.phpeclipse.webbrowser.IWebBrowserEditorInput
31          * @return boolean
32          */
33         public boolean canReplaceInput(IWebBrowserEditorInput input);
34
35         /**
36          * Returns the url that should be displayed in the browser.
37          *
38          * @return java.net.URL
39          */
40         public URL getURL();
41
42         /**
43          * Returns true if the Web statusbar should be shown.
44          *
45          * @return boolean
46          */
47         public boolean isStatusbarVisible();
48
49         /**
50          * Returns true if the Web toolbar should be shown.
51          *
52          * @return boolean
53          */
54         public boolean isToolbarVisible();
55 }