Package com.e1c.g5.v8.dt.gsw.ui.creating
Class CreatingObjectSection
java.lang.Object
com.e1c.g5.v8.dt.gsw.ui.creating.CreatingObjectSection
Creating object section. Displays this object in a tree.
-
Constructor Summary
ConstructorsConstructorDescriptionCreatingObjectSection
(org.eclipse.swt.widgets.Composite parent, MdObject creatingObject, BasicObjectsSection basicObjectsSection, ModuleProcessor moduleProcessor, boolean canEdit, IGenerationBasedOnManagementService basedOnManagementService) Сreates a creating object section. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Activate search box for creating object treevoid
addObjects
(Collection<MdObject> result) Add new basic objects itemsvoid
Automaticly filling fields basic objectsvoid
Clear fieldsvoid
Clear selected fieldsvoid
Realized collapse all actionvoid
convertToComplexAction
(int count) Convert last n action to complex actionCreates Fields used treeItem from creating object sectionvoid
Realized expand all actionvoid
fillSection
(List<Fields> inputFields) Fills creating object sectionboolean
Return enabled sortReturns created object treevoid
redo()
Repeats cancelled by user actionvoid
setSortEnabled
(boolean isSortEnabled) Set enabled sortvoid
setTabularSectionData
(GenerationSettingsConstructorTreeItem treeItem, String value) Filling tabular section by DND datavoid
setTypeMatcher
(GenerationSettingsConstructorValidator movementCostructorValidator) Set type matcherboolean
setValue
(GenerationSettingsConstructorTreeItem treeItem, String expression) Set value in register tree by register sectionvoid
undo()
Сancels the action performed by the user
-
Constructor Details
-
CreatingObjectSection
public CreatingObjectSection(org.eclipse.swt.widgets.Composite parent, MdObject creatingObject, BasicObjectsSection basicObjectsSection, ModuleProcessor moduleProcessor, boolean canEdit, IGenerationBasedOnManagementService basedOnManagementService) Сreates a creating object section.- Parameters:
parent
- - external composite, cannot benull
creatingObject
- - creating object for which the generation settings constructor opens,cannot benull
basicObjectsSection
- - basic objects tree by generation settings constructor, cannot benull
moduleProcessor
- - generation settings constructor module processor , if not null , creating object section will create with validate, may benull
canEdit
- - if creating object can edittrue
, else
false
basedOnManagementService
-IGenerationBasedOnManagementService
service reference. Cannot benull
-
-
Method Details
-
expandAll
public void expandAll()Realized expand all action -
collapseAll
public void collapseAll()Realized collapse all action -
getTreeViewer
Returns created object tree- Returns:
- created object tree, may return
null
-
activateSearch
public void activateSearch()Activate search box for creating object tree -
fillSection
Fills creating object section- Parameters:
inputFields
- - input objects data,cannot benull
-
setValue
Set value in register tree by register section- Parameters:
treeItem
- - changed element, cannot benull
expression
- - value by expression, cannot benull
- Returns:
true
if successfull,false
otherwise
-
setTypeMatcher
Set type matcher- Parameters:
movementCostructorValidator
- - movement constructor validator, maynull
-
setTabularSectionData
Filling tabular section by DND data- Parameters:
treeItem
- - tabular section item , cannot benull
value
- - data , cannot benull
-
getSortEnabled
public boolean getSortEnabled()Return enabled sort- Returns:
- isSortEnabled
-
convertToComplexAction
public void convertToComplexAction(int count) Convert last n action to complex action- Parameters:
count
- - n action
-
addObjects
Add new basic objects items- Parameters:
result
- - basic objects
-
autoFillFields
public void autoFillFields()Automaticly filling fields basic objects -
clearSelectedFields
Clear selected fields- Parameters:
items
- - clearing fields, cannot benull
-
clearObjectFields
public void clearObjectFields()Clear fields -
setSortEnabled
public void setSortEnabled(boolean isSortEnabled) Set enabled sort- Parameters:
isSortEnabled
- - enabled sort
-
undo
public void undo()Сancels the action performed by the user -
redo
public void redo()Repeats cancelled by user action -
createFillingFields
Creates Fields used treeItem from creating object section- Returns:
- fields,cannot be
null
-