org.topbraidcomposer.editors.rdfsource
Class RDFSourcePage

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 org.eclipse.ui.texteditor.AbstractTextEditor
                  extended by org.eclipse.ui.texteditor.StatusTextEditor
                      extended by org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
                          extended by org.eclipse.ui.editors.text.TextEditor
                              extended by org.topbraidcomposer.editors.rdfsource.RDFSourcePage
All Implemented Interfaces:
java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.core.runtime.Preferences.IPropertyChangeListener, org.eclipse.ui.forms.editor.IFormPage, org.eclipse.ui.IEditorPart, org.eclipse.ui.INavigationLocationProvider, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableEditor, org.eclipse.ui.IReusableEditor, org.eclipse.ui.ISaveablePart, org.eclipse.ui.ISaveablesSource, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation, org.eclipse.ui.texteditor.ITextEditor, org.eclipse.ui.texteditor.ITextEditorExtension, org.eclipse.ui.texteditor.ITextEditorExtension2, org.eclipse.ui.texteditor.ITextEditorExtension3, org.eclipse.ui.texteditor.ITextEditorExtension4, IResourceSelectionListener, IResourceEditorPage

public class RDFSourcePage
extends org.eclipse.ui.editors.text.TextEditor
implements org.eclipse.core.runtime.Preferences.IPropertyChangeListener, org.eclipse.ui.forms.editor.IFormPage, IResourceEditorPage, IResourceSelectionListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ui.texteditor.AbstractTextEditor
org.eclipse.ui.texteditor.AbstractTextEditor.AbstractSelectionChangedListener, org.eclipse.ui.texteditor.AbstractTextEditor.ColumnSupport, org.eclipse.ui.texteditor.AbstractTextEditor.IdMapEntry, org.eclipse.ui.texteditor.AbstractTextEditor.LineEndAction, org.eclipse.ui.texteditor.AbstractTextEditor.LineStartAction, org.eclipse.ui.texteditor.AbstractTextEditor.TextEditorSavable
 
Nested classes/interfaces inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3
org.eclipse.ui.texteditor.ITextEditorExtension3.InsertMode
 
Field Summary
 
Fields inherited from class org.eclipse.ui.editors.text.TextEditor
fEncodingSupport
 
Fields inherited from class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
fAnnotationAccess, fIsUpdatingMarkerViews, fLineNumberRulerColumn, fOverviewRuler, fSourceViewerDecorationSupport
 
Fields inherited from class org.eclipse.ui.texteditor.AbstractTextEditor
ACTION_MAP, DEFAULT_EDITOR_CONTEXT_MENU_ID, DEFAULT_RULER_CONTEXT_MENU_ID, fErrorLabel, PREFERENCE_COLOR_BACKGROUND, PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_FIND_SCOPE, PREFERENCE_COLOR_FOREGROUND, PREFERENCE_COLOR_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_BACKGROUND, PREFERENCE_COLOR_SELECTION_BACKGROUND_SYSTEM_DEFAULT, PREFERENCE_COLOR_SELECTION_FOREGROUND, PREFERENCE_COLOR_SELECTION_FOREGROUND_SYSTEM_DEFAULT, PREFERENCE_FONT, PREFERENCE_HYPERLINK_KEY_MODIFIER, PREFERENCE_HYPERLINK_KEY_MODIFIER_MASK, PREFERENCE_HYPERLINKS_ENABLED, PREFERENCE_NAVIGATION_SMART_HOME_END, PREFERENCE_RULER_CONTRIBUTIONS, PREFERENCE_SHOW_WHITESPACE_CHARACTERS, PREFERENCE_TEXT_DRAG_AND_DROP_ENABLED, PREFERENCE_USE_CUSTOM_CARETS, PREFERENCE_WIDE_CARET, TAG_SELECTION_LENGTH, TAG_SELECTION_OFFSET, VERTICAL_RULER_WIDTH
 
Fields inherited from interface org.eclipse.ui.texteditor.ITextEditorExtension3
INSERT, SMART_INSERT
 
Constructor Summary
RDFSourcePage(ResourceEditor formEditor, java.lang.String id, java.lang.String title)
           
 
Method Summary
 boolean canLeaveThePage()
           
 org.eclipse.ui.INavigationLocation createEmptyNavigationLocation()
           
 org.eclipse.ui.INavigationLocation createNavigationLocation()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void doSaveAs()
           
 org.eclipse.ui.forms.editor.FormEditor getEditor()
           
 java.lang.String getId()
           
 int getIndex()
           
 org.eclipse.ui.forms.IManagedForm getManagedForm()
           
 org.eclipse.swt.widgets.Control getPartControl()
           
 void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input)
           
 void initialize(org.eclipse.ui.forms.editor.FormEditor editor)
           
 boolean isActive()
           
 boolean isDirty()
           
 boolean isEditor()
           
 boolean isEditorInputModifiable()
           
 boolean isEditorInputReadOnly()
           
 void propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
           
 void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
          Called when the resource selection has changed.
 boolean selectReveal(java.lang.Object object)
           
 void setActive(boolean active)
           
 void setIndex(int index)
           
 boolean validateEditorInputState()
           
 
