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

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

The newest version!
/*******************************************************************************
 * Copyright (c) 2003, 2008 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.Collection;

/**
 * An instance of this interface provides support for managing commands at the
 * IWorkbench level.
 * 

* This interface is not intended to be extended or implemented by clients. *

* * @since 3.0 * @deprecated Please use ICommandService and * IHandlerService instead. * @see org.eclipse.ui.commands.ICommandService * @see org.eclipse.ui.handlers.IHandlerService * @noimplement This interface is not intended to be implemented by clients. */ public interface IWorkbenchCommandSupport { /** * Adds a single handler submissions for consideration by the workbench. The * submission indicates to the workbench a set of conditions under which the * handler should become active. The workbench, however, ultimately decides * which handler becomes active (in the event of conflicts or changes in * state). This could cause the handlers for one or more commands to change. * * @param handlerSubmission * The submission to be added; must not be null. */ void addHandlerSubmission(HandlerSubmission handlerSubmission); /** * Adds a collection of handler submissions for consideration by the * workbench. The submission indicates to the workbench a set of conditions * under which the handler should become active. The workbench, however, * ultimately decides which handler becomes active (in the event of * conflicts or changes in state). This could cause the handlers for one or * more commands to change. * * @param handlerSubmissions * The submissions to be added; must not be null, * and must contain zero or more instances of * HandlerSubmission. */ void addHandlerSubmissions(Collection handlerSubmissions); /** * Returns the command manager for the workbench. * * @return the command manager for the workbench. Guaranteed not to be * null. */ ICommandManager getCommandManager(); /** * Removes a single handler submission from consideration by the workbench. * The handler submission must be the same as the one added (not just * equivalent). This could cause the handlers for one or more commands to * change. * * @param handlerSubmission * The submission to be removed; must not be null. */ void removeHandlerSubmission(HandlerSubmission handlerSubmission); /** * Removes a single handler submission from consideration by the workbench. * The handler submission must be the same as the one added (not just * equivalent). This could cause the handlers for one or more commands to * change. * * @param handlerSubmissions * The submissions to be removed; must not be null, * and must contain instances of HandlerSubmission * only. */ void removeHandlerSubmissions(Collection handlerSubmissions); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy