Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004, 2006 IBM Corporation and others. 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: IBM Corporation - initial API and implementation /
package org.eclipse.gmf.runtime.emf.ui.services.modelingassistant;
The operation used with the modeling assistant service that gets the type of elements that can be created from an action bar.

Author(s):
cmahoney
the host: adapts to editpart, view, element, etc.
	private final IAdaptable host;

Creates a new GetTypesForPopupBarOperation.

Parameters:
host the host: adapts to editpart, view, element, etc.
		this. = host;
	}
	public String getId() {
	}

Returns the host. This is what will be used to assist in delayed loading of a modeling assistant provider.
	public IAdaptable getContext() {
		return getHost();
	}
	/* (non-Javadoc)
	 * @see org.eclipse.gmf.runtime.common.core.service.IOperation#execute(org.eclipse.gmf.runtime.common.core.service.IProvider)
	 */
	public Object execute(IProvider provider) {
		return ((IModelingAssistantProviderprovider)
	}

Returns:
Returns the host that is to have an action bar displayed on it.
	public final IAdaptable getHost() {
		return ;
	}
New to GrepCode? Check out our FAQ X