Deprecated API

Deprecated Classes
org.argouml.application.helpers.DiagramHelper
          by Linus Tolke (0.21.1 March 2006). I can't find that this class is ever used. If that is the case it is better to remove it then to update it for the new ModuleLoader. 
org.argouml.uml.generator.Generator2
          This class is deprecated in favour of GeneratorManager and the CodeGenerator interface.

Explanation by Daniele Tamino:

Why Generator2 is deprecated: Because it was replaced by CodeGenerator and GeneratorManager. The Generator2 class kept a list of Generator2 objects, populated during construction, but that list was not changeable afterward, and this was incompatible with the new module loader (see issue 3580 ), so here comes GeneratorManager. Moreover, there was no reasonable way to display the generated source correctly in the source pane using Generator2 or FileGenerator, and for this the CodeGenerator interface was created (issue 3546 ).

In ArgoUML V0.21.2 Generator2 was still used for another purpose, i.e. it implemented some common methods of the NotationProvider2 interface too, which went away when the new notation architecture got more and more completed (issue 1207 ). 

org.argouml.application.helpers.ModuleHelper
          by Linus Tolke (0.21.1 March 2006). I can't find that this class is ever used. If that is the case it is better to remove it then to update it for the new ModuleLoader. 
org.argouml.application.modules.ModuleLoader
          by Linus Tolke (0.21.1 March 2006). Use ModuleLoader2. 
org.argouml.uml.ui.PropPanelButton2
          used only in property panels, use addAction instead of addButton, remove in 0.20.0 
org.argouml.application.helpers.ResourceBundleHelper
          by Linus Tolke (0.21.1 March 2006). I can't find that this class is ever used. If that is the case it is better to remove it then to update it for the new ModuleLoader. 
org.argouml.application.helpers.SettingsTabHelper
          as of 0.21.3 by Linus Tolke. Replace by explicit calls to Swing and copy the SettingsTabHelper.getTabPanel() into your class. 
 

Deprecated Interfaces
org.argouml.application.api.ArgoModule
          by Linus Tolke (0.21.1 March 2006). Use ModuleInterface instead. 
org.argouml.application.api.ArgoSingletonModule
          by Linus Tolke (0.21.1 March 2006). Use ModuleInterface instead even though it doesn't have a specific handling for Singleton modules. 
org.argouml.model.EventAdapter
          for 0.21.2 by tfmorris - use ModelEventPump interface 
org.argouml.notation.NotationContext
          by MVW in V0.21.3. Replaced by ProjectSettings.getNotationName() See issue 3140. 
org.argouml.application.api.Pluggable
          by Linus Tolke (0.21.1 March 2006). Call registration in the appropriate subsystem from ModuleInterface.enable(). If the needed registration is not available, add it! 
org.argouml.application.api.PluggableAboutTab
          by Linus Tolke (0.21.1 March 2006). Call registration in the appropriate subsystem from ModuleInterface.enable(). The needed registration is not currently available. Add it first! 
org.argouml.application.api.PluggableDiagram
          by Linus Tolke (0.21.1 March 2006). Call registration in the appropriate subsystem from ModuleInterface.enable(). The needed registration is not currently available. Add it first! 
org.argouml.application.api.PluggableImport
          by Linus Tolke (0.21.1 March 2006). Call registration in Import from ModuleInterface.enable(). The needed registration is not currently available. Add it first! 
org.argouml.application.api.PluggableMenu
          by Linus Tolke (0.21.1 March 2006). Call registration in GenericArgoMenuBar from ModuleInterface.enable(). The needed registration is not currently available. Add it first! 
org.argouml.application.api.PluggableNotation
          by Linus Tolke (0.21.1 March 2006). Register with GeneratorManager.addGenerator( Language, CodeGenerator) from ModuleInterface.enable(). 
org.argouml.application.api.PluggablePropertyPanel
          by Linus Tolke (0.21.1 March 2006). Call registration in the Details Tabs subsystem from ModuleInterface.enable(). The needed registration is not currently available. Add it first! See TabProps.moduleLoaded( ArgoModuleEvent event) 
org.argouml.application.api.PluggableResourceBundle
          by Linus Tolke (0.21.1 March 2006). Call registration in the appropriate subsystem from ModuleInterface.enable(). If the needed registration is not available, add it! 
org.argouml.application.api.PluggableSettingsTab
          by Linus Tolke (0.21.1 March 2006). Call registration in the appropriate subsystem from ModuleInterface.enable(). If the needed registration is not available, add it! 
org.argouml.application.api.SettingsTabPanel
          as of 0.21.3 by Linus Tolke. Replace by GUISettingsTabInterface. 
 

