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 TypeMethodDescriptionvoidActivate search box for creating object treevoidaddObjects(Collection<MdObject> result) Add new basic objects itemsvoidAutomaticly filling fields basic objectsvoidClear fieldsvoidClear selected fieldsvoidRealized collapse all actionvoidconvertToComplexAction(int count) Convert last n action to complex actionCreates Fields used treeItem from creating object sectionvoidRealized expand all actionvoidfillSection(List<Fields> inputFields) Fills creating object sectionbooleanReturn enabled sortReturns created object treevoidredo()Repeats cancelled by user actionvoidsetSortEnabled(boolean isSortEnabled) Set enabled sortvoidsetTabularSectionData(GenerationSettingsConstructorTreeItem treeItem, String value) Filling tabular section by DND datavoidsetTypeMatcher(GenerationSettingsConstructorValidator movementCostructorValidator) Set type matcherbooleansetValue(GenerationSettingsConstructorTreeItem treeItem, String expression) Set value in register tree by register sectionvoidundo()С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 benullcreatingObject- - creating object for which the generation settings constructor opens,cannot benullbasicObjectsSection- - basic objects tree by generation settings constructor, cannot benullmoduleProcessor- - generation settings constructor module processor , if not null , creating object section will create with validate, may benullcanEdit- - if creating object can edittrue, elsefalsebasedOnManagementService-IGenerationBasedOnManagementServiceservice 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 benullexpression- - value by expression, cannot benull- Returns:
trueif successfull,falseotherwise
-
setTypeMatcher
Set type matcher- Parameters:
movementCostructorValidator- - movement constructor validator, maynull
-
setTabularSectionData
Filling tabular section by DND data- Parameters:
treeItem- - tabular section item , cannot benullvalue- - 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
-