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: EEnumLiteralsCanonicalEditPolicy.java,v 1.3 2009/02/02 08:39:06 jlescot Exp $ /
package org.eclipse.emf.ecoretools.diagram.edit.policies;
import  org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
import  org.eclipse.gmf.runtime.notation.View;

Generated:
public class EEnumLiteralsCanonicalEditPolicy extends CanonicalEditPolicy {

Generated:

Generated:
		View viewObject = (View) getHost().getModel();
		List result = new LinkedList();
		for (Iterator it = EcoreDiagramUpdater.getEEnumLiterals_5006SemanticChildren(viewObject).iterator(); it.hasNext();) {
		}
		return result;
	}

Generated:
	protected boolean isOrphaned(Collection semanticChildrenfinal View view) {
		int visualID = EcoreVisualIDRegistry.getVisualID(view);
		switch (visualID) {
			if (!semanticChildren.contains(view.getElement())) {
				return true;
			}
		}
		return false;
	}

Generated:
		return null;
	}

Generated:
		if ( == null) {
		}
	}
New to GrepCode? Check out our FAQ X