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: EEnumLiteralViewFactory.java,v 1.3 2009/02/02 08:39:07 jlescot Exp $ /
package org.eclipse.emf.ecoretools.diagram.view.factories;
import  org.eclipse.core.runtime.IAdaptable;
import  org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
import  org.eclipse.gmf.runtime.notation.View;

Generated:
public class EEnumLiteralViewFactory extends AbstractLabelViewFactory {

Generated:
	protected List createStyles(View view) {
		List styles = new ArrayList();
		return styles;
	}

Generated:
	protected void decorateView(View containerView, View view, IAdaptable semanticAdapterString semanticHintint indexboolean persisted) {
		if (semanticHint == null) {
			semanticHint = EcoreVisualIDRegistry.getType(.);
			view.setType(semanticHint);
		}
		super.decorateView(containerViewviewsemanticAdaptersemanticHintindexpersisted);
	}
New to GrepCode? Check out our FAQ X