Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-03-09 12:36:57 -0500
committerRyan D. Brooks2011-03-09 12:36:57 -0500
commit38c5d214c986c71935f83eb996e1c9995439864e (patch)
treecff78710da5c0eb5ffced161c16213767e6c33a4 /plugins/org.eclipse.osee.coverage
parent2380cca2f00c574733bf7c016ab3140ca638c5b9 (diff)
downloadorg.eclipse.osee-38c5d214c986c71935f83eb996e1c9995439864e.tar.gz
org.eclipse.osee-38c5d214c986c71935f83eb996e1c9995439864e.tar.xz
org.eclipse.osee-38c5d214c986c71935f83eb996e1c9995439864e.zip
feature: Coverage - Register for events only after coverage package fully loaded
Diffstat (limited to 'plugins/org.eclipse.osee.coverage')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditor.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditor.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditor.java
index c2004b77db..1bfd2028a8 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditor.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/editor/CoverageEditor.java
@@ -77,11 +77,10 @@ public class CoverageEditor extends FormEditor implements IActionable {
setTitleImage(ImageManager.getImage(CoverageImage.COVERAGE));
setActivePage(startPage);
if (getCoverageEditorInput().isInTest()) {
- new LoadCoverage(loadingStr).doWork(null);
+ new LoadCoverage(this, loadingStr).doWork(null);
} else {
- Operations.executeAsJob(new LoadCoverage(loadingStr), true);
+ Operations.executeAsJob(new LoadCoverage(this, loadingStr), true);
}
- CoverageEventManager.getInstance().register(this);
} catch (Exception ex) {
OseeLog.log(Activator.class, Level.SEVERE, ex);
}
@@ -94,8 +93,11 @@ public class CoverageEditor extends FormEditor implements IActionable {
private class LoadCoverage extends AbstractOperation {
- public LoadCoverage(String operationName) {
+ private final CoverageEditor editor;
+
+ public LoadCoverage(CoverageEditor editor, String operationName) {
super(operationName, Activator.PLUGIN_ID);
+ this.editor = editor;
}
@Override
@@ -133,6 +135,7 @@ public class CoverageEditor extends FormEditor implements IActionable {
}
monitor.worked(1);
+ CoverageEventManager.getInstance().register(editor);
// elapsedTime.end();
}

Back to the top