com.aptana.ide.editor.html
Class SplitPageHTMLEditor

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by com.aptana.ide.editor.html.SplitPageHTMLEditor
All Implemented Interfaces:
IHTMLEditorPart, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class SplitPageHTMLEditor
extends org.eclipse.ui.part.EditorPart
implements IHTMLEditorPart

The split style HTML editor.


Field Summary
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
SplitPageHTMLEditor(HTMLEditor wrapper, boolean isHorizontal, HTMLSourceEditor editor)
          SplitPageHTMLEditor
 
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void doSaveAs()
           
protected  void firePropertyChange(int propertyId)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 org.eclipse.swt.browser.Browser getBrowser2()
          getBrowser2
 HTMLSourceEditor getSourceEditor()
          getSourceEditor
 void gotoMarker(org.eclipse.core.resources.IMarker marker)
          gotoMarker
 void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput)
           
 boolean isDirty()
           
 boolean isFileEditorInput()
          isFileEditorInput
 boolean isSaveAsAllowed()
           
 void setBrowserURL(java.lang.String url)
          Sets the browser URL of all browsers contained in this editor.
 void setFocus()
           
 void setOffset(int offset)
          setOffset
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
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
 

Constructor Detail

SplitPageHTMLEditor

public SplitPageHTMLEditor(HTMLEditor wrapper,
                           boolean isHorizontal,
                           HTMLSourceEditor editor)
SplitPageHTMLEditor

Parameters:
wrapper -
isHorizontal -
editor -
Method Detail

getBrowser2

public org.eclipse.swt.browser.Browser getBrowser2()
Description copied from interface: IHTMLEditorPart
getBrowser2

Specified by:
getBrowser2 in interface IHTMLEditorPart
Returns:
Browser
See Also:
IHTMLEditorPart.getBrowser2()

getSourceEditor

public HTMLSourceEditor getSourceEditor()
Description copied from interface: IHTMLEditorPart
getSourceEditor

Specified by:
getSourceEditor in interface IHTMLEditorPart
Returns:
HTMLSourceEditor
See Also:
IHTMLEditorPart.getSourceEditor()

doSave

public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
doSave in interface org.eclipse.ui.ISaveablePart
Specified by:
doSave in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.doSave(org.eclipse.core.runtime.IProgressMonitor)

doSaveAs

public void doSaveAs()
Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart
Specified by:
doSaveAs in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.doSaveAs()

init

public void init(org.eclipse.ui.IEditorSite site,
                 org.eclipse.ui.IEditorInput editorInput)
          throws org.eclipse.ui.PartInitException
Specified by:
init in interface org.eclipse.ui.IEditorPart
Specified by:
init in class org.eclipse.ui.part.EditorPart
Throws:
org.eclipse.ui.PartInitException
See Also:
IEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart
Specified by:
isDirty in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.isDirty()

isSaveAsAllowed

public boolean isSaveAsAllowed()
Specified by:
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
Specified by:
isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
See Also:
ISaveablePart.isSaveAsAllowed()

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.dispose()

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
See Also:
IWorkbenchPart.setFocus()

gotoMarker

public void gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker

Parameters:
marker -

setOffset

public void setOffset(int offset)
setOffset

Parameters:
offset -

isFileEditorInput

public boolean isFileEditorInput()
Description copied from interface: IHTMLEditorPart
isFileEditorInput

Specified by:
isFileEditorInput in interface IHTMLEditorPart
Returns:
boolean
See Also:
IHTMLEditorPart.isFileEditorInput()

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class org.eclipse.ui.part.WorkbenchPart
See Also:
IAdaptable.getAdapter(java.lang.Class)

firePropertyChange

protected void firePropertyChange(int propertyId)
Overrides:
firePropertyChange in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.firePropertyChange(int)

setBrowserURL

public void setBrowserURL(java.lang.String url)
Description copied from interface: IHTMLEditorPart
Sets the browser URL of all browsers contained in this editor.

Specified by:
setBrowserURL in interface IHTMLEditorPart
Parameters:
url - - url for browser(s)
See Also:
IHTMLEditorPart.setBrowserURL(java.lang.String)