Methods inherited from class org.eclipse.ui.editors.text.TextEditor
createActions, doSetInput, editorContextMenuAboutToShow, getAdapter, getStatusBanner, getStatusHeader, getStatusMessage, handlePreferenceStoreChanged, initializeEditor, installEncodingSupport, isSaveAsAllowed, updatePropertyDependentActions
 
Methods inherited from class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor
collectContextMenuPreferencePages, collectRulerMenuPreferencePages, configureSourceViewerDecorationSupport, createAnnotationAccess, createAnnotationRulerColumn, createChangeHover, createChangeRulerColumn, createColumnSupport, createCompositeRuler, createLineNumberRulerColumn, createOverviewRuler, createSourceViewer, createStatusControl, createVerticalRuler, disposeDocumentProvider, getAnnotationAccess, getAnnotationPreferenceLookup, getAnnotationPreferences, getDocumentProvider, getOverviewRuler, getSharedColors, getSourceViewerDecorationSupport, getUndoRedoOperationApprover, gotoAnnotation, gotoMarker, hideOverviewRuler, initializeKeyBindingScopes, initializeLineNumberRulerColumn, isChangeInformationShowing, isEditable, isErrorStatus, isLineNumberRulerVisible, isNavigationTarget, isOverviewRulerVisible, isOverwriteModeEnabled, isPrefQuickDiffAlwaysOn, isTabsToSpacesConversionEnabled, performSaveAs, rulerContextMenuAboutToShow, setDocumentProvider, showChangeInformation, showOverviewRuler, showRevisionInformation, updateMarkerViews
 
Methods inherited from class org.eclipse.ui.texteditor.StatusTextEditor
doRevertToSaved, handleEditorInputChanged, handleElementContentReplaced, sanityCheckState, updatePartControl, updateStatusField
 
Methods inherited from class org.eclipse.ui.texteditor.AbstractTextEditor
addAction, addAction, addGroup, addRulerContextMenuListener, adjustHighlightRange, affectsTextPresentation, canHandleMove, close, configureInsertMode, containsSavedState, createNavigationActions, createUndoRedoActions, doGetSelection, doRestoreState, doSetSelection, editorSaved, enableOverwriteMode, enableSanityChecking, enableStateValidation, findAnnotation, firePropertyChange, getAction, getActiveSaveables, getContextMenuListener, getCoverage, getCursorListener, getCursorPosition, getEditorContextMenuId, getFontPropertyPreferenceKey, getHelpContextId, getHighlightRange, getInsertMode, getLegalInsertModes, getPreferenceStore, getProgressMonitor, getRangeIndicator, getRulerContextMenuId, getRulerMouseListener, getSaveables, getSelectionChangedListener, getSelectionProvider, getSourceViewer, getSourceViewerConfiguration, getStatusField, getStatusLineManager, getVerticalRuler, handleCursorPositionChanged, handleExceptionOnSave, handleInsertModeChanged, initializeDragAndDrop, initializeViewerColors, installTabsToSpacesConverter, installTextDragAndDrop, internalInit, isEditorInputIncludedInContextMenu, isInInsertMode, isVisible, markAsContentDependentAction, markAsPropertyDependentAction, markAsSelectionDependentAction, markAsStateDependentAction, markInNavigationHistory, modelOffset2WidgetOffset, openSaveErrorDialog, performRevert, performSave, rememberSelection, removeActionActivationCode, removeRulerContextMenuListener, resetHighlightRange, restoreSelection, restoreState, safelySanityCheckState, saveState, selectAndReveal, selectAndReveal, setAction, setActionActivationCode, setCompatibilityMode, setDocumentProvider, setEditorContextMenuId, setFocus, setHelpContextId, setHighlightRange, setInput, setInputWithNotify, setInsertMode, setKeyBindingScopes, setPreferenceStore, setRangeIndicator, setRulerContextMenuId, setSourceViewerConfiguration, setStatusField, setStatusLineErrorMessage, setStatusLineMessage, showHighlightRangeOnly, showsHighlightRangeOnly, uninstallTabsToSpacesConverter, uninstallTextDragAndDrop, updateContentDependentActions, updateContributedRulerColumns, updateIndentPrefixes, updateSelectionDependentActions, updateState, updateStateDependentActions, updateStatusFields, validateState, widgetOffset2ModelOffset
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, 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
 

