@Override public void completeMobaGeneratorIDFeature_GeneratorId( final EObject model, final Assignment assignment, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) { super.completeMobaGeneratorIDFeature_GeneratorId(model, assignment, context, acceptor); final String prefix = context.getPrefix(); final Map<String, ExtensionGeneratorDelegate.Metadata> allGenerators = this.generatorDelegate.readExtentionsMetadataById(this.grammarName, prefix); Collection<ExtensionGeneratorDelegate.Metadata> _values = allGenerators.values(); final Consumer<ExtensionGeneratorDelegate.Metadata> _function = (ExtensionGeneratorDelegate.Metadata it) -> { StringConcatenation _builder = new StringConcatenation(); String _id = it.getId(); String _version = it.getVersion(); String _versionedIdWithWhitespace = MobaUtil.toVersionedIdWithWhitespace(_id, _version); _builder.append(_versionedIdWithWhitespace, ""); StyledString _createStyledString = this.createStyledString(it); Image _image = this.getImage(model); ConfigurableCompletionProposal _doCreateProposal = this.doCreateProposal( _builder.toString(), _createStyledString, _image, 1000, context); acceptor.accept(_doCreateProposal); }; _values.forEach(_function); }
@Override public List<MobaProperty> getAllProperties() { List<EObject> types = getAllSuperTypes(); // add this instance to the begin of the list types.add(0, this); return MobaUtil.getAllFeatures( types, MobaProperty.class, MobaPackage.Literals.MOBA_PROPERTIES_ABLE__PROPERTIES); }
@Override public List<MobaProperty> getGenProperties() { return MobaUtil.getGenFeatures(getAllProperties(), MobaPackage.Literals.MOBA_PROPERTY__KEY); }