File tree 1 file changed +19
-4
lines changed
bundles/ilg.gnumcueclipse.packs.ui/src/ilg/gnumcueclipse/packs/ui/views
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -149,25 +149,40 @@ public String getColumnText(Object obj, int columnIndex) {
149
149
switch (columnIndex ) {
150
150
case 0 :
151
151
String name = node .getName ();
152
+ String extra = "" ;
152
153
if (node .isBooleanProperty (Property .INSTALLED )) {
153
- name + = " ( installed) " ;
154
+ extra = "installed" ;
154
155
} else {
155
156
if (node .isType (Type .VERSION )) {
156
157
String size = node .getProperty (Property .ARCHIVE_SIZE );
157
- if (size .length () > 0 ) {
158
+ if (!size .isEmpty ()) {
159
+ if (!extra .isEmpty ()) {
160
+ extra += ", " ;
161
+ }
158
162
try {
159
163
int n = Integer .parseInt (size );
160
164
if (n <= 0 ) {
161
- name += " ( n/a) " ;
165
+ extra += "n/a" ;
162
166
} else {
163
- name += " (" + StringUtils .convertSizeToString (n ) + ")" ;
167
+ extra += StringUtils .convertSizeToString (n );
164
168
}
165
169
} catch (NumberFormatException e ) {
166
170
;
167
171
}
168
172
}
173
+ String date = node .getProperty (Property .DATE );
174
+ if (!date .isEmpty ()) {
175
+ if (!extra .isEmpty ()) {
176
+ extra += ", " ;
177
+ }
178
+ extra += date ;
179
+ }
180
+
169
181
}
170
182
}
183
+ if (!extra .isEmpty ()) {
184
+ name += " (" + extra + ")" ;
185
+ }
171
186
return " " + name ;
172
187
173
188
case 1 :
You can’t perform that action at this time.
0 commit comments