Package com.e1c.g5.v8.dt.gsw.ui
Class GenerationSettingsConstructorTreeItem
- java.lang.Object
-
- com.e1c.g5.v8.dt.gsw.ui.GenerationSettingsConstructorTreeItem
-
- Direct Known Subclasses:
GenerationSettingsConstructorCreatedObject
public class GenerationSettingsConstructorTreeItem extends Object
Class that is an element of the creating object tree and basic objects tree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenerationSettingsConstructorTreeItem.Type
Enum by types of elements in trees of generation settings constructor
-
Constructor Summary
Constructors Constructor Description GenerationSettingsConstructorTreeItem(GenerationSettingsConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, GenerationSettingsConstructorTreeItem.Type type, org.eclipse.emf.ecore.EObject eObject)
Сreates an element of the generation settings constructor tree , with type element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(GenerationSettingsConstructorTreeItem treeItem)
Add child in tree itemCollection<GenerationSettingsConstructorTreeItem>
getChildren()
Returns children of the elementorg.eclipse.swt.graphics.Image
getImage()
Returns image of elementorg.eclipse.xtext.diagnostics.Severity
getIssueType()
org.eclipse.emf.ecore.EObject
getObject()
Returns associated with this item model object.GenerationSettingsConstructorTreeItem
getParent()
Returns parent of this tree elementString
getText()
Returns name of elementGenerationSettingsConstructorTreeItem.Type
getType()
Returns type of elementString
getValidateResult()
Returns validate resultString
getValue()
Returns expression valueboolean
isMatch()
Returns basic objects section element matchvoid
setChildren(Collection<GenerationSettingsConstructorTreeItem> children)
Sets children of the elementvoid
setIssueType(org.eclipse.xtext.diagnostics.Severity issue)
Set issue typevoid
setMatch(boolean match)
Set basic objects section element matchvoid
setValidateResult(String validateValue)
Sets validate result messagevoid
setValue(String value)
Sets expression value
-
-
-
Constructor Detail
-
GenerationSettingsConstructorTreeItem
public GenerationSettingsConstructorTreeItem(GenerationSettingsConstructorTreeItem parentElement, String name, org.eclipse.swt.graphics.Image image, GenerationSettingsConstructorTreeItem.Type type, org.eclipse.emf.ecore.EObject eObject)
Сreates an element of the generation settings constructor tree , with type element- Parameters:
parentElement
- - parent element in the tree, may benull
name
- - name of the element in the tree ,cannot benull
image
- - image of the element in the tree, cannot benull
type
- - type of element in the tree, cannot benull
eObject
- - associated with this item model object, can benull
-
-
Method Detail
-
setChildren
public void setChildren(Collection<GenerationSettingsConstructorTreeItem> children)
Sets children of the element- Parameters:
children
- - child elements in the tree, cannot benull
-
getChildren
public Collection<GenerationSettingsConstructorTreeItem> getChildren()
Returns children of the element- Returns:
- child elements in the tree, cannot return
null
-
getParent
public GenerationSettingsConstructorTreeItem getParent()
Returns parent of this tree element- Returns:
- parent of this tree element , may return
null
-
getText
public String getText()
Returns name of element- Returns:
- name of element, cannot return
null
-
getImage
public org.eclipse.swt.graphics.Image getImage()
Returns image of element- Returns:
- image of element, cannot return
null
-
addChild
public void addChild(GenerationSettingsConstructorTreeItem treeItem)
Add child in tree item- Parameters:
treeItem
- - child of element, cannot benull
-
getType
public GenerationSettingsConstructorTreeItem.Type getType()
Returns type of element- Returns:
- Type by type element, cannot be
null
-
getValue
public String getValue()
Returns expression value- Returns:
- string - value , cannot be
null
-
setValue
public void setValue(String value)
Sets expression value- Parameters:
value
- expression value , cannot benull
-
setValidateResult
public void setValidateResult(String validateValue)
Sets validate result message- Parameters:
validateValue
- - validate result message,may benull
-
getValidateResult
public String getValidateResult()
Returns validate result- Returns:
- validate result message,may be
null
-
setIssueType
public void setIssueType(org.eclipse.xtext.diagnostics.Severity issue)
Set issue type- Parameters:
issue
- - issue type,may benull
-
getIssueType
public org.eclipse.xtext.diagnostics.Severity getIssueType()
- Returns:
- the issue,may be
null
-
setMatch
public void setMatch(boolean match)
Set basic objects section element match- Parameters:
match
-
-
isMatch
public boolean isMatch()
Returns basic objects section element match- Returns:
- type match
-
getObject
public org.eclipse.emf.ecore.EObject getObject()
Returns associated with this item model object. Can returnnull
.- Returns:
- associated with this item model object. Can return
null
.
-
-