01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 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.navigator.extensions;
11:
12: import org.eclipse.core.runtime.IConfigurationElement;
13: import org.eclipse.ui.internal.navigator.NavigatorPlugin;
14:
15: /**
16: * Provides a common superclass for all consumers of the
17: * <b>org.eclipse.ui.navigator.navigatorContent</b> extension point.
18: *
19: * @since 3.2
20: *
21: */
22: public class NavigatorContentRegistryReader extends RegistryReader
23: implements INavigatorContentExtPtConstants {
24:
25: protected final NavigatorContentDescriptorManager CONTENT_DESCRIPTOR_MANAGER = NavigatorContentDescriptorManager
26: .getInstance();
27:
28: protected NavigatorContentRegistryReader() {
29: super (NavigatorPlugin.PLUGIN_ID, TAG_NAVIGATOR_CONTENT);
30: }
31:
32: protected boolean readElement(IConfigurationElement element) {
33: String elementName = element.getName();
34:
35: /* These are all of the valid root tags that exist */
36: return TAG_ACTION_PROVIDER.equals(elementName)
37: || TAG_NAVIGATOR_CONTENT.equals(elementName)
38: || TAG_COMMON_WIZARD.equals(elementName)
39: || TAG_COMMON_FILTER.equals(elementName);
40: }
41: }
|