blob: f5e8b5112e655b52eb608a84e0dc3a6a55963c10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.column;
import org.eclipse.osee.framework.core.model.Branch;
/**
* @author Donald G. Dunne
*/
public class WorkingBranchUuidColumn extends AbstractBranchColumn {
public static WorkingBranchUuidColumn instance = new WorkingBranchUuidColumn();
public static WorkingBranchUuidColumn getInstance() {
return instance;
}
private WorkingBranchUuidColumn() {
super(".workBranchUuid", "Working Branch Uuid");
}
/**
* XViewer uses copies of column definitions so originals that are registered are not corrupted. Classes extending
* XViewerValueColumn MUST extend this constructor so the correct sub-class is created
*/
@Override
public WorkingBranchUuidColumn copy() {
WorkingBranchUuidColumn newXCol = new WorkingBranchUuidColumn();
super.copy(this, newXCol);
return newXCol;
}
@Override
String getColumnText(Branch branch) {
return String.valueOf(branch.getGuid());
}
}
|