blob: 0e9413657bf97190c7c3bc1987d348f4d276c792 (
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 WorkingBranchGuidColumn extends AbstractBranchColumn {
public static WorkingBranchGuidColumn instance = new WorkingBranchGuidColumn();
public static WorkingBranchGuidColumn getInstance() {
return instance;
}
private WorkingBranchGuidColumn() {
super(".workBranchGuid", "Working Branch Guid");
}
/**
* 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 WorkingBranchGuidColumn copy() {
WorkingBranchGuidColumn newXCol = new WorkingBranchGuidColumn();
super.copy(this, newXCol);
return newXCol;
}
@Override
String getColumnText(Branch branch) {
return String.valueOf(branch.getGuid());
}
}
|