|
From: <jde...@us...> - 2010-06-30 12:28:30
|
Revision: 12396
http://pcgen.svn.sourceforge.net/pcgen/?rev=12396&view=rev
Author: jdempsey
Date: 2010-06-30 12:28:24 +0000 (Wed, 30 Jun 2010)
Log Message:
-----------
Fix bug: Class Editor: ADD:ABILITY does not show on advanced page
Issue#: CODE-138
Modified Paths:
--------------
branches/5.16.x/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java
Modified: branches/5.16.x/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java
===================================================================
--- branches/5.16.x/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java 2010-06-30 12:27:51 UTC (rev 12395)
+++ branches/5.16.x/pcgen/code/src/java/pcgen/gui/editor/EditorMainForm.java 2010-06-30 12:28:24 UTC (rev 12396)
@@ -1121,6 +1121,10 @@
//
switch (editType)
{
+ case EditorConstants.EDIT_CLASS:
+ ((PCClass) thisPObject).removeListFor(ListKey.ADD);
+ break;
+
case EditorConstants.EDIT_DEITY:
((Deity) thisPObject).removeListFor(ListKey.PANTHEON);
@@ -3260,6 +3264,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.
|