v++
This commit is contained in:
@@ -62,7 +62,7 @@ public class Visualiser extends Component {
|
||||
//http://www.seostella.com/ru/article/2012/02/05/formatirovanie-daty-v-java.html
|
||||
@Override
|
||||
public void GetVersionInfo() {
|
||||
version = 1147;
|
||||
version = 1148;
|
||||
String pattern = "MMM dd yyyy HH:mm:ss";
|
||||
DateFormat df = new SimpleDateFormat(pattern, Locale.ENGLISH);
|
||||
date_text = df.format(getClassBuildTime());
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.util.Vector;
|
||||
public class PackageCache extends VisualCache {
|
||||
public ConfigurationsJson configurationsJson = null;
|
||||
public Vector<String> configurationsDescriptions = null;
|
||||
public String confifurationsDescriptionsLine= null;
|
||||
public PackageCache(TestingPackage testingPackage) {
|
||||
if (testingPackage.packedConfigurationsJson.isEmpty())
|
||||
configurationsJson = new ConfigurationsJson(); //просто пустой
|
||||
@@ -17,8 +18,12 @@ public class PackageCache extends VisualCache {
|
||||
configurationsDescriptions = new Vector<>();
|
||||
for (ConfigurationJson configurationJson : configurationsJson.array)
|
||||
configurationsDescriptions.add(configurationJson.description);
|
||||
confifurationsDescriptionsLine = String.join(";", configurationsDescriptions);
|
||||
}
|
||||
public Vector<String> getConfigurationsDescriptions() {
|
||||
return configurationsDescriptions;
|
||||
}
|
||||
public String getConfifurationsDescriptionsLine(){
|
||||
return confifurationsDescriptionsLine;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ public class DVMPackagesForm extends DataSetControlForm<DVMPackage> {
|
||||
new ColumnInfo<DVMPackage>("конфигурации") {
|
||||
@Override
|
||||
public Object getFieldAt(DVMPackage object) {
|
||||
return ((PackageCache) VisualCaches.GetCache(object)).getConfigurationsDescriptions();
|
||||
return ((PackageCache) VisualCaches.GetCache(object)).getConfifurationsDescriptionsLine();
|
||||
}
|
||||
@Override
|
||||
public Class getRendererClass() {
|
||||
return RendererMultiline.class;
|
||||
public int getMaxWidth() {
|
||||
return 500;
|
||||
}
|
||||
},
|
||||
new ColumnInfo<DVMPackage>("задач") {
|
||||
|
||||
@@ -36,11 +36,11 @@ public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
||||
new ColumnInfo<SapforPackage>("конфигурации") {
|
||||
@Override
|
||||
public Object getFieldAt(SapforPackage object) {
|
||||
return ((PackageCache) VisualCaches.GetCache(object)).getConfigurationsDescriptions();
|
||||
return ((PackageCache) VisualCaches.GetCache(object)).getConfifurationsDescriptionsLine();
|
||||
}
|
||||
@Override
|
||||
public Class getRendererClass() {
|
||||
return RendererMultiline.class;
|
||||
public int getMaxWidth() {
|
||||
return 500;
|
||||
}
|
||||
},
|
||||
new ColumnInfo<SapforPackage>("задач") {
|
||||
|
||||
Reference in New Issue
Block a user