01: /*******************************************************************************
02: * Copyright (c) 2006, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal;
11:
12: import org.eclipse.ui.statushandlers.AbstractStatusHandler;
13: import org.eclipse.ui.statushandlers.StatusAdapter;
14:
15: /**
16: * A proxy handler which passes all statuses to handler assigned to current
17: * application workbench advisor.
18: *
19: * <strong>EXPERIMENTAL</strong> This class or interface has been added as part
20: * of a work in progress. This API may change at any given time. Please do not
21: * use this API without consulting with the Platform/UI team.
22: *
23: * @since 3.3
24: */
25: public class WorkbenchErrorHandlerProxy extends AbstractStatusHandler {
26:
27: /*
28: * (non-Javadoc)
29: *
30: * @see org.eclipse.ui.statushandlers.AbstractStatusHandler#handle(org.eclipse.ui.statushandlers.StatusAdapter,
31: * int)
32: */
33: public void handle(final StatusAdapter statusAdapter, int style) {
34: Workbench.getInstance().getAdvisor().getWorkbenchErrorHandler()
35: .handle(statusAdapter, style);
36: }
37: }
|