Deprecated Methods
org.argouml.ui.GUI.addFileSaved(File)
          before 0.21.3 by tfmorris. Use ProjectBrowser.addFileSaved() directly. 
org.argouml.uml.ui.foundation.core.PropPanelOperation.addMethod(Integer)
          before 0.21.2 by tfmorris - use the argumentless version of this method 
org.argouml.model.EventAdapter.addPropertyChangeListener(PropertyChangeListener)
          for 0.21.2 by tfmorris. Use ModelEventPump.addClassModelEventListener( PropertyChangeListener, Object, String[]). 
org.argouml.uml.ui.foundation.core.PropPanelOperation.addRaisedSignal(Integer)
          before 0.21.2 by tfmorris - use the argumentless version of this method 
org.argouml.uml.ui.PropPanel.addSeperator()
          before 0.21.2 by tfm - use addSeparator (ie the correct spelling) 
org.argouml.model.CoreFactory.buildAttribute(Object, Object, Object, Collection)
          for 0.21.2 by tfmorris - use non-listener version 
org.argouml.model.CoreFactory.buildOperation(Object, Object, Object, Collection)
          for 0.21.2 by tfmorris - use non-listener version 
org.argouml.model.CoreFactory.buildOperation(Object, Object, Object, String, Collection)
          for 0.21.2 by tfmorris - use non-listener version 
org.argouml.model.CoreFactory.buildParameter(Object, Object, Object, Collection)
          for 0.21.2 by tfmorris - use non-listener version 
org.argouml.uml.diagram.ui.FigEdgePort.classNameAndBounds()
          in 0.11.1 use org.tigris.gef.persistence.pgml.PgmlUtility.getClassNameAndBounds(Fig) 
org.argouml.model.AbstractModelEventPump.enableSaveAction()
          The save Action is no longer required by the model subsystem 
org.argouml.model.DataTypesHelper.equalsBRANCHKind(Object)
          before 0.20 by tfmorris - UML 1.3 only - use Choice 
org.argouml.uml.diagram.state.ui.UMLStateDiagram.getActionBranchPseudoState()
          use getActionChoicePseudoState 
org.argouml.application.api.Argo.getArgoHome()
          by Linus Tolke for 0.21.3. I don't think there is a reason to let this call go through the Argo class. 
org.argouml.application.api.Argo.getArgoRoot()
          by Linus Tolke for 0.21.3. I don't think there is a reason to let this call go through the Argo class. 
org.argouml.model.CollaborationsHelper.getAssocationRole(Object, Object)
          for 0.21.2 by tfmorris, use getAssociationRole 
org.argouml.model.Facade.getBaseClass(Object)
          use getBaseClasses for UML 1.4 and later 
org.argouml.model.PseudostateKind.getBranch()
          UML 1.3 - use getChoice 
org.argouml.kernel.Project.getCgPrefs()
          use getGenerationPrefs() instead 
org.argouml.uml.diagram.ui.FigNodeModelElement.getContextNotation()
          by MVW in V0.21.3. Replaced by ProjectSettings.getNotationName() 
org.argouml.uml.diagram.ui.FigEdgeModelElement.getContextNotation()
          by MVW in V0.21.3. Replaced by ProjectSettings.getNotationName() 
org.argouml.notation.Notation.getDefaultShadowWidth()
          by MVW in V0.21.3.Use ProjectSettings instead. 
org.argouml.model.ModelImplementation.getEventAdapter()
          for 0.21.2 by tfmorris. Use ModelImplementation.getModelEventPump() methods and ModelEventPump. 
org.argouml.model.Model.getEventAdapter()
          for 0.21.2 by tfmorris. Use Model.getPump() and ModelEventPump methods 
org.argouml.model.CoreHelper.getFeatureName(Object)
          before 0.21.3 by tfmorris - use Facade.getName(Object) 
org.argouml.model.Facade.getImplementationLocation(Object)
          use getContainer 
org.argouml.model.ModelImplementation.getMementoCreationObserver()
          by Linus Tolke in 0.21.3. This is taken care of in the Model and the implementation need not bother. 
org.argouml.notation.Notation.getNotation(NotationContext)
          by MVW in V0.21.3. Replaced by ProjectSettings.getNotationName() See issue 3140. 
org.argouml.notation.NotationProviderFactory2.getNotationProvider(int, NotationContext, Object)
          by MVW in V0.21.3. Replaced by NotationProviderFactory2.getNotationProvider(int, Object) See issue 3140. 
org.argouml.model.UmlHelper.getOwner(Object)
          for 0.21 by tfmorris - use getModelElementContainer - this was never implemented for MDR, so any use would throw a run time exception. Will be removed quickly because of this. 
