/** * @since 2.1 */ protected boolean canBeReferencedLocally(EObject object) { boolean result = qualifiedNameProvider.getFullyQualifiedName(object) != null; return result; }
protected boolean hasHover(EObject o) { return nameProvider.getFullyQualifiedName(o) !=null; }
protected QualifiedName getQualifiedNameOfLocalElement(final EObject context) { return qualifiedNameProvider.getFullyQualifiedName(context); }
private QualifiedName getFullyQualifiedName(EObject selectedElement) { if (selectedElement == null) { return null; } return getQualifiedNameProvider(selectedElement).getFullyQualifiedName(selectedElement); }
public String getName(final EObject object) { QualifiedName _fullyQualifiedName = null; if (object!=null) { _fullyQualifiedName=this._iQualifiedNameProvider.getFullyQualifiedName(object); } return this.getName(_fullyQualifiedName); }
@Override protected String getQualifiedNameFor(XtendTypeDeclaration element) { return this.nameProvider.getFullyQualifiedName(element).toString(); }
@Override protected String getQualifiedNameFor(SarlAgent element) { return this.nameProvider.getFullyQualifiedName(element).toString(); }
@Override protected String getQualifiedNameFor(SarlClass element) { return this.nameProvider.getFullyQualifiedName(element).toString(); }
public Set<IEObjectDescription> findDuplicates(Pattern pattern) { QualifiedName fullyQualifiedName = nameProvider.getFullyQualifiedName(pattern); return findShadowingClasses(pattern, fullyQualifiedName, PatternLanguagePackage.Literals.PATTERN); }
public String executableExtensionFactoryQN(final org.eclipse.emf.parsley.dsl.model.Module element) { String _string = this._iQualifiedNameProvider.getFullyQualifiedName(element).toString(); String _plus = (_string + "."); CharSequence _extFactoryName = this.projectFilesGenerator.extFactoryName(this._iQualifiedNameProvider.getFullyQualifiedName(element).toString()); return (_plus + _extFactoryName); }
protected void doCheckUniqueName(final JvmDeclaredType type) { EObject _eContainer = type.eContainer(); boolean _tripleEquals = (_eContainer == null); if (_tripleEquals) { final QualifiedName name = this.qualifiedNameProvider.getFullyQualifiedName(type); if ((name != null)) { this.doCheckUniqueName(name, type); } } }
public boolean createEObjectDescriptions(EObject eObject, IAcceptor<IEObjectDescription> acceptor) { if (getQualifiedNameProvider() == null) return false; try { QualifiedName qualifiedName = getQualifiedNameProvider().getFullyQualifiedName(eObject); if (qualifiedName != null) { acceptor.accept(EObjectDescription.create(qualifiedName, eObject)); } } catch (Exception exc) { LOG.error(exc.getMessage()); } return true; }
protected String getElementName(EObject primaryTarget) { QualifiedName qualifiedName = qualifiedNameProvider.getFullyQualifiedName(primaryTarget); if (qualifiedName != null) { return qualifiedNameConverter.toString(qualifiedName); } String simpleName = SimpleAttributeResolver.NAME_RESOLVER.getValue(primaryTarget); return (simpleName != null) ? simpleName : primaryTarget.eResource().getURIFragment(primaryTarget); }
public CharSequence javadocEvaluatorClass(final Pattern pattern) { StringConcatenation _builder = new StringConcatenation(); _builder.append("A xbase xexpression evaluator tailored for the "); QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(pattern); _builder.append(_fullyQualifiedName, ""); _builder.append(" pattern."); return _builder; }
/** Generate the given object. * * @param annotation the annotation. * @param it the target for the generated content. * @param context the context. */ protected void _generate(SarlAnnotationType annotation, PyAppendable it, IExtraLanguageGeneratorContext context) { generateTypeDeclaration( this.qualifiedNameProvider.getFullyQualifiedName(annotation).toString(), annotation.getName(), false, Collections.emptyList(), getTypeBuilder().getDocumentation(annotation), true, annotation.getMembers(), it, context, null); }
@Override public boolean createEObjectDescriptions(EObject eObject, IAcceptor<IEObjectDescription> acceptor) { if (eObject instanceof Pattern) { QualifiedName qualifiedName = getQualifiedNameProvider().getFullyQualifiedName(eObject); if (qualifiedName != null) { acceptor.accept(EObjectDescription.create(qualifiedName, eObject, getUserData((Pattern) eObject))); } return false; } return super.createEObjectDescriptions(eObject, acceptor); }
/** Generate the given object. * * @param enumeration the enumeration. * @param context the context. */ protected void _generate(SarlEnumeration enumeration, IExtraLanguageGeneratorContext context) { final JvmDeclaredType jvmType = getJvmModelAssociations().getInferredType(enumeration); final PyAppendable appendable = createAppendable(jvmType, context); if (generateEnumerationDeclaration(enumeration, appendable, context)) { final QualifiedName name = getQualifiedNameProvider().getFullyQualifiedName(enumeration); writeFile(name, appendable, context); } }
/** Generate the given object. * * @param interf the interface. * @param it the target for the generated content. * @param context the context. */ protected void _generate(SarlInterface interf, PyAppendable it, IExtraLanguageGeneratorContext context) { generateTypeDeclaration( this.qualifiedNameProvider.getFullyQualifiedName(interf).toString(), interf.getName(), true, interf.getExtends(), getTypeBuilder().getDocumentation(interf), true, interf.getMembers(), it, context, null); }
public CharSequence javadocProcessorClass(final Pattern pattern) { StringConcatenation _builder = new StringConcatenation(); _builder.append("A match processor tailored for the "); QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(pattern); _builder.append(_fullyQualifiedName, ""); _builder.append(" pattern."); _builder.newLineIfNotEmpty(); _builder.newLine(); _builder.append("Clients should derive an (anonymous) class that implements the abstract process()."); _builder.newLine(); return _builder; }
public CharSequence javadocProcessorClass(final Pattern pattern) { StringConcatenation _builder = new StringConcatenation(); _builder.append("A match processor tailored for the "); QualifiedName _fullyQualifiedName = this._iQualifiedNameProvider.getFullyQualifiedName(pattern); _builder.append(_fullyQualifiedName); _builder.append(" pattern."); _builder.newLineIfNotEmpty(); _builder.newLine(); _builder.append("Clients should derive an (anonymous) class that implements the abstract process()."); _builder.newLine(); return _builder; }