Search in sources :

Example 1 with ObjectIdentifierComponent

use of org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent in project titan.EclipsePlug-ins by eclipse.

the class RelativeObjectIdentifier_Value method getFullName.

@Override
public /**
 * {@inheritDoc}
 */
StringBuilder getFullName(final INamedNode child) {
    final StringBuilder builder = super.getFullName(child);
    ObjectIdentifierComponent component;
    for (int i = 0, size = objectIdComponents.size(); i < size; i++) {
        component = objectIdComponents.get(i);
        if (component == child) {
            return builder.append(INamedNode.DOT).append(i + 1);
        }
    }
    return builder;
}
Also used : ObjectIdentifierComponent(org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent)

Example 2 with ObjectIdentifierComponent

use of org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent in project titan.EclipsePlug-ins by eclipse.

the class RelativeObjectIdentifier_Value method updateSyntax.

@Override
public /**
 * {@inheritDoc}
 */
void updateSyntax(final TTCN3ReparseUpdater reparser, final boolean isDamaged) throws ReParseException {
    if (isDamaged) {
        throw new ReParseException();
    }
    for (int i = 0, size = objectIdComponents.size(); i < size; i++) {
        final ObjectIdentifierComponent component = objectIdComponents.get(i);
        component.updateSyntax(reparser, false);
        reparser.updateLocation(component.getLocation());
    }
}
Also used : ObjectIdentifierComponent(org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent) ReParseException(org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException)

Aggregations

ObjectIdentifierComponent (org.eclipse.titan.designer.AST.TTCN3.values.ObjectIdentifierComponent)2 ReParseException (org.eclipse.titan.designer.parsers.ttcn3parser.ReParseException)1