Class FeatureSegmentIdeDescriptor
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.editor.handler.FeatureSegmentIdeDescriptor
-
- All Implemented Interfaces:
SegmentIdeDescriptor
public class FeatureSegmentIdeDescriptor extends java.lang.Object implements SegmentIdeDescriptor
- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description FeatureSegmentIdeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EStructuralFeatureSelectionValidator
getEStructuralFeatureSelectionValidator()
Returns anEStructuralFeatureSelectionValidator
that determines whether anEStructuralFeature
is a valid reference path part for the described segment type.ReferenceTypeResolver
getReferenceTypeResolver()
Returns aReferenceTypeResolver
that resolves the rootEClass
for the next reference path segment from an EReference.org.eclipse.emf.ecore.EClass
getSegmentType()
Returns theEClass
of the segment type that is described by thisSegmentIdeDescriptor
.boolean
isAllowedAsLastElementInPath()
Defines whether the described segment can be the last element of a reference path.boolean
isAvailableInIde()
Defines whether the described segment type may be created by users.boolean
isLastElementInPath()
Defines whether the described segment may appear in the middle of a reference path or if the segment is only allowed to be at the end of a path.
-
-
-
Method Detail
-
getSegmentType
public org.eclipse.emf.ecore.EClass getSegmentType()
Description copied from interface:SegmentIdeDescriptor
Returns theEClass
of the segment type that is described by thisSegmentIdeDescriptor
.- Specified by:
getSegmentType
in interfaceSegmentIdeDescriptor
- Returns:
- The segment's
EClass
-
isAvailableInIde
public boolean isAvailableInIde()
Description copied from interface:SegmentIdeDescriptor
Defines whether the described segment type may be created by users.- Specified by:
isAvailableInIde
in interfaceSegmentIdeDescriptor
- Returns:
true
if users may create the type,false
otherwise
-
getEStructuralFeatureSelectionValidator
public EStructuralFeatureSelectionValidator getEStructuralFeatureSelectionValidator()
Description copied from interface:SegmentIdeDescriptor
Returns anEStructuralFeatureSelectionValidator
that determines whether anEStructuralFeature
is a valid reference path part for the described segment type. E.g. an index segment needs a multi reference or attribute.- Specified by:
getEStructuralFeatureSelectionValidator
in interfaceSegmentIdeDescriptor
- Returns:
- The
EStructuralFeatureSelectionValidator
-
isLastElementInPath
public boolean isLastElementInPath()
Description copied from interface:SegmentIdeDescriptor
Defines whether the described segment may appear in the middle of a reference path or if the segment is only allowed to be at the end of a path.- Specified by:
isLastElementInPath
in interfaceSegmentIdeDescriptor
- Returns:
true
if the segment must only be at the end of a path,false
otherwise
-
getReferenceTypeResolver
public ReferenceTypeResolver getReferenceTypeResolver()
Description copied from interface:SegmentIdeDescriptor
Returns aReferenceTypeResolver
that resolves the rootEClass
for the next reference path segment from an EReference.- Specified by:
getReferenceTypeResolver
in interfaceSegmentIdeDescriptor
- Returns:
- The
ReferenceTypeResolver
-
isAllowedAsLastElementInPath
public boolean isAllowedAsLastElementInPath()
Description copied from interface:SegmentIdeDescriptor
Defines whether the described segment can be the last element of a reference path.- Specified by:
isAllowedAsLastElementInPath
in interfaceSegmentIdeDescriptor
- Returns:
true
if the segment can be the last element of a reference path,false
otherwise
-
-