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:
@ -1,2 +1,2 @@
|
|||||||
copy lib\PMDOpenTool.jar %1
|
copy lib\PMDOpenTool.jar c:\Jbuilder7\lib\ext
|
||||||
rem copy lib\pmd-dev.jar %1
|
copy lib\PMDOpenTool.jar c:\Jbuilder4\lib\ext
|
Binary file not shown.
1
pmd-jbuilder/src/images/Thumbs.db
Normal file
1
pmd-jbuilder/src/images/Thumbs.db
Normal file
@ -0,0 +1 @@
|
|||||||
|
ÐÏࡱ
|
@ -29,6 +29,7 @@ import com.borland.primetime.vfs.*;
|
|||||||
import com.borland.primetime.viewer.*;
|
import com.borland.primetime.viewer.*;
|
||||||
import net.sourceforge.pmd.*;
|
import net.sourceforge.pmd.*;
|
||||||
import net.sourceforge.pmd.cpd.*;
|
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) {
|
public static void initOpenTool (byte majorVersion, byte minorVersion) {
|
||||||
if (majorVersion == PrimeTime.CURRENT_MAJOR_VERSION) {
|
if (majorVersion == PrimeTime.CURRENT_MAJOR_VERSION) {
|
||||||
|
|
||||||
|
|
||||||
GROUP_MENU_PMD.add(B_ACTION_PMDCheck);
|
GROUP_MENU_PMD.add(B_ACTION_PMDCheck);
|
||||||
GROUP_MENU_PMD.add(B_ACTION_PMDProjectCheck);
|
GROUP_MENU_PMD.add(B_ACTION_PMDProjectCheck);
|
||||||
GROUP_MENU_PMD.add(B_ACTION_CPDProjectCheck);
|
GROUP_MENU_PMD.add(B_ACTION_CPDProjectCheck);
|
||||||
@ -83,14 +83,18 @@ public class PMDOpenTool {
|
|||||||
CPDPropertyGroup cpdPropGrp = new CPDPropertyGroup();
|
CPDPropertyGroup cpdPropGrp = new CPDPropertyGroup();
|
||||||
|
|
||||||
//register the Keymap shortcuts if they are enabled
|
//register the Keymap shortcuts if they are enabled
|
||||||
if (AcceleratorPropertyGroup.PROP_KEYS_ENABLED.getBoolean()) {
|
if (minorVersion > 1) { //accelerators don't seem to work in OpenTools 4.1
|
||||||
registerShortCuts();
|
if (AcceleratorPropertyGroup.PROP_KEYS_ENABLED.getBoolean()) {
|
||||||
|
registerShortCuts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyManager.registerPropertyGroup(apropGrp);
|
PropertyManager.registerPropertyGroup(apropGrp);
|
||||||
PropertyManager.registerPropertyGroup(cpropGrp);
|
PropertyManager.registerPropertyGroup(cpropGrp);
|
||||||
PropertyManager.registerPropertyGroup(ipropGrp);
|
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);
|
PropertyManager.registerPropertyGroup(cpdPropGrp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user