blob: 4bdf2983e0d25923704f0c883aa118d58482f523 (
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
|
/*
* Created on Oct 27, 2010
*
* PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
*/
package org.eclipse.osee.ats.column;
import org.eclipse.osee.ats.core.type.AtsAttributeTypes;
import org.eclipse.osee.ats.util.xviewer.column.XViewerAtsAttributeValueColumn;
import org.eclipse.osee.ats.world.WorldXViewerFactory;
import org.eclipse.swt.SWT;
public class PercentReworkColumn extends XViewerAtsAttributeValueColumn {
public static PercentReworkColumn instance = new PercentReworkColumn();
public static PercentReworkColumn getInstance() {
return instance;
}
private PercentReworkColumn() {
super(AtsAttributeTypes.PercentRework, WorldXViewerFactory.COLUMN_NAMESPACE + ".percentRework",
AtsAttributeTypes.PercentRework.getUnqualifiedName(), 40, SWT.CENTER, false, SortDataType.Percent, false, "");
}
/**
* 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 PercentReworkColumn copy() {
PercentReworkColumn newXCol = new PercentReworkColumn();
super.copy(this, newXCol);
return newXCol;
}
}
|