| /* |
| * Copyright (c) 2006 Borland Software Corporation |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Dmitry Stadnik (Borland) - initial API and implementation |
| */ |
| package org.eclipse.gmf.map.editor.navigator; |
| |
| import org.eclipse.core.runtime.IAdaptable; |
| |
| import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor; |
| |
| /** |
| * @generated |
| */ |
| public abstract class GMFMapAbstractNavigatorItem implements IAdaptable { |
| |
| /** |
| * @generated |
| */ |
| private Object myParent; |
| |
| /** |
| * @generated |
| */ |
| protected GMFMapAbstractNavigatorItem(Object parent) { |
| myParent = parent; |
| } |
| |
| /** |
| * @generated |
| */ |
| abstract public String getModelID(); |
| |
| /** |
| * @generated |
| */ |
| public Object getParent() { |
| return myParent; |
| } |
| |
| /** |
| * @generated |
| */ |
| public Object getAdapter(Class adapter) { |
| if (ITabbedPropertySheetPageContributor.class.isAssignableFrom(adapter)) { |
| return new ITabbedPropertySheetPageContributor() { |
| |
| public String getContributorId() { |
| return "org.eclipse.gmf.map.editor"; |
| } |
| }; |
| } |
| return null; |
| } |
| |
| } |