/******************************************************************************* * Copyright (c) 2012 BundleMaker Project Team * 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: * Nils Hartmann - initial API and implementation ******************************************************************************/ package org.bundlemaker.core.ui.view.transformationhistory.labelprovider; import org.bundlemaker.core.resource.ITransformationRenameModule; import org.eclipse.swt.graphics.Image; /** * @author Nils Hartmann (nils@nilshartmann.net) * */ public class RenameModuleTransformationLabelProvider extends AbstractTransformationLabelProvider<ITransformationRenameModule> { /** * @param supportedType */ public RenameModuleTransformationLabelProvider() { super(ITransformationRenameModule.class); } /* * (non-Javadoc) * * @see * org.bundlemaker.core.ui.transformations.history.labelprovider.AbstractTransformationLabelProvider#getTitle(org. * bundlemaker.core.transformation.ITransformation) */ @Override protected String getTitle(ITransformationRenameModule transformation) { return "Rename Module"; } /* * (non-Javadoc) * * @see * org.bundlemaker.core.ui.transformations.history.labelprovider.AbstractTransformationLabelProvider#getTitleImage * (org.bundlemaker.core.transformation.ITransformation) */ @Override protected Image getTitleImage(ITransformationRenameModule transformation) { return null; } /* * (non-Javadoc) * * @see * org.bundlemaker.core.ui.transformations.history.labelprovider.AbstractTransformationLabelProvider#getDetails(org * .bundlemaker.core.transformation.ITransformation) */ @Override protected String getDetails(ITransformationRenameModule transformation) { return "Renamed " + transformation.getOldModuleIdentifier() + " to " + transformation.getNewModuleIdentifier(); } }