Class RightsEditorRightsPage<M extends org.eclipse.emf.ecore.EObject,E extends DtGranularEditor<M>>
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- org.eclipse.ui.forms.editor.FormPage
-
- com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage<M>
-
- com._1c.g5.v8.dt.rights.ui.editors.rights.RightsEditorRightsPage<M,E>
-
- All Implemented Interfaces:
IDtEditor<M>
,IDtGranularEditorPage<M>
,IGotoSelection
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.forms.editor.IFormPage
,org.eclipse.ui.IEditorPart
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IShowEditorInput
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IShowInSource
,org.eclipse.ui.part.IWorkbenchPartOrientation
public class RightsEditorRightsPage<M extends org.eclipse.emf.ecore.EObject,E extends DtGranularEditor<M>> extends DtGranularEditorPage<M>
Rights page.
-
-
Field Summary
Fields Modifier and Type Field Description protected IBmEmfIndexManager
bmEmfIndexManager
protected com.google.inject.Provider<RightsEditorController>
controllerProvider
protected IModelEditingSupport
modelEditingSupport
protected org.eclipse.xtext.naming.IQualifiedNameProvider
qualifiedNameProvider
static String
RIGHTS_PAGE_ID
The unique page identifier-
Fields inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activeSelection, derivedDataManagerProvider, modelManager, resourceLookup, SECTION_ID_PATTERN
-
-
Constructor Summary
Constructors Constructor Description RightsEditorRightsPage()
A constructor that creates the page and initializes it with the editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Performs necessary actions when this page is activated (i.protected ObjectsSection
createObjectSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent)
CreatesObjectsSection
instance.protected void
createPageControls(org.eclipse.ui.forms.IManagedForm managedForm)
Creates the controls of this page.protected RoleDescriptionSection
createRoleDescriptionSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent, boolean isRoleAdopted)
CreatesRoleDescriptionSection
instance.void
deactivate()
Performs necessary actions when this page is deactivated (i.void
dispose()
IRightsEditorController
getController()
Gets controller.protected MdObject
getModelMdObject()
Gets model md-object.protected String
getPageTitle()
Returns the page title.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
createFormContent, createPageLayout, getActiveFeature, getActiveSelection, getApiEditingContext, getDefaultFeature, getEditingContext, getEditor, getEditorInput, getEditorPageDescriptor, getEventGate, getHelpContextId, getModel, getPageTitle, getSectionID, getShowInContext, getWaitingPartsId, gotoSelection, init, initialize, onEventGateClosed, pathSeparetor, refresh, setActiveFeature, setActiveSelection, setDefaultFeature, setFocus, showEditorInput, showEditorInput, waitDerivedData, waitDerivedData
-
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, doSave, doSaveAs, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setIndex
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, 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, 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.forms.editor.IFormPage
canLeaveThePage, getId, getIndex, getManagedForm, getPartControl, isActive, isEditor, selectReveal, setActive, setIndex
-
-
-
-
Field Detail
-
RIGHTS_PAGE_ID
public static final String RIGHTS_PAGE_ID
The unique page identifier- See Also:
- Constant Field Values
-
bmEmfIndexManager
@Inject protected IBmEmfIndexManager bmEmfIndexManager
-
qualifiedNameProvider
@Inject protected org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider
-
controllerProvider
@Inject protected com.google.inject.Provider<RightsEditorController> controllerProvider
-
modelEditingSupport
@Inject protected IModelEditingSupport modelEditingSupport
-
-
Method Detail
-
activate
public void activate()
Description copied from interface:IDtGranularEditorPage
Performs necessary actions when this page is activated (i. e. becomes visible and active).- Specified by:
activate
in interfaceIDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Overrides:
activate
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
deactivate
public void deactivate()
Description copied from interface:IDtGranularEditorPage
Performs necessary actions when this page is deactivated (i. e. ceases to be visible and active).- Specified by:
deactivate
in interfaceIDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Overrides:
deactivate
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
getController
public IRightsEditorController getController()
Gets controller.- Returns:
- the controller
-
createPageControls
protected void createPageControls(org.eclipse.ui.forms.IManagedForm managedForm)
Description copied from class:DtGranularEditorPage
Creates the controls of this page.- Specified by:
createPageControls
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
managedForm
- managed form that will contain the controls.
-
getPageTitle
protected String getPageTitle()
Description copied from class:DtGranularEditorPage
Returns the page title.- Overrides:
getPageTitle
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- this page title, never
null
-
getModelMdObject
protected MdObject getModelMdObject()
Gets model md-object.- Returns:
- the model md-object
-
createObjectSection
protected ObjectsSection createObjectSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent)
CreatesObjectsSection
instance.- Parameters:
managedForm
- the managed form that will contain the controls, can not benull
parent
- the parent control, can not benull
- Returns:
- a new instance of
ObjectsSection
, can not benull
-
createRoleDescriptionSection
protected RoleDescriptionSection createRoleDescriptionSection(org.eclipse.ui.forms.IManagedForm managedForm, org.eclipse.swt.widgets.Composite parent, boolean isRoleAdopted)
CreatesRoleDescriptionSection
instance.- Parameters:
managedForm
- the managed form that will contain the controls, can not benull
parent
- the parent control, can not benull
isRoleAdopted
- tells whether the role is adopted- Returns:
- a new instance of
RoleDescriptionSection
, can not benull
-
-