Révision 328
tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/ColRowInfosLabelProvider.java (revision 328) | ||
---|---|---|
78 | 78 |
super(); |
79 | 79 |
this.names = names; |
80 | 80 |
for (int i = 0; i < names.length; i++) { |
81 |
if (names[i].startsWith(CACoreMessages.ColumnLabel_MASS)) {
|
|
81 |
if (names[i].startsWith(CACoreMessages.mass)) {
|
|
82 | 82 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.MASS_DISPLAY_FORMAT); |
83 | 83 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
84 | 84 |
masspattern = new DecimalFormat(pattern); |
... | ... | |
86 | 86 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.CHI_DISPLAY_FORMAT); |
87 | 87 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
88 | 88 |
chipattern = new DecimalFormat(pattern); |
89 |
} else if (names[i].startsWith(CACoreMessages.ColumnLabel_DIST)) {
|
|
89 |
} else if (names[i].startsWith(CACoreMessages.dist)) {
|
|
90 | 90 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.DIST_DISPLAY_FORMAT); |
91 | 91 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
92 | 92 |
distpattern = new DecimalFormat(pattern); |
93 |
} else if (names[i].startsWith(CACoreMessages.ColumnLabel_COS2)) {
|
|
93 |
} else if (names[i].startsWith(CACoreMessages.cos2)) {
|
|
94 | 94 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.COS2_DISPLAY_FORMAT); |
95 | 95 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
96 | 96 |
cos2pattern = new DecimalFormat(pattern); |
... | ... | |
99 | 99 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.COORD_DISPLAY_FORMAT); |
100 | 100 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
101 | 101 |
coordpattern = new DecimalFormat(pattern); |
102 |
} else if (names[i].startsWith(CACoreMessages.ColumnLabel_CONT)) {
|
|
102 |
} else if (names[i].startsWith(CACoreMessages.cont)) {
|
|
103 | 103 |
String pattern = TXMPreferences.getString(CAPreferences.PREFERENCES_NODE, CAPreferences.CONTRIB_DISPLAY_FORMAT); |
104 | 104 |
if (pattern != null && !pattern.trim().equals("")) //$NON-NLS-1$ |
105 | 105 |
contribpattern = new DecimalFormat(pattern); |
... | ... | |
133 | 133 |
DecimalFormat f; |
134 | 134 |
String name = names[columnIndex]; |
135 | 135 |
f = new DecimalFormat("###.00"); //$NON-NLS-1$ |
136 |
if (name.startsWith(CACoreMessages.ColumnLabel_MASS)) {
|
|
136 |
if (name.startsWith(CACoreMessages.mass)) {
|
|
137 | 137 |
f = masspattern; |
138 | 138 |
} else if (name.startsWith(Messages.ColRowInfosLabelProvider_9)) { |
139 | 139 |
f = chipattern; |
140 |
} else if (name.startsWith(CACoreMessages.ColumnLabel_DIST)) {
|
|
140 |
} else if (name.startsWith(CACoreMessages.dist)) {
|
|
141 | 141 |
f = distpattern; |
142 |
} else if (name.startsWith(CACoreMessages.ColumnLabel_COS2)) {
|
|
142 |
} else if (name.startsWith(CACoreMessages.cos2)) {
|
|
143 | 143 |
f = cos2pattern; |
144 | 144 |
} else if (name.startsWith("c") && name.length() == 2) //$NON-NLS-1$ |
145 | 145 |
{ |
146 | 146 |
f = coordpattern; |
147 |
} else if (name.startsWith(CACoreMessages.ColumnLabel_CONT)) {
|
|
147 |
} else if (name.startsWith(CACoreMessages.cont)) {
|
|
148 | 148 |
f = contribpattern; |
149 | 149 |
} else if (name.startsWith(Messages.ColRowInfosLabelProvider_19) |
150 | 150 |
&& name.length() == 3) { |
Formats disponibles : Unified diff