Updated to work with JBuilder 4 (and hopefully 5 & 6)

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@939 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
David Craine
2002-09-13 12:59:12 +00:00
parent d1b7a96552
commit c5ef471e84
4 changed files with 11 additions and 6 deletions

View File

@ -1,2 +1,2 @@
copy lib\PMDOpenTool.jar %1
rem copy lib\pmd-dev.jar %1
copy lib\PMDOpenTool.jar c:\Jbuilder7\lib\ext
copy lib\PMDOpenTool.jar c:\Jbuilder4\lib\ext

Binary file not shown.

View File

@ -0,0 +1 @@
ÐÏࡱ

View File

@ -29,6 +29,7 @@ import com.borland.primetime.vfs.*;
import com.borland.primetime.viewer.*;
import net.sourceforge.pmd.*;
import net.sourceforge.pmd.cpd.*;
import com.borland.jbcl.control.MessageDialog;
@ -58,7 +59,6 @@ public class PMDOpenTool {
public static void initOpenTool (byte majorVersion, byte minorVersion) {
if (majorVersion == PrimeTime.CURRENT_MAJOR_VERSION) {
GROUP_MENU_PMD.add(B_ACTION_PMDCheck);
GROUP_MENU_PMD.add(B_ACTION_PMDProjectCheck);
GROUP_MENU_PMD.add(B_ACTION_CPDProjectCheck);
@ -83,14 +83,18 @@ public class PMDOpenTool {
CPDPropertyGroup cpdPropGrp = new CPDPropertyGroup();
//register the Keymap shortcuts if they are enabled
if (AcceleratorPropertyGroup.PROP_KEYS_ENABLED.getBoolean()) {
registerShortCuts();
if (minorVersion > 1) { //accelerators don't seem to work in OpenTools 4.1
if (AcceleratorPropertyGroup.PROP_KEYS_ENABLED.getBoolean()) {
registerShortCuts();
}
}
PropertyManager.registerPropertyGroup(apropGrp);
PropertyManager.registerPropertyGroup(cpropGrp);
PropertyManager.registerPropertyGroup(ipropGrp);
PropertyManager.registerPropertyGroup(accpropGrp);
if (minorVersion > 1) { //accelerators don't seem to work in OpenTools 4.1
PropertyManager.registerPropertyGroup(accpropGrp);
}
PropertyManager.registerPropertyGroup(cpdPropGrp);
}