93 new SwingWorker<Boolean, Void>() {
95 String reason = Bundle.CommonAttributeSearchAction_openPanel_intro();
98 protected Boolean doInBackground()
throws Exception {
101 reason += Bundle.CommonAttributeSearchAction_openPanel_noCaseOpen();
108 reason += Bundle.CommonAttributeSearchAction_openPanel_notEnoughDataSources();
111 reason += Bundle.CommonAttributeSearchAction_openPanel_centralRepoDisabled();
115 reason += Bundle.CommonAttributeSearchAction_openPanel_centralRepoInvalid();
119 reason += Bundle.CommonAttributeSearchAction_openPanel_notEnoughCases();
123 reason += Bundle.CommonAttributeSearchAction_openPanel_caseNotInCentralRepo();
131 protected void done() {
134 boolean openPanel =
get();
136 CommonAttributePanel commonAttributePanel =
new CommonAttributePanel();
138 commonAttributePanel.observeSubPanels();
139 commonAttributePanel.setVisible(
true);
141 reason += Bundle.CommonAttributeSearchAction_openPanel_resolution();
142 NotifyDescriptor descriptor =
new NotifyDescriptor.Message(reason, NotifyDescriptor.INFORMATION_MESSAGE);
143 DialogDisplayer.getDefault().notify(descriptor);
145 }
catch (InterruptedException | ExecutionException ex) {
146 LOGGER.log(Level.SEVERE,
"Unexpected exception while opening Find Common Properties", ex);