|
||||||||||
| 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
org.eclipse.ui.part.MultiPageEditorPart
com.aptana.ide.editor.css.MultiPageCSSEditor
public class MultiPageCSSEditor
The tabbed style CSS editor.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_CSS_PREVIEW
DEFAULT_CSS_PREVIEW |
protected java.io.File |
prevTempFile
prevTempFile |
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
MultiPageCSSEditor()
Creates a new multi page css editor |
|
| Method Summary | |
|---|---|
void |
addFileServiceChangeListener(IFileServiceChangeListener listener)
Adds a file service change listener to this editor |
void |
addSaveAsListener(ISaveAsEvent listener)
addSaveAsListener |
void |
addSaveListener(ISaveEvent listener)
addSaveListener |
void |
close(boolean save)
close |
protected void |
createPages()
|
protected org.eclipse.ui.IEditorSite |
createSite(org.eclipse.ui.IEditorPart editor)
|
void |
dispose()
|
void |
doRevertToSaved()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
|
void |
doSaveAs()
|
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 |
org.eclipse.jface.text.source.SourceViewerConfiguration |
getConfiguration()
getConfiguration |
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 |
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 |
org.eclipse.jface.viewers.ISelectionProvider |
getSelectionProvider()
|
java.lang.String |
getURL()
Gets the url of this editor |
org.eclipse.jface.text.source.ISourceViewer |
getViewer()
getViewer |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
gotoMarker |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
|
boolean |
isEditable()
|
boolean |
isSaveAsAllowed()
|
protected void |
pageChange(int newPageIndex)
|
void |
removeActionActivationCode(java.lang.String actionId)
|
void |
removeFileServiceChangeListener(IFileServiceChangeListener listener)
Removes a file service change listener from this editor |
void |
removeSaveAsListener(ISaveAsEvent listener)
removeSaveAsListener |
void |
removeSaveListener(ISaveEvent listener)
removeSaveAsListener |
void |
resetHighlightRange()
|
void |
savePreviewsPages()
Saves the preview pages |
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 |
setHighlightRange(int offset,
int length,
boolean moveCursor)
|
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 |
setPreviewPageText(int index,
java.lang.String title)
|
void |
showHighlightRangeOnly(boolean showHighlightRangeOnly)
|
boolean |
showsHighlightRangeOnly()
|
void |
showWhitespace(boolean state)
showWhitespace |
| Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
|---|
addPage, addPage, addPage, addPage, createPageContainer, createPartControl, findEditors, getActiveEditor, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageText, handlePropertyChange, isDirty, removePage, setActiveEditor, setActivePage, setControl, setFocus, setPageImage, setPageText |
| 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, firePropertyChange, 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.IEditorPart |
|---|
getEditorInput, getEditorSite |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus |
| Methods inherited from interface org.eclipse.ui.ISaveablePart |
|---|
isDirty, isSaveOnCloseNeeded |
| Methods inherited from interface com.aptana.ide.editors.unified.IUnifiedEditor |
|---|
getEditorInput, getSite |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_CSS_PREVIEW
protected java.io.File prevTempFile
| Constructor Detail |
|---|
public MultiPageCSSEditor()
| Method Detail |
|---|
protected org.eclipse.ui.IEditorSite createSite(org.eclipse.ui.IEditorPart editor)
createSite in class org.eclipse.ui.part.MultiPageEditorPartMultiPageEditorPart.createSite(org.eclipse.ui.IEditorPart)protected void createPages()
createPages in class org.eclipse.ui.part.MultiPageEditorPartMultiPageEditorPart.createPages()
public void setPreviewPageText(int index,
java.lang.String title)
index - title - public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.MultiPageEditorPartIWorkbenchPart.dispose()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()public void gotoMarker(org.eclipse.core.resources.IMarker marker)
marker -
public void init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput editorInput)
throws org.eclipse.ui.PartInitException
init in interface org.eclipse.ui.IEditorPartinit in class org.eclipse.ui.part.MultiPageEditorPartorg.eclipse.ui.PartInitExceptionIEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)public boolean isSaveAsAllowed()
isSaveAsAllowed in interface org.eclipse.ui.ISaveablePartisSaveAsAllowed in class org.eclipse.ui.part.EditorPartISaveablePart.isSaveAsAllowed()public void setOffset(int offset)
offset - protected void pageChange(int newPageIndex)
pageChange in class org.eclipse.ui.part.MultiPageEditorPartMultiPageEditorPart.pageChange(int)public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.ui.part.MultiPageEditorPartIAdaptable.getAdapter(java.lang.Class)public java.lang.String getURL()
public void savePreviewsPages()
public void addFileServiceChangeListener(IFileServiceChangeListener listener)
IUnifiedEditor
addFileServiceChangeListener in interface IUnifiedEditorIUnifiedEditor.addFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)public void close(boolean save)
IUnifiedEditor
close in interface IUnifiedEditorclose in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.close(boolean)public IUnifiedEditorContributor getBaseContributor()
IUnifiedEditor
getBaseContributor in interface IUnifiedEditorIUnifiedEditor.getBaseContributor()public org.eclipse.jface.text.source.SourceViewerConfiguration getConfiguration()
IUnifiedEditor
getConfiguration in interface IUnifiedEditorIUnifiedEditor.getConfiguration()public IContextAwareness getContextAwareness()
IUnifiedEditor
getContextAwareness in interface IUnifiedEditorIUnifiedEditor.getContextAwareness()public java.lang.String getDefaultFileExtension()
IUnifiedEditor
getDefaultFileExtension in interface IUnifiedEditorIUnifiedEditor.getDefaultFileExtension()public org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
IUnifiedEditor
getDocumentProvider in interface IUnifiedEditorgetDocumentProvider in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.getDocumentProvider()public org.eclipse.ui.IEditorPart getEditor()
IUnifiedEditor
getEditor in interface IUnifiedEditorIUnifiedEditor.getEditor()public EditorFileContext getFileContext()
IUnifiedEditor
getFileContext in interface IUnifiedEditorIUnifiedEditor.getFileContext()public UnifiedOutlinePage getOutlinePage()
IUnifiedEditor
getOutlinePage in interface IUnifiedEditorIUnifiedEditor.getOutlinePage()public PairMatch getPairMatch(int offset)
IUnifiedEditor
getPairMatch in interface IUnifiedEditorIUnifiedEditor.getPairMatch(int)public java.lang.String getParentDirectoryHint()
IUnifiedEditor
getParentDirectoryHint in interface IUnifiedEditorIUnifiedEditor.getParentDirectoryHint()public org.eclipse.jface.text.source.ISourceViewer getViewer()
IUnifiedEditor
getViewer in interface IUnifiedEditorIUnifiedEditor.getViewer()public void removeFileServiceChangeListener(IFileServiceChangeListener listener)
IUnifiedEditor
removeFileServiceChangeListener in interface IUnifiedEditorIUnifiedEditor.removeFileServiceChangeListener(com.aptana.ide.editors.unified.IFileServiceChangeListener)
public void selectAndReveal(int offset,
int length)
IUnifiedEditor
selectAndReveal in interface IUnifiedEditorselectAndReveal in interface org.eclipse.ui.texteditor.ITextEditorIUnifiedEditor.selectAndReveal(int, int)public void setParentDirectoryHint(java.lang.String hint)
IUnifiedEditor
setParentDirectoryHint in interface IUnifiedEditorIUnifiedEditor.setParentDirectoryHint(java.lang.String)public void showWhitespace(boolean state)
IUnifiedEditor
showWhitespace in interface IUnifiedEditorIUnifiedEditor.showWhitespace(boolean)public void addSaveAsListener(ISaveAsEvent listener)
ISaveEventListener
addSaveAsListener in interface ISaveEventListenerISaveEventListener.addSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)public void addSaveListener(ISaveEvent listener)
ISaveEventListener
addSaveListener in interface ISaveEventListenerISaveEventListener.addSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)public void removeSaveAsListener(ISaveAsEvent listener)
ISaveEventListener
removeSaveAsListener in interface ISaveEventListenerISaveEventListener.removeSaveAsListener(com.aptana.ide.core.ui.editors.ISaveAsEvent)public void removeSaveListener(ISaveEvent listener)
ISaveEventListener
removeSaveListener in interface ISaveEventListenerISaveEventListener.removeSaveListener(com.aptana.ide.core.ui.editors.ISaveEvent)public void doRevertToSaved()
doRevertToSaved in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.doRevertToSaved()public org.eclipse.jface.action.IAction getAction(java.lang.String actionId)
getAction in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getAction(java.lang.String)public org.eclipse.jface.text.IRegion getHighlightRange()
getHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getHighlightRange()public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
getSelectionProvider in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.getSelectionProvider()public boolean isEditable()
isEditable in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.isEditable()public void removeActionActivationCode(java.lang.String actionId)
removeActionActivationCode in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.removeActionActivationCode(java.lang.String)public void resetHighlightRange()
resetHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.resetHighlightRange()
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 setHighlightRange(int offset,
int length,
boolean moveCursor)
setHighlightRange in interface org.eclipse.ui.texteditor.ITextEditorITextEditor.setHighlightRange(int, int, 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||