View | Details | Raw Unified | Return to bug 144561
Collapse All | Expand All

(-)src/org/eclipse/gmf/runtime/diagram/ui/properties/sections/AbstractModelerPropertySection.java (-1 / +9 lines)
Lines 238-244 Link Here
238
	 */
238
	 */
239
	protected void executeAsReadAction(final Runnable code) {
239
	protected void executeAsReadAction(final Runnable code) {
240
		try {
240
		try {
241
			getEditingDomain().runExclusive(code);
241
			TransactionalEditingDomain domain = getEditingDomain();
242
			
243
			if (domain != null) {
244
				getEditingDomain().runExclusive(code);
245
			} else {
246
				// if we are not in a transactional editing domain context, then
247
				//    there is no notion of exclusivity.  Just run
248
				code.run();
249
			}
242
		} catch (InterruptedException e) {
250
		} catch (InterruptedException e) {
243
			Trace.catching(DiagramPropertiesPlugin.getDefault(),
251
			Trace.catching(DiagramPropertiesPlugin.getDefault(),
244
				DiagramPropertiesDebugOptions.EXCEPTIONS_CATCHING, getClass(),
252
				DiagramPropertiesDebugOptions.EXCEPTIONS_CATCHING, getClass(),

Return to bug 144561