org.argouml.application.api.Argo.getPlugins(Class)
          by Linus Tolke for 0.21.3. This is replaced by the new module loader. 
org.argouml.application.api.Argo.getPlugins(Class, Object[])
          by Linus Tolke for 0.21.3. This is replaced by the new module loader. 
org.argouml.model.CoreHelper.getReturnParameter(Object)
          by tfmorris before 0.21.1 - use getReturnParameters 
org.argouml.uml.ui.TabProps.getTarget()
          As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager.getInstance().getTarget(). 
org.argouml.notation.Notation.getUseGuillemots()
          by MVW in V0.21.3.Use ProjectSettings instead. 
org.argouml.application.api.Argo.initializeModules()
          by Linus Tolke for 0.21.3. There is no reason to let this call go through the Argo class. 
org.argouml.model.Facade.isABase(Object)
          use isAModelElement or a more specific recognizer for all new code 
org.argouml.model.CoreHelper.isMethod(Object)
          by Bob in 0.21.1. There is a duplicate method Model.getFacade().isAMethod(Object) 
org.argouml.model.CoreHelper.isOperation(Object)
          by Bob in 0.21.1. There is a duplicate method Model.getFacade().isAOperation(Object) 
org.argouml.model.XmiReader.parseToModel(InputSource)
          use parse() 
org.argouml.model.EventAdapter.removePropertyChangeListener(PropertyChangeListener)
          for 0.21.2 by tfmorris. Use ModelEventPump.removeClassModelEventListener( PropertyChangeListener, Object, String[]). 
org.argouml.model.ExtensionMechanismsHelper.setBaseClass(Object, Object)
          use addBaseClass 
org.argouml.kernel.Project.setCgPrefs(GenerationPreferences)
          use setGenerationPrefs() instead 
org.argouml.notation.Notation.setDefaultShadowWidth(int)
          by MVW in V0.21.3.Use ProjectSettings instead. 
org.argouml.model.CoreHelper.setImplementationLocation(Object, Object)
          by tfmorris before 0.20 - use setContainer 
org.argouml.model.CoreHelper.setKindToIn(Object)
          before 0.19.3 by bobtarling - use CoreHelper.setKind(Object, Object) 
org.argouml.model.CoreHelper.setKindToInOut(Object)
          before 0.19.3 by bobtarling - use CoreHelper.setKind(Object, Object) 
org.argouml.model.CoreHelper.setKindToOut(Object)
          before 0.19.3 by bobtarling - use CoreHelper.setKind(Object, Object) 
org.argouml.model.CoreHelper.setKindToReturn(Object)
          before 0.19.3 by bobtarling - use CoreHelper.setKind(Object, Object) 
org.argouml.model.ModelImplementation.setMementoCreationObserver(MementoCreationObserver)
          by Linus Tolke in 0.21.3. This is taken care of in the Model and the implementation need not bother. 
org.argouml.model.AbstractModelEventPump.setSaveAction(Action)
          The save Action is no longer required by the model subsystem 
org.argouml.uml.diagram.ui.FigNodeModelElement.setShadowSizeFriend(int)
          do not use. Delete as soon as its single reference is gone. 
org.argouml.uml.diagram.ui.TabDiagram.setTarget(Object)
          As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager. 
org.argouml.uml.ui.TabStyle.setTarget(Object)
          As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager. 
org.argouml.uml.ui.TabProps.setTarget(Object)
          As of ArgoUml version 0.13.5, the visibility of this method will change in the future, replaced by TargetManager. 
org.argouml.notation.Notation.setUseGuillemots(boolean)
          by MVW in V0.21.3.Use ProjectSettings instead. 
org.argouml.model.CoreHelper.setUUID(Object, String)
          by tfm for 0.20 - getUUID is guaranteed to return a value but it is not settable. If a settable ID is required, use a TaggedValued or other private mechanism. 
 

Deprecated Constructors
org.argouml.ui.ArgoDialog(Frame, String, boolean)
          in 0.21.3 by Linus Tolke. Use ArgoDialog.ArgoDialog(String, boolean). 
org.argouml.ui.ArgoDialog(Frame, String, int, boolean)
          in 0.21.3 by Linus Tolke. Use ArgoDialog.ArgoDialog(String, int, boolean). 
org.argouml.uml.ui.TabTaggedValuesModel(TabTaggedValues)
          before 0.21.3 by tfmorris - use no argument constructor 
org.argouml.uml.ui.UMLComboBox2(UMLComboBoxModel2)
          As of ArgoUml version unknown (before 0.13.5), replaced by UMLComboBox2.UMLComboBox2(UMLComboBoxModel2, Action, boolean) 
 



ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook