KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > WorkbenchErrorHandlerProxy


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal;
13
14 import org.eclipse.ui.statushandlers.AbstractStatusHandler;
15 import org.eclipse.ui.statushandlers.StatusAdapter;
16
17 /**
18  * A proxy handler which passes all statuses to handler assigned to current
19  * application workbench advisor.
20  *
21  * <strong>EXPERIMENTAL</strong> This class or interface has been added as part
22  * of a work in progress. This API may change at any given time. Please do not
23  * use this API without consulting with the Platform/UI team.
24  *
25  * @since 3.3
26  */

27 public class WorkbenchErrorHandlerProxy extends AbstractStatusHandler {
28
29     /*
30      * (non-Javadoc)
31      *
32      * @see org.eclipse.ui.statushandlers.AbstractStatusHandler#handle(org.eclipse.ui.statushandlers.StatusAdapter,
33      * int)
34      */

35     public void handle(final StatusAdapter statusAdapter, int style) {
36         Workbench.getInstance().getAdvisor().getWorkbenchErrorHandler().handle(
37                 statusAdapter, style);
38     }
39 }
40
Popular Tags