Commit 5845acfe authored by Levi Lucio's avatar Levi Lucio
Browse files

fixed exceptions after project is deleted

refs 3215
parent b0fed8ac
ApplicationActionBarAdvisor.java 34994e17889d8a0538bc5f0b710aa59edcea9672 GREEN
ApplicationWorkbenchAdvisor.java 9c0fe8cdbedd894c16ed9e3d9bed34670ad453e7 GREEN
ApplicationWorkbenchWindowAdvisor.java 45d09ee949b44e17f8710b9a8bb183e52800e4fd GREEN
CurrentObjectiveContributionItem.java 16b80f4511e5e9275c35b2c139fc9ef78d24e409 YELLOW
UpcomingObjectiveContributionItem.java 7bbfc25173ab007b7fd50cdf672dee8edbb13516 YELLOW
CurrentObjectiveContributionItem.java b66960aedb0a4ae4f2d0c2b0c4beaae8dc7c75a7 YELLOW
UpcomingObjectiveContributionItem.java 70ca33e885eab119c0a3bbf8936f3634c15efba4 YELLOW
......@@ -41,6 +41,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.ISelectionListener;
......@@ -401,7 +402,7 @@ class CurrentObjectiveContributionItem extends ContributionItem implements ISele
@Override
public void resourceChanged(IResourceChangeEvent event) {
if(event.getType() == org.eclipse.core.resources.IResourceChangeEvent.POST_CHANGE &&
currentDevelopmentProcess != null) {
currentDevelopmentProcess != null && Display.getCurrent() != null) {
generateScoresAndUpdateUI(currentDevelopmentProcess);
EList<ConstraintConfiguration> configurations =
currentDevelopmentProcess.getConfigurations();
......
......@@ -40,6 +40,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.ISelectionListener;
......@@ -365,7 +366,7 @@ public class UpcomingObjectiveContributionItem extends ContributionItem implemen
@Override
public void resourceChanged(IResourceChangeEvent event) {
if(event.getType() == org.eclipse.core.resources.IResourceChangeEvent.POST_CHANGE &&
currentDevelopmentProcess != null) {
currentDevelopmentProcess != null && Display.getCurrent() != null) {
setUpcomingComboBasedOnCrieterion();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment