All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.commands.IElementReference Maven / Gradle / Ivy

Go to download

This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.

The newest version!
/*******************************************************************************
 * Copyright (c) 2007 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.ui.commands;

import java.util.Map;

import org.eclipse.ui.menus.UIElement;

/**
 * the ICommandService will return a reference for all callbacks that are
 * registered. This reference can be used to unregister the specific callback.
 * 

* Similar in functionality to an IHandlerActivation. This interface should * not be implemented or extended by clients. *

* * @since 3.3 */ public interface IElementReference { /** * The command id that this callback was registered against. * * @return The command id. Will not be null. */ public String getCommandId(); /** * The callback that was registered. * * @return Adapts to provide appropriate user feedback. Will not be * null. */ public UIElement getElement(); /** * Parameters that help scope this callback registration. For example, it * can include parameters from the ParameterizedCommand. Callers should not * change the map that is returned. * * @return scoping parameters. Will not be null. */ public Map getParameters(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy