Class InfobaseEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
com._1c.g5.v8.dt.internal.platform.services.ui.AbstractAefBoundEditor<InfobaseReference>
com._1c.g5.v8.dt.internal.platform.services.ui.editors.infobase.InfobaseEditor
- All Implemented Interfaces:
IInfobaseChangeListener
,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 InfobaseEditor
extends AbstractAefBoundEditor<InfobaseReference>
implements IInfobaseChangeListener
Infobase reference editor. Allows to edit existing infobases references.
Additionally, displays and allows editing preference to prompt user for a confirmation
when an infobase update requires its restructure. Initial value of the preference is taken from
IInfobasePreferencesManager
. When the editor content is saved, the new value is propagated back to
the preferences manager.-
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.internal.platform.services.ui.AbstractAefBoundEditor
PREFER_HEAVY_CONTROLS
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createFormContent
(DtGranularEditorPageBuilder<?> builder) Subclasses should override this method to create content in the form hosted in this page.void
dispose()
void
doSave
(InfobaseReference model, org.eclipse.core.runtime.IProgressMonitor monitor) Saves the model content of this editor.void
infobasesReloaded
(List<Section> newInput) Called when list of registered infobases has been reloaded.void
init
(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) boolean
isDirty()
void
sectionAdded
(Section section) Notification that new section was added and persisted.protected void
updateHeaderText
(InfobaseReference model, String text) Updates the editor header text.Methods inherited from class com._1c.g5.v8.dt.internal.platform.services.ui.AbstractAefBoundEditor
bind, close, createBuilder, createPageLwtLayout, createPageSwtLayout, createPartControl, doSave, doSaveAs, formatHeaderText, getBuilder, getContainerComponent, getEditingDomain, getEngine, getModel, getPageTitle, getScene, initializeEngine, isModelAffected, isSaveAsAllowed, normalize, refreshDirty, setDefaultFeature, setFocus
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, getAdapter, 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.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
InfobaseEditor
public InfobaseEditor()
-
-
Method Details
-
doSave
Description copied from class:AbstractAefBoundEditor
Saves the model content of this editor.Subclasses must override this method to implement the open-save-close lifecycle for an editor.
- Specified by:
doSave
in classAbstractAefBoundEditor<InfobaseReference>
- Parameters:
model
- the model instance to save, cannot benull
monitor
- the progress monitor to report progress to, cannot benull
-
isDirty
public boolean isDirty()- Specified by:
isDirty
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
isDirty
in classAbstractAefBoundEditor<InfobaseReference>
-
init
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException - Specified by:
init
in interfaceorg.eclipse.ui.IEditorPart
- Overrides:
init
in classAbstractAefBoundEditor<InfobaseReference>
- Throws:
org.eclipse.ui.PartInitException
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classAbstractAefBoundEditor<InfobaseReference>
-
sectionAdded
Description copied from interface:IInfobaseChangeListener
Notification that new section was added and persisted.- Specified by:
sectionAdded
in interfaceIInfobaseChangeListener
- Parameters:
section
- the added section, cannot benull
-
infobasesReloaded
Description copied from interface:IInfobaseChangeListener
Called when list of registered infobases has been reloaded. This could happen not only when registered infobases list is explicitly reloaded by user or there are changes made outside of EDT (for example, using 1C Starter) but also when infobases are added or deleted by user using EDT or automatically by EDT itself. Moreover, the method could be called when there are no actual changes but infobases list has been reloaded (triggered manually by user or automatically).- Specified by:
infobasesReloaded
in interfaceIInfobaseChangeListener
- Parameters:
newInput
- a new input (tree of sections), cannot benull
-
updateHeaderText
Description copied from class:AbstractAefBoundEditor
Updates the editor header text.- Overrides:
updateHeaderText
in classAbstractAefBoundEditor<InfobaseReference>
- Parameters:
model
- the current model value, cannot benull
text
- the new editor header title, cannot benull
-
createFormContent
Description copied from class:AbstractAefBoundEditor
Subclasses should override this method to create content in the form hosted in this page.- Specified by:
createFormContent
in classAbstractAefBoundEditor<InfobaseReference>
- Parameters:
builder
- the AEF UI builder to construct UI, cannot benull
-