svn commit: r17726 - trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java
Tom Morris <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2010-01-02 14:17:50-0800
New Revision: 17726
Modified:
trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java
Log:
Remove Location for UML 2 ExtensionPoints
Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java?view=diff&pathrev=17726&r1=17725&r2=17726
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/behavior/use_cases/PropPanelExtensionPoint.java 2010-01-02 14:17:50-0800
@@ -1,4 +1,17 @@
-// $Id$
+/* $Id$
+ *******************************************************************************
+ * Copyright (c) 2010 Contributors - see below
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Jeremy Bennett - initial implementation
+ * <see source control change log for other early contributors>
+ *
+ *******************************************************************************
+ */
// Copyright (c) 1996-2007 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
@@ -68,13 +81,13 @@
addField("label.name", getNameTextField());
- // Our location (a String). Allow the location label to
- // expand vertically so we all float to the top.
-
- JTextField locationField = new UMLTextField2(
- new UMLExtensionPointLocationDocument());
- addField("label.location",
- locationField);
+ if (Model.getFacade().getUmlVersion().startsWith("1.")) {
+ // Our location (a String). Allow the location label to
+ // expand vertically so we all float to the top.
+ JTextField locationField = new UMLTextField2(
+ new UMLExtensionPointLocationDocument());
+ addField("label.location", locationField);
+ }
addSeparator();
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2434282
To unsubscribe from this discussion, e-mail: [[email protected]].