protected int countCreateChildIcons(GenClass genClass) { int result = 0; GenModel genModel = genClass.getGenModel(); if (genModel.isCreationCommands() && genModel.isCreationIcons()) { for (GenFeature feature : genClass.getCreateChildFeaturesIncludingDelegation()) { result += genClass.getChildrenClasses(feature).size(); } } return result; }
protected int countCreateChildIcons(GenPackage genPackage) { int result = 0; GenModel genModel = genPackage.getGenModel(); if (genModel.isCreationCommands() && genModel.isCreationIcons() && genPackage.isChildCreationExtenders()) { for (Map.Entry<GenPackage, Map<GenClass, List<GenClass.ChildCreationData>>> packageEntry : genPackage.getExtendedChildCreationData().entrySet()) { for (Map.Entry<GenClass, List<GenClass.ChildCreationData>> classEntry : packageEntry.getValue().entrySet()) { for (GenClass.ChildCreationData childCreationData : classEntry.getValue()) { if (childCreationData.createClassifier instanceof GenClass && (childCreationData.delegatedFeature == null || classEntry.getKey().getAllGenFeatures().contains(childCreationData.delegatedFeature))) { ++result; } } } } } return result; }
protected void generateCreateChildIcons(GenPackage genPackage, Monitor monitor) if (genModel.isCreationCommands() && genModel.isCreationIcons() && genPackage.isChildCreationExtenders())
stringBuffer.append(TEXT_211); if (!genModel.isCreationIcons() && genClass.isModelRoot()) { stringBuffer.append(TEXT_212); if (genModel.useClassOverrideAnnotation()) {
if (genModel.getRuntimeVersion().getValue() >= GenRuntimeVersion.EMF26_VALUE && !genModel.isCreationIcons()) { stringBuffer.append(TEXT_67); if (genModel.useClassOverrideAnnotation()) {
protected void generateCreateChildIcons(GenClass genClass, Monitor monitor) { GenModel genModel = genClass.getGenModel(); if (genModel.isCreationCommands() && genModel.isCreationIcons()) { for (GenFeature feature : genClass.getCreateChildFeaturesIncludingDelegation()) { for (GenClass childClass : genClass.getChildrenClasses(feature)) { message = CodeGenEcorePlugin.INSTANCE.getString ("_UI_GeneratingCreateChildIcon_message", new Object[] { genClass.getCreateChildIconFileName(feature, childClass) }); monitor.subTask(message); generateGIF (genClass.getCreateChildIconFileName(feature, childClass), getGIFEmitter(getInputPathNames(), CREATE_CHILD_ICON_ID), genClass.getName(), childClass.getName(), false, createMonitor(monitor, 1)); } } } }
if (getGenModel().isCreationCommands() && getGenModel().isCreationIcons())
if (getGenModel().isCreationCommands() && getGenModel().isCreationIcons())
protected void generateCreateChildIcons(GenClass genClass, Monitor monitor) { GenModel genModel = genClass.getGenModel(); if (genModel.isCreationCommands() && genModel.isCreationIcons()) { for (GenFeature feature : genClass.getAllCreateChildFeaturesIncludingDelegation()) { for (GenClass childClass : genClass.getChildrenClasses(feature)) { message = CodeGenEcorePlugin.INSTANCE.getString ("_UI_GeneratingCreateChildIcon_message", new Object[] { genClass.getCreateChildIconFileName(feature, childClass) }); monitor.subTask(message); generateGIF (genClass.getCreateChildIconFileName(feature, childClass), getGIFEmitter(getInputPathNames(), CREATE_CHILD_ICON_ID), genClass.getName(), childClass.getName(), false, createMonitor(monitor, 1)); } } } else { monitor.worked(countCreateChildIcons(genClass)); } }
setModelDirectory(oldGenModelVersion.getModelDirectory()); setCreationCommands(oldGenModelVersion.isCreationCommands()); setCreationIcons(oldGenModelVersion.isCreationIcons()); setCreationSubmenus(oldGenModelVersion.isCreationSubmenus()); setModelPluginID(oldGenModelVersion.getModelPluginID());
setModelDirectory(oldGenModelVersion.getModelDirectory()); setCreationCommands(oldGenModelVersion.isCreationCommands()); setCreationIcons(oldGenModelVersion.isCreationIcons()); setCreationSubmenus(oldGenModelVersion.isCreationSubmenus()); setModelPluginID(oldGenModelVersion.getModelPluginID());