Set parent of custom rules dialog to PMD option pane so it can be centered properly.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7048 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@@ -245,7 +245,7 @@ public class PMDRulesOptionPane extends AbstractOptionPane implements OptionPane
|
||||
}
|
||||
|
||||
private void customRulesDialog() {
|
||||
PathBuilderDialog dialog = new PathBuilderDialog( jEdit.getActiveView(), "Choose Custom Rulesets", "Custom Ruleset Files" );
|
||||
PathBuilderDialog dialog = new PathBuilderDialog( GUIUtilities.getParentDialog( PMDRulesOptionPane.this ), "Choose Custom Rulesets", "Custom Ruleset Files" );
|
||||
PathBuilder pathBuilder = dialog.getPathBuilder();
|
||||
pathBuilder.setAddButtonText( "Add Ruleset" );
|
||||
pathBuilder.setRemoveButtonText( "Remove Ruleset" );
|
||||
|
||||
Reference in New Issue
Block a user