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: EcoreDomainNavigatorItem.java,v 1.3 2009/02/02 08:39:07 jlescot Exp $ /
 
 
 package org.eclipse.emf.ecoretools.diagram.navigator;
 
 import  org.eclipse.core.runtime.IAdapterFactory;
 import  org.eclipse.core.runtime.PlatformObject;

Generated:
 
 public class EcoreDomainNavigatorItem extends PlatformObject {

Generated:
 
 	static {
 		final Class[] supportedTypes = new Class[] { EObject.classIPropertySource.class };
 		Platform.getAdapterManager().registerAdapters(new IAdapterFactory() {
 
 			public Object getAdapter(Object adaptableObjectClass adapterType) {
 				if (adaptableObject instanceof org.eclipse.emf.ecoretools.diagram.navigator.EcoreDomainNavigatorItem) {
 					EObject eObject = domainNavigatorItem.getEObject();
 					if (adapterType == EObject.class) {
 						return eObject;
 					}
 					if (adapterType == IPropertySource.class) {
 						return domainNavigatorItem.getPropertySourceProvider().getPropertySource(eObject);
 					}
 				}
 
 				return null;
 			}
 
 			public Class[] getAdapterList() {
 				return supportedTypes;
 			}
 	}

Generated:
 
 	private Object myParent;

Generated:
 
 	private EObject myEObject;

Generated:
 

Generated:
 
 	public EcoreDomainNavigatorItem(EObject eObjectObject parentIPropertySourceProvider propertySourceProvider) {
 		 = parent;
 		 = eObject;
 		 = propertySourceProvider;
 	}

Generated:
 
 	public Object getParent() {
 		return ;
 	}

Generated:
 
 	public EObject getEObject() {
 		return ;
 	}

Generated:
 
	}

Generated:
	public boolean equals(Object obj) {
		}
		return super.equals(obj);
	}

Generated:
	public int hashCode() {
		return EcoreUtil.getURI(getEObject()).hashCode();
	}
New to GrepCode? Check out our FAQ X