KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2005, 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.core.runtime.IConfigurationElement;
14 import org.eclipse.ui.internal.navigator.NavigatorPlugin;
15
16 /**
17  * Provides a common superclass for all consumers of the
18  * <b>org.eclipse.ui.navigator.navigatorContent</b> extension point.
19  *
20  * @since 3.2
21  *
22  */

23 public class NavigatorContentRegistryReader extends RegistryReader implements
24         INavigatorContentExtPtConstants {
25
26     protected final NavigatorContentDescriptorManager CONTENT_DESCRIPTOR_MANAGER = NavigatorContentDescriptorManager
27             .getInstance();
28
29     protected NavigatorContentRegistryReader() {
30         super(NavigatorPlugin.PLUGIN_ID, TAG_NAVIGATOR_CONTENT);
31     }
32
33     protected boolean readElement(IConfigurationElement element) {
34         String JavaDoc elementName = element.getName();
35
36         /* These are all of the valid root tags that exist */
37         return TAG_ACTION_PROVIDER.equals(elementName)
38                 || TAG_NAVIGATOR_CONTENT.equals(elementName)
39                 || TAG_COMMON_WIZARD.equals(elementName)
40                 || TAG_COMMON_FILTER.equals(elementName);
41     }
42 }
43
Popular Tags