Closed UMTti closed 9 years ago
Issue is located in https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/actions/ShowSettingsAction.java#L46 , the program thinks that prefUiFactory.isPreferencesUiVisible() is true and returns from function which shows preferences panel. This happens, because dialog is created in step 2, but it isn't destroyed correctly then.
DialogDescriptor is created in https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/ui/PreferencesUIFactory.java#L89. In constructor there is NotifyDescriptor.OK_CANCEL_OPTION, but nothing related to closing option.
We tried to add descriptor.setClosingOptions(new Object[]{NotifyDescriptor.CLOSED_OPTION}); after constructor but it didn't help.
I could take a look at this
This is now fixed & merged
Oh right, I was hoping on github to automatically close this...
Issue is located in https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/actions/ShowSettingsAction.java#L46 , the program thinks that prefUiFactory.isPreferencesUiVisible() is true and returns from function which shows preferences panel. This happens, because dialog is created in step 2, but it isn't destroyed correctly then.
DialogDescriptor is created in https://github.com/testmycode/tmc-netbeans/blob/master/tmc-plugin/src/fi/helsinki/cs/tmc/ui/PreferencesUIFactory.java#L89. In constructor there is NotifyDescriptor.OK_CANCEL_OPTION, but nothing related to closing option.
We tried to add descriptor.setClosingOptions(new Object[]{NotifyDescriptor.CLOSED_OPTION}); after constructor but it didn't help.