|
Lines 19-25
Link Here
|
| 19 |
import org.eclipse.core.runtime.IStatus; |
19 |
import org.eclipse.core.runtime.IStatus; |
| 20 |
import org.eclipse.core.runtime.SafeRunner; |
20 |
import org.eclipse.core.runtime.SafeRunner; |
| 21 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
21 |
import org.eclipse.core.runtime.dynamichelpers.IExtensionTracker; |
|
|
22 |
import org.eclipse.osgi.util.NLS; |
| 22 |
import org.eclipse.ui.internal.ObjectContributorManager; |
23 |
import org.eclipse.ui.internal.ObjectContributorManager; |
|
|
24 |
import org.eclipse.ui.internal.WorkbenchMessages; |
| 23 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
25 |
import org.eclipse.ui.internal.WorkbenchPlugin; |
| 24 |
import org.eclipse.ui.internal.misc.StatusUtil; |
26 |
import org.eclipse.ui.internal.misc.StatusUtil; |
| 25 |
import org.eclipse.ui.internal.util.Util; |
27 |
import org.eclipse.ui.internal.util.Util; |
|
Lines 58-64
Link Here
|
| 58 |
public void handleException(Throwable exception) { |
60 |
public void handleException(Throwable exception) { |
| 59 |
IStatus status = StatusUtil.newStatus(IStatus.ERROR, exception |
61 |
IStatus status = StatusUtil.newStatus(IStatus.ERROR, exception |
| 60 |
.getMessage(), exception); |
62 |
.getMessage(), exception); |
| 61 |
WorkbenchPlugin.log("Exception in Decorator", status); //$NON-NLS-1$ |
63 |
String message = WorkbenchMessages.DecoratorError; |
|
|
64 |
if (decorator != null) { |
| 65 |
message += " " + NLS.bind(WorkbenchMessages.DecoratorWillBeDisabled, //$NON-NLS-1$ |
| 66 |
decorator.getName()); |
| 67 |
} |
| 68 |
WorkbenchPlugin.log(message, status); |
| 62 |
if (decorator != null) { |
69 |
if (decorator != null) { |
| 63 |
decorator.crashDisable(); |
70 |
decorator.crashDisable(); |
| 64 |
} |
71 |
} |