просмотр текста ячеек по пкм.
v++
This commit is contained in:
@@ -4,6 +4,7 @@ import Common.Utils.Utils_;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.Vector;
|
||||
public class TableMenu extends StyledPopupMenu {
|
||||
int row = CommonConstants.Nan;
|
||||
int column = CommonConstants.Nan;
|
||||
@@ -34,7 +35,16 @@ public class TableMenu extends StyledPopupMenu {
|
||||
mcopy.setVisible(true);
|
||||
Dimension d= new Dimension(Math.max(mcopy.getWidth(), 300),100);
|
||||
value_view.setVisible(true);
|
||||
value_view.setText(target.toString());
|
||||
String res = target.toString();
|
||||
if (target instanceof Vector){
|
||||
Vector<Object> v = (Vector<Object>) target;
|
||||
Vector<String> res_ = new Vector<>();
|
||||
for (Object o: v){
|
||||
res_.add(o.toString());
|
||||
}
|
||||
res = String.join("\n", res_);
|
||||
}
|
||||
value_view.setText(res);
|
||||
value_scroll.setPreferredSize(d);
|
||||
} else {
|
||||
mcopy.setVisible(false);
|
||||
|
||||
@@ -3,7 +3,7 @@ import Common.Utils.Vector_;
|
||||
|
||||
import java.util.Vector;
|
||||
public class Constants {
|
||||
public static final int version = 1187;
|
||||
public static final int version = 1188;
|
||||
public static final int planner_version = 10;
|
||||
public static final int testingMaxKernels = 64; //вообще говоря, это параметр машины.
|
||||
//--
|
||||
|
||||
@@ -29,7 +29,7 @@ public class TestsForm extends DataSetControlForm<Test> {
|
||||
new ColumnInfo<Test>("описание") {
|
||||
@Override
|
||||
public Object getFieldAt(Test object) {
|
||||
return object.extended_description;//.replace("\n","→");
|
||||
return object.extended_description.replace("\n",";\n");
|
||||
}
|
||||
@Override
|
||||
public Class getRendererClass() {
|
||||
|
||||
Reference in New Issue
Block a user