svn commit: r15298 - branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui
[email protected] 18 Jul 2008 14:42:53 -0000
Newsgroups
gmane.comp.lang.uml.argouml.cvs
Message-ID
<[email protected] >
Author: maurelio1234
Date: 2008-07-18 07:42:53-0700
New Revision: 15298
Modified:
branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java
branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java
Log:
fixing style and implementing collections API
Modified: branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java?view=diff&rev=15298&p1=branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java&p2=branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java&r1=15297&r2=15298
==============================================================================
--- branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java (original)
+++ branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/ProfilePropPanelFactory.java 2008-07-18 07:42:53-0700
@@ -28,6 +28,11 @@
import org.argouml.uml.ui.PropPanel;
import org.argouml.uml.ui.PropPanelFactory;
+/**
+ * Proppanel creator for critics
+ *
+ * @author maurelio1234
+ */
public class ProfilePropPanelFactory implements PropPanelFactory {
public PropPanel createPropPanel(Object object) {
Modified: branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java?view=diff&rev=15298&p1=branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java&p2=branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java&r1=15297&r2=15298
==============================================================================
--- branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java (original)
+++ branches/gsoc2008/work_midterm_maurelio1234/src/org/argouml/profile/internal/ui/PropPanelCritic.java 2008-07-18 07:42:53-0700
@@ -39,65 +39,70 @@
public class PropPanelCritic extends PropPanel {
private JTextField criticClass;
+
private JTextField name;
+
private JTextField headline;
+
private JTextField priority;
- private JTextArea description;
+
+ private JTextArea description;
+
private JTextField supportedDecision;
+
private JTextField knowledgeType;
-
+
/**
- * Constructor
+ * Constructor
*/
public PropPanelCritic() {
- super("", (ImageIcon)null);
-
+ super("", (ImageIcon) null);
+
criticClass = new JTextField();
addField("label.class", criticClass);
criticClass.setEditable(false);
-
+
name = new JTextField();
addField("label.name", name);
name.setEditable(false);
-
+
headline = new JTextField();
addField("label.headline", headline);
headline.setEditable(false);
-
+
priority = new JTextField();
addField("label.priority", priority);
priority.setEditable(false);
-
- description = new JTextArea(5, 30);
+
+ description = new JTextArea(5, 30);
addField("label.description", description);
description.setEditable(false);
description.setLineWrap(true);
-
+
supportedDecision = new JTextField();
addField("label.decision", supportedDecision);
- supportedDecision.setEditable(false);
+ supportedDecision.setEditable(false);
knowledgeType = new JTextField();
addField("label.knowledge_types", knowledgeType);
- knowledgeType.setEditable(false);
+ knowledgeType.setEditable(false);
}
-
/**
* @see org.argouml.uml.ui.PropPanel#setTarget(java.lang.Object)
*/
public void setTarget(Object t) {
super.setTarget(t);
-
+
criticClass.setText(getTarget().getClass().getCanonicalName());
-
+
Critic c = (Critic) getTarget();
name.setText(c.getCriticName());
headline.setText(c.getHeadline());
description.setText(c.getDescriptionTemplate());
- supportedDecision.setText(""+c.getSupportedDecisions());
-
- priority.setText(""+c.getPriority());
+ supportedDecision.setText("" + c.getSupportedDecisions());
+
+ priority.setText("" + c.getPriority());
knowledgeType.setText("" + c.getKnowledgeTypes());
}
}