blob: b66c87e22e710db69fed0616bf311f7cdc630397 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2002, 2004 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.diagram.ui.actions.internal;
import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
import org.eclipse.gmf.runtime.diagram.ui.actions.BooleanPropertyAction;
import org.eclipse.gmf.runtime.diagram.ui.actions.internal.l10n.DiagramUIActionsMessages;
import org.eclipse.gmf.runtime.diagram.ui.internal.properties.Properties;
import org.eclipse.ui.IWorkbenchPage;
/**
* An action to show/hide compartment title
*
* @author melaasar
*/
public class ShowCompartmentTitleAction
extends BooleanPropertyAction {
/**
* @param workbenchPage
* @param propertyId
* @param propertyName
*/
public ShowCompartmentTitleAction(IWorkbenchPage workbenchPage) {
super(
workbenchPage,
Properties.ID_SHOWCOMPARTMENTTITLE,
DiagramUIActionsMessages.PropertyDescriptorFactory_ShowCompartmentTitle);
setId(ActionIds.ACTION_SHOW_COMPARTMENT_TITLE);
setText(DiagramUIActionsMessages.ShowCompartmentTitle_ActionLabelText);
setToolTipText(DiagramUIActionsMessages.ShowCompartmentTitle_ActionToolTipText);
}
}