KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > navigator > extensions > SkeletonActionProvider


1 /*******************************************************************************
2  * Copyright (c) 2003, 2006 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 package org.eclipse.ui.internal.navigator.extensions;
12
13 import org.eclipse.ui.navigator.CommonActionProvider;
14 import org.eclipse.ui.navigator.ICommonActionExtensionSite;
15
16 /**
17  *
18  * A skeleton action provider is used as a shortcut to avoid a bunch of null
19  * checks. Instead, if a client fails to provide a valid Action Provider or
20  * there is some problem instantiating the class, a skeleton (no-op singleton)
21  * is used in its place.
22  *
23  * @since 3.2
24  */

25 public final class SkeletonActionProvider extends CommonActionProvider {
26
27     /**
28      * A skeleton action provider is used as a shortcut to avoid a bunch of null
29      * checks. Instead, if a client fails to provide a valid Action Provider or
30      * there is some problem instantiating the class, a skeleton (no-op
31      * singleton) is used in its place.
32      */

33     public static final CommonActionProvider INSTANCE = new SkeletonActionProvider();
34  
35     private SkeletonActionProvider() {
36         super();
37     }
38
39     public void init(ICommonActionExtensionSite aConfig) {
40
41     }
42 }
43
Popular Tags