@@ -67,14 +67,16 @@ public SettingsDialog(Project project, boolean modal) {
6767 super (project , modal );
6868 trainingPathCheckbox .setVisible (false );
6969 trainingPanel .setVisible (false );
70+ toolkitPanel .setVisible (false );
7071 this .project = project ;
7172 resourceBundle = ResourceBundle .getBundle ("dialog_messages" );
7273 setTitle (resourceBundle .getString ("SettingsDialog.Title" ));
7374
74- toolkitButtonGroup = new ButtonGroup ();
7575 mekaRadioButton .setActionCommand ("meka" );
76- toolkitButtonGroup .add (mekaRadioButton );
7776 wekaRadioButton .setActionCommand ("weka" );
77+
78+ toolkitButtonGroup = new ButtonGroup ();
79+ toolkitButtonGroup .add (mekaRadioButton );
7880 toolkitButtonGroup .add (wekaRadioButton );
7981
8082 config = new Properties ();
@@ -206,25 +208,24 @@ protected void doOKAction() {
206208 .createHtmlTextBalloonBuilder (resourceBundle .getString ("Messages.Error.PathNotFound" ), MessageType .ERROR , null )
207209 .createBalloon ()
208210 .show (JBPopupFactory .getInstance ().guessBestPopupLocation (sourceDirTextbox ), Balloon .Position .below );
209- } else if (outputDir .getText ().isEmpty ()){
211+ } else if (outputDir .getText ().isEmpty ()) {
210212 JBPopupFactory .getInstance ()
211213 .createHtmlTextBalloonBuilder (resourceBundle .getString ("Messages.Error.PathNotFound" ), MessageType .ERROR , null )
212214 .createBalloon ()
213215 .show (JBPopupFactory .getInstance ().guessBestPopupLocation (outputDir ), Balloon .Position .below );
214- } else if (trainingPathCheckbox .isSelected () && trainingTextbox .getText ().isEmpty ()) {
215-
216- JBPopupFactory .getInstance ()
217- .createHtmlTextBalloonBuilder (resourceBundle .getString ("Messages.Error.PathNotFound" ), MessageType .ERROR , null )
218- .createBalloon ()
219- .show (JBPopupFactory .getInstance ().guessBestPopupLocation (trainingPathCheckbox ), Balloon .Position .below );
220- } else {
216+ } else if (trainingPathCheckbox .isSelected () && trainingTextbox .getText ().isEmpty ()) {
221217
222- setParameters ();
223- //Notification analysisCompleted = new Notification(Constants.PLUGIN_GROUP_DISPLAY_ID, "Starting Analysis", "Analysis completed", NotificationType.INFORMATION);
224- //analysisCompleted.notify();
218+ JBPopupFactory .getInstance ()
219+ .createHtmlTextBalloonBuilder (resourceBundle .getString ("Messages.Error.PathNotFound" ), MessageType .ERROR , null )
220+ .createBalloon ()
221+ .show (JBPopupFactory .getInstance ().guessBestPopupLocation (trainingPathCheckbox ), Balloon .Position .below );
222+ } else {
223+ setParameters ();
224+ //Notification analysisCompleted = new Notification(Constants.PLUGIN_GROUP_DISPLAY_ID, "Starting Analysis", "Analysis completed", NotificationType.INFORMATION);
225+ //analysisCompleted.notify();
226+ }
225227 }
226228 }
227- }
228229
229230 private void setParameters () {
230231
0 commit comments