Class EditorPageDescriptor
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.base.EditorPageDescriptor
-
public class EditorPageDescriptor extends Object
Editor page data.
-
-
Constructor Summary
Constructors Constructor Description EditorPageDescriptor(org.eclipse.core.runtime.IConfigurationElement configurationElement, String className, List<org.eclipse.emf.ecore.EStructuralFeature> eFeatures, String pageId, String afterPageId, boolean defaultPage, org.eclipse.core.expressions.Expression enablement)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M extends org.eclipse.emf.ecore.EObject>
IDtGranularEditorPage<M>createPage(IDtGranularEditor<M> editor)
Creates dt granular editor page for selected editor with own class loader.String
getAfterPageId()
Returns the after page id.String
getClassName()
Returns the page class name.List<org.eclipse.emf.ecore.EStructuralFeature>
getFeatures()
Returns the page e-features.String
getPageId()
Returns the page id.boolean
isDefaultPage()
Returns is the page default.boolean
isEnabled(org.eclipse.emf.ecore.EObject object)
Returns whether the descriptor is enabled for the provided model object.String
toString()
-
-
-
Constructor Detail
-
EditorPageDescriptor
public EditorPageDescriptor(org.eclipse.core.runtime.IConfigurationElement configurationElement, String className, List<org.eclipse.emf.ecore.EStructuralFeature> eFeatures, String pageId, String afterPageId, boolean defaultPage, org.eclipse.core.expressions.Expression enablement)
Constructor.- Parameters:
configurationElement
- the configuration element (notnull
)className
- the page class name (notnull
)eFeatures
- the page e-features (notnull
)pageId
- the page id (notnull
)afterPageId
- the after page id, can benull
defaultPage
- whether the page is default pageenablement
- the enablement expression, cannot benull
-
-
Method Detail
-
createPage
public <M extends org.eclipse.emf.ecore.EObject> IDtGranularEditorPage<M> createPage(IDtGranularEditor<M> editor)
Creates dt granular editor page for selected editor with own class loader.- Parameters:
editor
- the dt granular editor (notnull
)- Returns:
- the dt granular editor page, can be
null
-
getAfterPageId
public String getAfterPageId()
Returns the after page id.- Returns:
- the after page id, can be
null
-
getClassName
public String getClassName()
Returns the page class name.- Returns:
- the page class name (not
null
)
-
getFeatures
public List<org.eclipse.emf.ecore.EStructuralFeature> getFeatures()
Returns the page e-features.- Returns:
- the page e-features (not
null
)
-
getPageId
public String getPageId()
Returns the page id.- Returns:
- the page id (not
null
)
-
isDefaultPage
public boolean isDefaultPage()
Returns is the page default.- Returns:
true
is the page default
-
isEnabled
public boolean isEnabled(org.eclipse.emf.ecore.EObject object)
Returns whether the descriptor is enabled for the provided model object.- Parameters:
object
- the model object to check enablement, cannot benull
- Returns:
- whether the descriptor is enabled for the provided model object
-
-