1 11 package org.eclipse.ui.internal.decorators; 12 13 import org.eclipse.core.runtime.ISafeRunnable; 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.ui.internal.WorkbenchPlugin; 16 import org.eclipse.ui.internal.misc.StatusUtil; 17 18 22 abstract class FullDecoratorRunnable implements ISafeRunnable { 23 protected Object element; 24 25 protected FullDecoratorDefinition decorator; 26 27 32 protected void setValues(Object object, FullDecoratorDefinition definition) { 33 element = object; 34 decorator = definition; 35 36 } 37 38 41 public void handleException(Throwable exception) { 42 IStatus status = StatusUtil.newStatus(IStatus.ERROR, exception 43 .getMessage(), exception); 44 WorkbenchPlugin.log("Exception in Decorator", status); decorator.crashDisable(); 46 } 47 48 } 49 | Popular Tags |