|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
com.aptana.ide.editor.html.HTMLEditor
public class HTMLEditor
| Field Summary | |
|---|---|
protected org.eclipse.ui.part.EditorPart |
editor
editor |
static java.lang.String |
HORIZONTAL_MODE
HORIZONTAL_MODE |
protected java.io.File |
prevTempFile
prevTempFile |
static java.lang.String |
SOURCE_MODE
SOURCE_MODE |
protected HTMLSourceEditor |
sourceEditor
sourceEditor |
static java.lang.String |
TAB_MODE
TAB_MODE |
static java.lang.String |
VERTICAL_MODE
VERTICAL_MODE |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
HTMLEditor()
HTMLEditor |
|
| Method Summary | |
|---|---|
void |
addFileServiceChangeListener(IFileServiceChangeListener listener)
Adds a file service change listener to this editor |
void |
addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
|
void |
addSaveAsListener(ISaveAsEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#addSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent) |
void |
addSaveListener(ISaveEvent listener)
see com.aptana.ide.editors.unified.IUnifiedEditor#addSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent) |
void |
close(boolean save)
close |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
protected HTMLSourceEditor |
createSourceEditor()
createHTMLSourceEditor |
void |
dispose()
|
void |
doRevertToSaved()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
protected void |
drawGradient(org.eclipse.ui.IEditorPart innerEditor,
org.eclipse.ui.part.MultiEditor.Gradient g)
drawGradient |
void |
firePropertyChange2(int propertyId)
firePropertyChange2 |
org.eclipse.jface.action.IAction |
getAction(java.lang.String actionId)
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IUnifiedEditorContributor |
getBaseContributor()
Gets the contributor for this editor |
int |
getCaretOffset()
getCaretOffset |
org.eclipse.jface.text.source.SourceViewerConfiguration |
getConfiguration()
getConfiguration |
java.lang.String |
getContentDescription()
|
IContextAwareness |
getContextAwareness()
getContextAwareness |
java.lang.String |
getDefaultFileExtension()
Gets the default file extension associated with this editor |
org.eclipse.ui.texteditor.IDocumentProvider |
getDocumentProvider()
getDocumentProvider |
org.eclipse.ui.IEditorPart |
getEditor()
getEditor |
org.eclipse.ui.IEditorInput |
getEditorInput()
getEditorInput |
org.eclipse.ui.IEditorSite |
getEditorSite()
|
EditorFileContext |
getFileContext()
getFileContext |
org.eclipse.jface.text.IRegion |
getHighlightRange()
|
UnifiedOutlinePage |
getOutlinePage()
getOutlinePage |
PairMatch |
getPairMatch(int offset)
getPairMatch |
java.lang.String |
getParentDirectoryHint()
The directory we'd like to save this file into if possible |
java.lang.String |
getPartName()
|
org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
Gets the local preference store |
org.eclipse.jface.viewers.ISelectionProvider |
getSelectionProvider()
|
org.eclipse.ui.IWorkbenchPartSite |
getSite()
getSite |
HTMLSourceEditor |
getSourceEditor()
getSourceEditor |
java.lang.String |
getTitle()
|
org.eclipse.swt.graphics.Image |
getTitleImage()
|
java.lang.String |
getTitleToolTip()
|
org.eclipse.jface.text.source.ISourceViewer |
getViewer()
getViewer |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
|
boolean |
isDirty()
|
boolean |
isEditable()
|
boolean |
isEditorInputReadOnly()
|
boolean |
isSaveAsAllowed()
|
boolean |
isSaveOnCloseNeeded()
|
void |
removeActionActivationCode(java.lang.String actionId)
|
void |
removeFileServiceChangeListener(IFileServiceChangeListener listener)
Removes a file service change listener from this editor |
void |
removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
|
void |
removeSaveAsListener(ISaveAsEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent) |
void |
removeSaveListener(ISaveEvent listener)
see com.aptana.ide.core.ui.editors.ISaveEventListener#removeSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent) |
void |
resetHighlightRange()
|
void |
selectAndReveal(int offset,
int length)
selectAndReveal |
void |
setAction(java.lang.String actionID,
org.eclipse.jface.action.IAction action)
|
void |
setActionActivationCode(java.lang.String actionId,
char activationCharacter,
int activationKeyCode,
int activationStateMask)
|
void |
setFocus()
|
void |
setHighlightRange(int offset,
int length,
boolean moveCursor)
|
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
void |
setOffset(int offset)
change to the source editor, and move caret to the specified offset. |
void |
setParentDirectoryHint(java.lang.String hint)
The directory we'd like to save this file into if possible |
void |
setStatusField(org.eclipse.ui.texteditor.IStatusField field,
java.lang.String category)
|
void |
showBusy(boolean busy)
|
void |
showHighlightRangeOnly(boolean showHighlightRangeOnly)
|
boolean |
showsHighlightRangeOnly()
|
void |
showWhitespace(boolean state)
showWhitespace |
void |
updateEdit()
updateEdit |
void |
updatePreview()
Update preview |
void |
updateSource()
updateSource |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, setContentDescription, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getDefaultImage, getOrientation, getPartProperties, getPartProperty, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip |
| 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, removePropertyListener |
| Field Detail |
|---|
protected org.eclipse.ui.part.EditorPart editor
protected HTMLSourceEditor sourceEditor
protected java.io.File prevTempFile
public static final java.lang.String TAB_MODE
public static final java.lang.String HORIZONTAL_MODE
public static final java.lang.String VERTICAL_MODE
public static final java.lang.String SOURCE_MODE
| Constructor Detail |
|---|
public HTMLEditor()
| Method Detail |
|---|
public void addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
addRulerContextMenuListener in interface org.eclipse.ui.texteditor.ITextEditorExtensionITextEditorExtension.addRulerContextMenuListener(org.eclipse.jface.action.IMenuListener)public void close(boolean save)
IUnifiedEditor
close in interface IUnifiedEditorclose in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.close(boolean)protected HTMLSourceEditor createSourceEditor()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.dispose()public void doRevertToSaved()
doRevertToSaved in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.doRevertToSaved()public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartISaveablePart.doSave(org.eclipse.core.runtime.IProgressMonitor)public void doSaveAs()
doSaveAs in interface org.eclipse.ui.ISaveablePartdoSaveAs in class org.eclipse.ui.part.EditorPartISaveablePart.doSaveAs()
protected void drawGradient(org.eclipse.ui.IEditorPart innerEditor,
org.eclipse.ui.part.MultiEditor.Gradient g)
innerEditor - g - public void firePropertyChange2(int propertyId)
propertyId - public org.eclipse.jface.action.IAction getAction(java.lang.String actionId)
getAction in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getAction(java.lang.String)public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.WorkbenchPartIAdaptable.getAdapter(java.lang.Class)public java.lang.String getContentDescription()
getContentDescription in interface org.eclipse.ui.IWorkbenchPart2getContentDescription in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart2.getContentDescription()public org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
IUnifiedEditor
getDocumentProvider in interface IUnifiedEditorgetDocumentProvider in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.getDocumentProvider()public org.eclipse.ui.IEditorInput getEditorInput()
IUnifiedEditor
getEditorInput in interface IUnifiedEditorgetEditorInput in interface org.eclipse.ui.IEditorPartgetEditorInput in class org.eclipse.ui.part.EditorPartIEditorPart.getEditorInput()public org.eclipse.ui.IEditorSite getEditorSite()
getEditorSite in interface org.eclipse.ui.IEditorPartgetEditorSite in class org.eclipse.ui.part.EditorPartIEditorPart.getEditorSite()public org.eclipse.jface.text.IRegion getHighlightRange()
getHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getHighlightRange()public HTMLSourceEditor getSourceEditor()
public java.lang.String getPartName()
getPartName in interface org.eclipse.ui.IWorkbenchPart2getPartName in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart2.getPartName()public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
getSelectionProvider in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getSelectionProvider()public org.eclipse.ui.IWorkbenchPartSite getSite()
IUnifiedEditor
getSite in interface IUnifiedEditorgetSite in interface org.eclipse.ui.IWorkbenchPartgetSite in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.getSite()public java.lang.String getTitle()
getTitle in interface org.eclipse.ui.IWorkbenchPartgetTitle in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.getTitle()public org.eclipse.swt.graphics.Image getTitleImage()
getTitleImage in interface org.eclipse.ui.IWorkbenchPartgetTitleImage in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.getTitleImage()public java.lang.String getTitleToolTip()
getTitleToolTip in interface org.eclipse.ui.IWorkbenchPartgetTitleToolTip in class org.eclipse.ui.part.EditorPartIWorkbenchPart.getTitleToolTip()
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.part.EditorPartorg.eclipse.ui.PartInitExceptionIEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)public boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.ui.part.EditorPartISaveablePart.isDirty()public boolean isEditable()
isEditable in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.isEditable()public boolean isEditorInputReadOnly()
isEditorInputReadOnly in interface org.eclipse.ui.texteditor.ITextEditorExtensionITextEditorExtension.isEditorInputReadOnly()public boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartISaveablePart.isSaveAsAllowed()public boolean isSaveOnCloseNeeded()
isSaveOnCloseNeeded in interface org.eclipse.ui.ISaveablePartisSaveOnCloseNeeded in class org.eclipse.ui.part.EditorPartISaveablePart.isSaveOnCloseNeeded()public void removeActionActivationCode(java.lang.String actionId)
removeActionActivationCode in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.removeActionActivationCode(java.lang.String)public void removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener listener)
removeRulerContextMenuListener in interface org.eclipse.ui.texteditor.ITextEditorExtensionITextEditorExtension.removeRulerContextMenuListener(org.eclipse.jface.action.IMenuListener)public void resetHighlightRange()
resetHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.resetHighlightRange()
public void selectAndReveal(int offset,
int length)
IUnifiedEditor
selectAndReveal in interface IUnifiedEditorselectAndReveal in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.selectAndReveal(int, int)
public void setAction(java.lang.String actionID,
org.eclipse.jface.action.IAction action)
setAction in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.setAction(java.lang.String, org.eclipse.jface.action.IAction)
public void setActionActivationCode(java.lang.String actionId,
char activationCharacter,
int activationKeyCode,
int activationStateMask)
setActionActivationCode in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.setActionActivationCode(java.lang.String, char, int, int)public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.setFocus()
public void setHighlightRange(int offset,
int length,
boolean moveCursor)
setHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.setHighlightRange(int, int, boolean)
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtensionsetInitializationData in class org.eclipse.ui.part.EditorPartIExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement,
java.lang.String, java.lang.Object)public void setOffset(int offset)
offset -
public void setStatusField(org.eclipse.ui.texteditor.IStatusField field,
java.lang.String category)
setStatusField in interface org.eclipse.ui.texteditor.ITextEditorExtensionITextEditorExtension.setStatusField(org.eclipse.ui.texteditor.IStatusField,
java.lang.String)public void showBusy(boolean busy)
showBusy in class org.eclipse.ui.part.WorkbenchPartWorkbenchPart.showBusy(boolean)public void showHighlightRangeOnly(boolean showHighlightRangeOnly)
showHighlightRangeOnly in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.showHighlightRangeOnly(boolean)public boolean showsHighlightRangeOnly()
showsHighlightRangeOnly in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.showsHighlightRangeOnly()public void updateSource()
public void updateEdit()
public void updatePreview()
public EditorFileContext getFileContext()
IUnifiedEditor
getFileContext in interface IUnifiedEditorIUnifiedEditor.getFileContext()public org.eclipse.jface.text.source.ISourceViewer getViewer()
IUnifiedEditor
getViewer in interface IUnifiedEditorIUnifiedEditor.getViewer()public org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
IUnifiedEditor
getConfiguration in interface IUnifiedEditorIUnifiedEditor.getConfiguration()public IContextAwareness getContextAwareness()
IUnifiedEditor
getContextAwareness in interface IUnifiedEditorIUnifiedEditor.getContextAwareness()public int getCaretOffset()
public org.eclipse.ui.IEditorPart getEditor()
IUnifiedEditor
getEditor in interface IUnifiedEditorIUnifiedEditor.getEditor()public void showWhitespace(boolean state)
IUnifiedEditor
showWhitespace in interface IUnifiedEditorIUnifiedEditor.showWhitespace(boolean)public void addSaveAsListener(ISaveAsEvent listener)
addSaveAsListener in interface ISaveEventListenerlistener - public void removeSaveAsListener(ISaveAsEvent listener)
removeSaveAsListener in interface ISaveEventListenerlistener - public UnifiedOutlinePage getOutlinePage()
IUnifiedEditor
getOutlinePage in interface IUnifiedEditorIUnifiedEditor.getOutlinePage()public PairMatch getPairMatch(int offset)
getPairMatch in interface IUnifiedEditoroffset -
public java.lang.String getParentDirectoryHint()
IUnifiedEditor
getParentDirectoryHint in interface IUnifiedEditorIUnifiedEditor.getParentDirectoryHint()public void setParentDirectoryHint(java.lang.String hint)
IUnifiedEditor
setParentDirectoryHint in interface IUnifiedEditorIUnifiedEditor.setParentDirectoryHint(java.lang.String)public void addSaveListener(ISaveEvent listener)
addSaveListener in interface ISaveEventListenerlistener - public void removeSaveListener(ISaveEvent listener)
removeSaveListener in interface ISaveEventListenerlistener - public IUnifiedEditorContributor getBaseContributor()
IUnifiedEditor
getBaseContributor in interface IUnifiedEditorIUnifiedEditor.getBaseContributor()public java.lang.String getDefaultFileExtension()
IUnifiedEditor
getDefaultFileExtension in interface IUnifiedEditorIUnifiedEditor.getDefaultFileExtension()public void addFileServiceChangeListener(IFileServiceChangeListener listener)
IUnifiedEditor
addFileServiceChangeListener in interface IUnifiedEditorIUnifiedEditor.addFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)public void removeFileServiceChangeListener(IFileServiceChangeListener listener)
IUnifiedEditor
removeFileServiceChangeListener in interface IUnifiedEditorIUnifiedEditor.removeFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)public org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||