org.eclipse.ui.commands.IElementUpdater Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of workbench Show documentation
Show all versions of workbench Show documentation
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;
/**
* An IHandler for a command that expects to provide feedback through the
* registered element mechanism must implement this interface.
*
* @since 3.3
*
*/
public interface IElementUpdater {
/**
* Whenever the elements for a command are refreshed, this method is called
* on the active handler for that command.
*
* Note: Handlers must never cache the element, which can disappear
* or be replaced at any time. Everybody should go through the
* ICommandService refreshElements(*) method.
*
*
* @param element
* An element for a specific UI element. Will not be
* null
.
* @param parameters
* Any parameters registered with the callback. Will not be
* null
, but it may be empty.
*/
public void updateElement(UIElement element, Map parameters);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy