Author: tfmorris
Date: 2010-10-26 21:04:10-0700
New Revision: 18814
Modified:
trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/XMLPropPanelFactory.java
Log:
Remove unused private method
Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/XMLPropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/XMLPropPanelFactory.java?view=diff&pathrev=18814&r1=18813&r2=18814
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/XMLPropPanelFactory.java (original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/XMLPropPanelFactory.java 2010-10-26 21:04:10-0700
@@ -43,7 +43,6 @@
import org.apache.log4j.Logger;
import org.argouml.core.propertypanels.model.MetaDataCache;
import org.argouml.core.propertypanels.model.PanelData;
-import org.argouml.i18n.Translator;
import org.argouml.model.Model;
import org.argouml.uml.ui.PropPanelFactory;
@@ -113,58 +112,4 @@
return metaDataCache.get(clazz);
}
- /**
- * @return the title of the panel, according to the target
- */
- private String getPanelTitle(Object target) {
- String title = null;
- // if is a pseudostate, we have to look for the pseudostate kind.
- if (Model.getFacade().isAPseudostate(target)) {
- Object kind = Model.getFacade().getKind(target);
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getFork())) {
- title = Translator.localize("label.pseudostate.fork");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getJoin())) {
- title = Translator.localize("label.pseudostate.join");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getChoice())) {
- title = Translator.localize("label.pseudostate.choice");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getDeepHistory())) {
- title = Translator.localize("label.pseudostate.deephistory");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getShallowHistory())) {
- title = Translator.localize("label.pseudostate.shallowhistory");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getInitial())) {
- title = Translator.localize("label.pseudostate.initial");
- }
- if (Model.getFacade().equalsPseudostateKind(kind,
- Model.getPseudostateKind().getJunction())) {
- title = Translator.localize("label.pseudostate.junction");
- }
- }
- // there are other cases that need special treatment,
- // like concurrent regions
- if (Model.getFacade().isACompositeState(target)) {
- if (Model.getFacade().isAConcurrentRegion(target)) {
- title = Translator.localize("label.concurrent.region");
- } else if (Model.getFacade().isConcurrent(target)) {
- title = Translator.localize("label.concurrent.composite.state");
- } else if (!Model.getFacade().isASubmachineState(target)) {
- // PropPanelSubmachine is a subclass that handles its own title
- title = Translator.localize("label.composite-state");
- }
- }
- else {
- title = Model.getMetaTypes().getName(target);
- }
- return title;
- }
}
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2675907
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.