/******************************************************************************* * Copyright (c) 2000, 2010, 2012 IBM Corporation, Gerhardt Informatics Kft. 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 * Gerhardt Informatics Kft. - GEFGWT port *******************************************************************************/ package org.eclipse.gef.ui.actions; import org.eclipse.gef.internal.GEFMessages; import org.eclipse.ui.ISharedImages; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.actions.ActionFactory; import org.eclipse.ui.actions.RetargetAction; /** * @author Eric Bordeau */ public class DeleteRetargetAction extends RetargetAction { /** * Constructs a new DeleteRetargetAction with the default ID, label and * image. */ public DeleteRetargetAction() { super(ActionFactory.DELETE.getId(), GEFMessages.DeleteAction_Label); setToolTipText(GEFMessages.DeleteAction_Tooltip); ISharedImages sharedImages = PlatformUI.getWorkbench() .getSharedImages(); setImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE)); setDisabledImageDescriptor(sharedImages .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED)); } }