java.lang.Objectorg.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
com.ibm.jdg2e.activex.editor.ActiveXHTMLEditor
This class takes existing function and incoporate it into an
Eclipse-aware plug-in building on the Eclipse platform frameworks using the
Microsoft Web Browser control. It integrates Web Browser editing
capability into an Eclipse multi-page editor using editor input from Eclipse
resources and connecting custom actions to the workbench toolbar and menus.
The user does not use the browser in a way to navigate to a specific
document, rather the navigation occurs inside Eclipse when the user opens an
.htm file in their workspace. When the user saves the document, all changes
to the .htm file are saved in the workspace. There is no need to refresh the
workspace manually.
| Field Summary | |
static java.lang.String |
EDITOR_LABEL
|
| Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
ActiveXHTMLEditor()
Constructor for ActiveXHTMLEditor. |
|
| Method Summary | |
protected void |
createPages()
This is the method which create a text editor page and a page that hosts the IE ActiveX control. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
This method gets the text editor page and saves the contents. |
void |
doSaveAs()
This implements a save as on the text editor input |
ActiveXWebBrowser |
getBrowser()
A getter method to the editor page hosting the ActiveX (browser) control. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
|
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
The ActiveXHTMLEditor implementation of this method checks
that the input is an instance of IFileEditorInput. |
boolean |
isDirty()
|
boolean |
isSaveAsAllowed()
|
protected void |
pageChange(int newPageIndex)
This method syncronizes the contents of the text editor input and the the contents of the IE ActiveX control. |
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
addPage, addPage, createPartControl, createSite, dispose, getActiveEditor, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, removePage, setActivePage, setControl, setFocus, setPageImage, setPageText |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
public static final java.lang.String EDITOR_LABEL
| Constructor Detail |
public ActiveXHTMLEditor()
| Method Detail |
protected void createPages()
MultiPageEditorPart.createPages()public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
ISaveablePart.doSave(IProgressMonitor)public void doSaveAs()
ISaveablePart.doSaveAs()public ActiveXWebBrowser getBrowser()
public void gotoMarker(org.eclipse.core.resources.IMarker marker)
org.eclipse.ui.IEditorPart#gotoMarker(IMarker)
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
ActiveXHTMLEditor implementation of this method checks
that the input is an instance of IFileEditorInput.
org.eclipse.ui.PartInitExceptionIEditorPart.init(IEditorSite, IEditorInput)public boolean isDirty()
public boolean isSaveAsAllowed()
ISaveablePart.isSaveAsAllowed()protected void pageChange(int newPageIndex)
MultiPageEditorPart.pageChange(int)