/*******************************************************************************
* Copyright (c) 2008 Olivier Moises
*
* 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:
* Olivier Moises- initial API and implementation
*******************************************************************************/
package org.eclipse.wazaabi.engine.core.editparts;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.wazaabi.mm.core.widgets.CoreWidgetsPackage;
public class LabelEditPart extends AbstractComponentEditPart {
public static final String TEXT_PROPERTY_NAME = "text"; //$NON-NLS-1$
public static final String IMAGE_PROPERTY_NAME = "image"; //$NON-NLS-1$
public static final String LOOKANDFEEL_PROPERTY_NAME = "lookandfeel"; //$NON-NLS-1$
public EClass getModelEClass() {
return CoreWidgetsPackage.Literals.LABEL;
}
protected void refreshFeaturesAndStyles() {
super.refreshFeaturesAndStyles();
refreshUniqueStyleRule(TEXT_PROPERTY_NAME);
refreshUniqueStyleRule(IMAGE_PROPERTY_NAME);
refreshUniqueStyleRule(LOOKANDFEEL_PROPERTY_NAME);
}
}