Commit 77b2ea05 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

makes refresh work in UI thread

refs 2885
parent 4a1b4740
......@@ -50,6 +50,7 @@ import org.eclipse.gef.editpolicies.BendpointEditPolicy;
import org.eclipse.gef.requests.BendpointRequest;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.fortiss.tooling.base.model.base.ConnectionSegmentBase;
import org.fortiss.tooling.base.model.layout.Points;
import org.fortiss.tooling.base.ui.editpart.command.bendpoint.CreateCommand;
......@@ -71,7 +72,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: B6B89ADEF2AA6ABA90960B36205B2289
* @ConQAT.Rating YELLOW Hash: 8EB26D7660115EC98DC63CC35E294F45
*/
public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase> extends
AbstractConnectionEditPart {
......@@ -116,7 +117,7 @@ public abstract class ConnectionEditPartBase<T extends ConnectionSegmentBase> ex
}
}
}
refresh();
Display.getDefault().asyncExec(() -> refresh());
}
};
......
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