Ensure ingest top component is initialized in AWT thread when Window systme is ready

This commit is contained in:
adam-m 2012-08-30 15:27:46 -04:00
parent d6c80811c1
commit 357d4e697d

View File

@ -143,7 +143,8 @@ public class IngestManager {
DATA DATA
}; };
//ui //ui
private IngestUI ui = IngestMessageTopComponent.findInstance(); //Initialized by Installer in AWT thread once the Window System is ready
private IngestUI ui = null; //IngestMessageTopComponent.findInstance();
//singleton //singleton
private static IngestManager instance; private static IngestManager instance;
@ -151,6 +152,9 @@ public class IngestManager {
imageIngesters = new ArrayList<IngestImageThread>(); imageIngesters = new ArrayList<IngestImageThread>();
} }
/**
* called by Installer in AWT thread once the Window System is ready
*/
void initUI() { void initUI() {
if (ui == null) { if (ui == null) {
IngestMessageTopComponent.findInstance(); IngestMessageTopComponent.findInstance();