Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2007 Anyware Technologies 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: Anyware Technologies - initial API and implementation $Id: EcoreAbstractNavigatorItem.java,v 1.2 2008/04/28 08:41:30 jlescot Exp $ /
package org.eclipse.emf.ecoretools.diagram.navigator;
import  org.eclipse.core.runtime.IAdapterFactory;
import  org.eclipse.core.runtime.PlatformObject;

Generated:
public abstract class EcoreAbstractNavigatorItem extends PlatformObject {

Generated:
	static {
		final Class[] supportedTypes = new Class[] { ITabbedPropertySheetPageContributor.class };
		final ITabbedPropertySheetPageContributor propertySheetPageContributor = new ITabbedPropertySheetPageContributor() {
			public String getContributorId() {
				return "org.eclipse.emf.ecoretools.diagram"//$NON-NLS-1$
			}
		};
		Platform.getAdapterManager().registerAdapters(new IAdapterFactory() {
			public Object getAdapter(Object adaptableObjectClass adapterType) {
				if (adaptableObject instanceof org.eclipse.emf.ecoretools.diagram.navigator.EcoreAbstractNavigatorItem && adapterType == ITabbedPropertySheetPageContributor.class) {
					return propertySheetPageContributor;
				}
				return null;
			}
			public Class[] getAdapterList() {
				return supportedTypes;
			}
	}

Generated:
	private Object myParent;

Generated:
	protected EcoreAbstractNavigatorItem(Object parent) {
		 = parent;
	}

Generated:
	public Object getParent() {
		return ;
	}
New to GrepCode? Check out our FAQ X