Package com.e1c.langtool.ui.tree
Class AbstractTreeFactory
java.lang.Object
com.e1c.langtool.ui.tree.AbstractTreeFactory
- Direct Known Subclasses:
EditorTreeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newIFeatureTreeobject.createFeatureValueItem(ITreeItem parent, FeatureValue value, int skipKeySegments) Creates a newIFeatureValueItemobject.createGroupItem(ITreeItem parent, int skipKeySegments, FeatureKey key) Creates a newGroupItemobject.createResourceItem(FeatureValue value) Creates a newResourceItemobject.voidfillUpTree(IFeatureTree tree, Collection<FeatureValue> values, boolean isHierarhical) Fills the tree fromFeatureValuevalues.protected ITreeItemfindParentGroup(ITreeItemContainer scope, FeatureValue currentValue) Find parent group in scope for the current valueprotected static intGets the minimal skip key segment count.
-
Constructor Details
-
AbstractTreeFactory
public AbstractTreeFactory()
-
-
Method Details
-
getMinimalSkipKeySegment
Gets the minimal skip key segment count.- Parameters:
values- the values- Returns:
- the minimal skip key segment
-
createFeatureTree
Creates a newIFeatureTreeobject.- Returns:
- the feature tree
-
createFeatureValueItem
public IFeatureValueItem createFeatureValueItem(ITreeItem parent, FeatureValue value, int skipKeySegments) Creates a newIFeatureValueItemobject.- Parameters:
parent- the parentvalue- the valueskipKeySegments- the skip key segments- Returns:
- the feature value item
-
createGroupItem
Creates a newGroupItemobject.- Parameters:
parent- the parentskipKeySegments- the skip key segmentskey- the key- Returns:
- the group item
-
createResourceItem
Creates a newResourceItemobject.- Parameters:
value-- Returns:
- the resource item
-
fillUpTree
Fills the tree fromFeatureValuevalues.- Parameters:
tree- the treevalues- the valuesisHierarhical- the is hierarhical
-
findParentGroup
Find parent group in scope for the current value- Parameters:
scope- the scopecurrentValue- the current value- Returns:
- the tree item
-