| /******************************************************************************* |
| * Copyright (c) 2010, 2016 Tasktop Technologies 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: |
| * Tasktop Technologies - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.builds.core; |
| |
| /** |
| * @author Steffen Pingel |
| */ |
| // FIXME rename class to something less confusing |
| public enum BuildStatus { |
| |
| // FIXME rename FAILED to FAILURE |
| FAILED, UNSTABLE, SUCCESS, DISABLED, ABORTED, NOT_BUILT; |
| |
| public String getLabel() { |
| switch (this) { |
| case FAILED: |
| return "Failed"; |
| case UNSTABLE: |
| return "Unstable"; |
| case SUCCESS: |
| return "Success"; |
| case DISABLED: |
| return "Disabled"; |
| case ABORTED: |
| return "Aborted"; |
| case NOT_BUILT: |
| return "Not built"; |
| default: |
| return "Unknown"; |
| } |
| }; |
| |
| } |