svn commit: r15137 - branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels: panel xml
[email protected] 1 Jul 2008 10:17:17 -0000
Newsgroups
gmane.comp.lang.uml.argouml.cvs
Message-ID
<[email protected] >
Author: penyaskito
Date: 2008-07-01 03:17:16-0700
New Revision: 15137
Added:
branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/xml/UmlPackage.xml (contents, props changed)
Modified:
branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java
Log:
Panels for Packages.
Modified: branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java?view=diff&rev=15137&p1=branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java&p2=branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java&r1=15136&r2=15137
==============================================================================
--- branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java (original)
+++ branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/panel/UIFactory.java 2008-07-01 03:17:16-0700
@@ -65,6 +65,7 @@
import org.argouml.uml.ui.foundation.core.UMLModelElementSupplierDependencyListModel;
import org.argouml.uml.ui.foundation.core.UMLModelElementVisibilityRadioButtonPanel;
import org.argouml.uml.ui.foundation.core.UMLNamespaceOwnedElementListModel;
+import org.argouml.uml.ui.model_management.UMLClassifierPackageImportsListModel;
import org.tigris.swidgets.LabelledLayout;
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
@@ -215,6 +216,16 @@
model.setTarget(target);
list = new ScrollList(model);
}
+ else if ("imported_elements".equals(prop.getName())) {
+ model = new UMLClassifierPackageImportsListModel();
+ model.setTarget(target);
+ list = new UMLMutableLinkedList(model,
+ // TODO: It's OK to change the visibility of this actions?
+ null, // new ActionAddPackageImport(),
+ null,
+ null, //new ActionRemovePackageImport(),
+ true);
+ }
return list;
}
Added: branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/xml/UmlPackage.xml
Url: http://argouml.tigris.org/source/browse/argouml/branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/xml/UmlPackage.xml?view=auto&rev=15137
==============================================================================
--- (empty file)
+++ branches/xmlpropertypanels-penyaskito-soc08/argouml-core-propertypanels-scratch/src/org/argouml/core/propertypanels/xml/UmlPackage.xml 2008-07-01 03:17:16-0700
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<panel>
+ <text name='name' />
+ <combo name='namespace' />
+ <optionbox name='visibility' />
+ <checkgroup name='modifiers'>
+ <checkbox name='abstract' />
+ <checkbox name='leaf' />
+ <checkbox name='root' />
+ <checkbox name='derived' />
+ </checkgroup>
+ <separator />
+ <list name="generalizations" />
+ <list name="specializations" />
+ <separator />
+ <list name="owned" />
+ <list name="imported_elements" />
+</panel>