content: package oscfg.diagram.navigator;
  
  import org.eclipse.core.runtime.IAdapterFactory;
  import org.eclipse.core.runtime.Platform;
  import org.eclipse.emf.ecore.EObject;
  import org.eclipse.emf.ecore.util.EcoreUtil;
  import org.eclipse.gmf.runtime.notation.View;
  
  /**
   * @generated
   */
  public class OscfgNavigatorItem extends OscfgAbstractNavigatorItem {
  
  	/**
  	 * @generated
  	 */
  	static {
  		final Class[] supportedTypes = new Class[] { View.class, EObject.class };
  		Platform.getAdapterManager().registerAdapters(new IAdapterFactory() {
  
  			public Object getAdapter(Object adaptableObject, Class adapterType) {
  				if (adaptableObject instanceof oscfg.diagram.navigator.OscfgNavigatorItem
  						&& (adapterType == View.class || adapterType == EObject.class)) {
  					return ((oscfg.diagram.navigator.OscfgNavigatorItem) adaptableObject)
  							.getView();
  				}
  				return null;
  			}
  
  			public Class[] getAdapterList() {
  				return supportedTypes;
  			}
  		}, oscfg.diagram.navigator.OscfgNavigatorItem.class);
  	}
  
  	/**
  	 * @generated
  	 */
  	private View myView;
  
  	/**
  	 * @generated
  	 */
  	private boolean myLeaf = false;
  
  	/**
  	 * @generated
  	 */
  	public OscfgNavigatorItem(View view, Object parent, boolean isLeaf) {
  		super(parent);
  		myView = view;
  		myLeaf = isLeaf;
  	}
  
  	/**
  	 * @generated
  	 */
  	public View getView() {
  		return myView;
  	}
  
  	/**
  	 * @generated
  	 */
  	public boolean isLeaf() {
  		return myLeaf;
  	}
  
  	/**
  	 * @generated
  	 */
  	public boolean equals(Object obj) {
  		if (obj instanceof oscfg.diagram.navigator.OscfgNavigatorItem) {
  			return EcoreUtil
  					.getURI(getView())
  					.equals(EcoreUtil
  							.getURI(((oscfg.diagram.navigator.OscfgNavigatorItem) obj)
  									.getView()));
  		}
  		return super.equals(obj);
  	}
  
  	/**
  	 * @generated
  	 */
  	public int hashCode() {
  		return EcoreUtil.getURI(getView()).hashCode();
  	}
  
  }
  