[Uml-devel] KDE/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu May 26 02:33:30 UTC 2005
SVN commit 418322 by okellogg:
Constructor, makeMultiClassifierPopup(): Consider UMLClass abstractness
before offering "Change into Interface".
M +6 -3 listpopupmenu.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/listpopupmenu.cpp #418321:418322
@@ -225,8 +225,10 @@
setItemChecked( mt_DrawAsCircle_Selection,
((ClassifierWidget*)object)->getDrawAsCircle() );
insertItem(i18n("Change into Class"), mt_ChangeToClass_Selection);
- } else if (type == Uml::wt_Class && c->getClassifier()->attributes() == 0) {
- insertItem(i18n("Change into Interface"), mt_ChangeToInterface_Selection);
+ } else if (type == Uml::wt_Class) {
+ UMLClassifier *umlc = c->getClassifier();
+ if (umlc->getAbstract() && umlc->attributes() == 0)
+ insertItem(i18n("Change into Interface"), mt_ChangeToInterface_Selection);
}
}
@@ -664,7 +666,8 @@
} else {
insertItem(i18n("Refactor"), mt_Refactoring);
insertItem(i18n("View Code"), mt_ViewCode);
- if (c->getClassifier()->attributes() == 0)
+ UMLClassifier *umlc = c->getClassifier();
+ if (umlc->getAbstract() && umlc->attributes() == 0)
insertItem(i18n("Change into Interface"), mt_ChangeToInterface);
}
insertStdItem(mt_Properties);
More information about the umbrello-devel
mailing list