public void run() { for (GenFeature genFeature : ((GenClass)genBase).getAllGenFeatures()) { if (literal.equals(genFeature.getName())) { genBase.eSet(eStructuralFeature, genFeature); break; } } } });
public String getFeatureID(GenFeature genFeature) { return getClassifierID() + "__" + format(genFeature.getName(), '_', null, false, false).toUpperCase(); }
String featureName = feature.getName(); if (featureName != null) if (labelFeature == null || !labelFeature.getName().toLowerCase().endsWith("name")) !labelFeature.getName().toLowerCase().endsWith("name") && !labelFeature.getName().equalsIgnoreCase("id")) labelFeature.getName().toLowerCase().indexOf("name") == -1 && !labelFeature.getName().equalsIgnoreCase("id"))
/** * This returns the label text for the adapted class. */ @Override public String getText(Object object) { GenFeature genFeature = (GenFeature)object; EStructuralFeature eStructuralFeature = genFeature.getEcoreFeature(); StringBuffer result = new StringBuffer(); result.append(genFeature.getName()); if (eStructuralFeature.getEType() != null) { result.append(" : "); result.append(eStructuralFeature.getEType().getName()); } return result.toString(); }
String featureName = feature.getName(); if (featureName != null) if (labelFeature == null || !labelFeature.getName().toLowerCase(locale).endsWith("name")) !labelFeature.getName().toLowerCase(locale).endsWith("name") && !labelFeature.getName().equalsIgnoreCase("id")) labelFeature.getName().toLowerCase(locale).indexOf("name") == -1 && !labelFeature.getName().equalsIgnoreCase("id"))
public List<GenFeature> getFilteredAllGenFeatures() { ArrayList<GenFeature> result = new ArrayList<GenFeature>(); // We need to screen out duplicates in the unlikely event that we have two // features with the same class-qualified name. We'll only generate one property // string in that case and let the user add the second one manually, if necessary. // Set<String> noDupHash = new HashSet<String>(); for (GenClass genClass : getGenClasses()) { for (GenFeature genFeature : genClass.getGenFeatures()) { if (noDupHash.add(genFeature.getGenClass().getName() + genFeature.getName())) { result.add(genFeature); } } } return result; }
public List<GenFeature> getFilteredAllGenFeatures() { ArrayList<GenFeature> result = new ArrayList<GenFeature>(); // We need to screen out duplicates in the unlikely event that we have two // features with the same class-qualified name. We'll only generate one property // string in that case and let the user add the second one manually, if necessary. // Set<String> noDupHash = new HashSet<String>(); for (GenClass genClass : getGenClasses()) { for (GenFeature genFeature : genClass.getGenFeatures()) { if (noDupHash.add(genFeature.getGenClass().getName() + genFeature.getName())) { result.add(genFeature); } } } return result; }
public String getFeatureID(GenFeature genFeature) { return getClassifierID() + "__" + format(genFeature.getName(), '_', null, false, false).toUpperCase(getGenModel().getLocale()); }
public List<GenFeature> getFilteredAllGenFeatures() { ArrayList<GenFeature> result = new ArrayList<GenFeature>(); // We need to filer out duplicates in the unlikely event that we have two // features with the same class-qualified name. We'll only generate one property // string in that case and let the user add the second one manually, if necessary. // Set<String> noDupSet = new HashSet<String>(); for (GenFeature genFeature : getAllGenFeatures()) { if (isCreationCommands() || genFeature.isProperty()) { if (noDupSet.add(genFeature.getGenClass().getName() + "_" + genFeature.getName())) { result.add(genFeature); } } } return result; }
public List<GenFeature> getFilteredAllGenFeatures() { ArrayList<GenFeature> result = new ArrayList<GenFeature>(); // We need to filer out duplicates in the unlikely event that we have two // features with the same class-qualified name. We'll only generate one property // string in that case and let the user add the second one manually, if necessary. // Set<String> noDupSet = new HashSet<String>(); for (GenFeature genFeature : getAllGenFeatures()) { if (isCreationCommands() || genFeature.isProperty()) { if (noDupSet.add(genFeature.getGenClass().getName() + "_" + genFeature.getName())) { result.add(genFeature); } } } return result; }
protected String getGetAccessor(final EStructuralFeature feature) { return GenModelUtil2.getGenFeature(feature, this.getLanguage().getResourceSet()).getName(); }
public String getCreateChildIconFileName(GenModel genModel, GenFeature feature, GenClass childClass) { GenClass parentClass = feature.getGenClass(); if (genModel.getRuntimePlatform() == GenRuntimePlatform.GWT) { return genModel.getEditDirectory() + "/" + genModel.getEditPluginPackageName().replace(".", "/") + "/icons/full/ctool16/" + "Create" + parentClass.getName() + "_" + feature.getName() + "_" + childClass.getName() + ".gif"; } else { return genModel.getEditIconsDirectory() + "/full/ctool16/" + "Create" + parentClass.getName() + "_" + feature.getName() + "_" + childClass.getName() + ".gif"; } }
public String getCreateChildIconFileName(GenFeature feature, GenClass childClass) { GenClass parentClass = feature.getGenClass(); return getGenModel().getEditIconsDirectory() + "/full/ctool16/" + "Create" + parentClass.getName() + "_" + feature.getName() + "_" + childClass.getName() + ".gif"; }
stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_15); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_16); stringBuffer.append(genFeature.getFormattedName()); stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_18); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_19); stringBuffer.append(description);
stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_13); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_14); stringBuffer.append(genFeature.getFormattedName()); stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_13); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_15); stringBuffer.append(description);
stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_18); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_19); stringBuffer.append(genFeature.getFormattedName()); stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_18); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_21); stringBuffer.append(description);
stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_53); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_54); stringBuffer.append(genFeature.getGenClass().getUncapName()); stringBuffer.append(genFeature.getGenClass().getName()); stringBuffer.append(TEXT_53); stringBuffer.append(genFeature.getName()); stringBuffer.append(TEXT_56); stringBuffer.append(genFeature.getGenClass().getUncapName());
suppressedNames.append(genFeature.getName()); suppressedNames.append(' '); appendLineBreak(suppressedInfo);
suppressedNames.append(genFeature.getName()); suppressedNames.append(' '); appendLineBreak(suppressedInfo);
if (literal.equals(genFeature.getName()))