Constructor Detail

RDFSourcePage

public RDFSourcePage(ResourceEditor formEditor,
                     java.lang.String id,
                     java.lang.String title)
Method Detail

canLeaveThePage

public boolean canLeaveThePage()
Specified by:
canLeaveThePage in interface org.eclipse.ui.forms.editor.IFormPage

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Overrides:
createPartControl in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.editors.text.TextEditor

doSave

public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
doSave in interface org.eclipse.ui.ISaveablePart
Overrides:
doSave in class org.eclipse.ui.texteditor.AbstractTextEditor

doSaveAs

public void doSaveAs()
Specified by:
doSaveAs in interface org.eclipse.ui.ISaveablePart
Overrides:
doSaveAs in class org.eclipse.ui.texteditor.AbstractTextEditor

getEditor

public org.eclipse.ui.forms.editor.FormEditor getEditor()
Specified by:
getEditor in interface org.eclipse.ui.forms.editor.IFormPage

getId

public java.lang.String getId()
Specified by:
getId in interface org.eclipse.ui.forms.editor.IFormPage

getIndex

public int getIndex()
Specified by:
getIndex in interface org.eclipse.ui.forms.editor.IFormPage

getManagedForm

public org.eclipse.ui.forms.IManagedForm getManagedForm()
Specified by:
getManagedForm in interface org.eclipse.ui.forms.editor.IFormPage

getPartControl

public org.eclipse.swt.widgets.Control getPartControl()
Specified by:
getPartControl in interface org.eclipse.ui.forms.editor.IFormPage

init

public void init(org.eclipse.ui.IEditorSite site,
                 org.eclipse.ui.IEditorInput input)
          throws org.eclipse.ui.PartInitException
Specified by:
init in interface org.eclipse.ui.IEditorPart
Overrides:
init in class org.eclipse.ui.texteditor.AbstractTextEditor
Throws:
org.eclipse.ui.PartInitException

initialize

public void initialize(org.eclipse.ui.forms.editor.FormEditor editor)
Specified by:
initialize in interface org.eclipse.ui.forms.editor.IFormPage

isActive

public boolean isActive()
Specified by:
isActive in interface org.eclipse.ui.forms.editor.IFormPage

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart
Overrides:
isDirty in class org.eclipse.ui.texteditor.AbstractTextEditor

isEditor

public boolean isEditor()
Specified by:
isEditor in interface org.eclipse.ui.forms.editor.IFormPage

isEditorInputReadOnly

public boolean isEditorInputReadOnly()
Specified by:
isEditorInputReadOnly in interface org.eclipse.ui.texteditor.ITextEditorExtension
Overrides:
isEditorInputReadOnly in class org.eclipse.ui.texteditor.AbstractTextEditor

propertyChange

public void propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
Specified by:
propertyChange in interface org.eclipse.core.runtime.Preferences.IPropertyChangeListener

resourceSelected

public void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
Description copied from interface: IResourceSelectionListener
Called when the resource selection has changed. This method is called as a side effect by the ResourceSelection class.

Specified by:
resourceSelected in interface IResourceSelectionListener
Parameters:
resource - the new selection

setActive

public void setActive(boolean active)
Specified by:
setActive in interface org.eclipse.ui.forms.editor.IFormPage

setIndex

public void setIndex(int index)
Specified by:
setIndex in interface org.eclipse.ui.forms.editor.IFormPage

selectReveal

public boolean selectReveal(java.lang.Object object)
Specified by:
selectReveal in interface org.eclipse.ui.forms.editor.IFormPage

isEditorInputModifiable

public boolean isEditorInputModifiable()
Specified by:
isEditorInputModifiable in interface org.eclipse.ui.texteditor.ITextEditorExtension2
Overrides:
isEditorInputModifiable in class org.eclipse.ui.texteditor.AbstractTextEditor

validateEditorInputState

public boolean validateEditorInputState()
Specified by:
validateEditorInputState in interface org.eclipse.ui.texteditor.ITextEditorExtension2
Overrides:
validateEditorInputState in class org.eclipse.ui.texteditor.AbstractDecoratedTextEditor

createEmptyNavigationLocation

public org.eclipse.ui.INavigationLocation createEmptyNavigationLocation()
Specified by:
createEmptyNavigationLocation in interface org.eclipse.ui.INavigationLocationProvider
Overrides:
createEmptyNavigationLocation in class org.eclipse.ui.texteditor.AbstractTextEditor

createNavigationLocation

public org.eclipse.ui.INavigationLocation createNavigationLocation()
Specified by:
createNavigationLocation in interface org.eclipse.ui.INavigationLocationProvider
Overrides:
createNavigationLocation in class org.eclipse.ui.texteditor.AbstractTextEditor