|
From: <jde...@us...> - 2010-06-30 12:28:03
|
Revision: 12395
http://pcgen.svn.sourceforge.net/pcgen/?rev=12395&view=rev
Author: jdempsey
Date: 2010-06-30 12:27:51 +0000 (Wed, 30 Jun 2010)
Log Message:
-----------
Fix bug: Class Editor: ADD:ABILITY does not show on advanced page
Issue#: CODE-138
Modified Paths:
--------------
Trunk/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java
Modified: Trunk/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java
===================================================================
--- Trunk/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java 2010-06-30 11:53:23 UTC (rev 12394)
+++ Trunk/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java 2010-06-30 12:27:51 UTC (rev 12395)
@@ -1130,6 +1130,10 @@
//
switch (editType)
{
+ case EditorConstants.EDIT_CLASS:
+ ((PCClass) thisPObject).removeListFor(ListKey.ADD);
+ break;
+
case EditorConstants.EDIT_DEITY:
((Deity) thisPObject).removeListFor(ListKey.PANTHEON);
@@ -3261,6 +3265,19 @@
selectedList.addAll(Arrays.asList(spellSupportObj));
}
}
+
+ if (anEditType == EditorConstants.EDIT_CLASS)
+ {
+ String[] unparse = Globals.getContext().unparse(thisPObject, "ADD");
+ if(unparse != null)
+ {
+ for (String s : unparse)
+ {
+ selectedList.add("ADD:" + s);
+ }
+ }
+ }
+
return selectedList;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|