blob: 99dd28c1c065393b4fde138d8d18807cdff7c584 [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2015 itemis and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* itemis - Initial API and implementation
*
* </copyright>
*/
package org.eclipse.sphinx.platform.operations;
import org.eclipse.sphinx.platform.internal.messages.Messages;
/**
* Default implementation of {@link ILabeledWorkspaceRunnable}.
*
* @see ILabeledWorkspaceRunnable
*/
public abstract class AbstractLabeledWorkspaceRunnable implements ILabeledWorkspaceRunnable {
private String label;
public AbstractLabeledWorkspaceRunnable(String label) {
this.label = label;
}
/*
* @see org.eclipse.sphinx.platform.operations.IWorkspaceOperation#getLabel()
*/
@Override
public String getLabel() {
return label != null ? label : Messages.operation_unnamed_label;
}
}