Author: tfmorris Date: 2008-04-15 21:22:19-0700 New Revision: 14363 Modified: trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log: Add getRoot and deprecate getModel. Modified: trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&rev=14363&p1=trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&p2=trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&r1=14362&r2=14363 ============================================================================== --- trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original) +++ trunk/src/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2008-04-15 21:22:19-0700 @@ -1,5 +1,5 @@ //$Id$ -// Copyright (c) 2007, The ArgoUML Project +// Copyright (c) 2007, 2008 The ArgoUML Project // All rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -284,7 +284,7 @@ throw new NotYetImplementedException(); } - public Collection<String> getBaseClasses(Object handle) { + public Collection getBaseClasses(Object handle) { throw new NotYetImplementedException(); } @@ -768,6 +768,14 @@ } return ((Element) handle).getModel(); } + + public Object getRoot(Object handle) { + if (!(handle instanceof Element)) { + throw new IllegalArgumentException(); + } + // TODO: Does this do what we need? - tfm + return ((Element) handle).getModel(); + } public Object getModelElement(Object handle) { throw new NotYetImplementedException(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
