no message
This commit is contained in:
@@ -443,18 +443,4 @@ public class Message extends FileObject {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getFieldAt(int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return group_s;
|
||||
case 2:
|
||||
return line;
|
||||
case 3:
|
||||
return value;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,19 @@ public class MessagesControlForm extends DataSetControlForm<Message> {
|
||||
"текст"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(Message object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return object.group_s;
|
||||
case 2:
|
||||
return object.line;
|
||||
case 3:
|
||||
return object.value;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void ShowCurrentObject() throws Exception {
|
||||
super.ShowCurrentObject();
|
||||
Global.mainModule.getFile().form.getEditor().gotoLine(((Message) dataSource.getCurrent()).line);
|
||||
@@ -32,17 +45,17 @@ public class MessagesControlForm extends DataSetControlForm<Message> {
|
||||
public void MouseAction2() throws Exception {
|
||||
ShowCurrentObject();
|
||||
}
|
||||
/*
|
||||
@Override
|
||||
protected void createFilters() {
|
||||
super.createFilters();
|
||||
headersTextFilters.put(3, new HeaderTextFilter(dataSource, 3));
|
||||
}
|
||||
*/
|
||||
/*
|
||||
@Override
|
||||
protected void createFilters() {
|
||||
super.createFilters();
|
||||
headersTextFilters.put(3, new HeaderTextFilter(dataSource, 3));
|
||||
}
|
||||
*/
|
||||
@Override
|
||||
protected Comparator<Message> getDefaultComparator() {
|
||||
return Comparator.comparingInt(o -> o.line);
|
||||
}
|
||||
return Comparator.comparingInt(o -> o.line);
|
||||
}
|
||||
@Override
|
||||
public boolean hasMenuBar() {
|
||||
return false;
|
||||
|
||||
@@ -3,7 +3,6 @@ import Common.Database.Tables.iDBTable;
|
||||
import Common.Visual.DataSetControlForm;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.util.Comparator;
|
||||
//https://stackoverflow.com/questions/2026965/can-i-add-a-button-to-a-jtable-column-header
|
||||
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable/29963916#29963916
|
||||
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable ->>
|
||||
|
||||
@@ -41,13 +41,4 @@ public class MessageRecommendation extends iDBObject {
|
||||
argName.equals(recommendation_in.argName) &&
|
||||
argValue.equals(recommendation_in.argValue);
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return text;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,15 @@ public class RecommendationsForm extends DataSetControlForm<MessageRecommendatio
|
||||
return new String[]{"текст"};
|
||||
}
|
||||
@Override
|
||||
public Object getFieldAt(MessageRecommendation object, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return object.text;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected void AdditionalInitColumns() {
|
||||
columns.get(0).setVisible(false);
|
||||
columns.get(1).setMinWidth(700);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
package _VisualDVM.ProjectData.Messages.Warnings;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.Messages.Message;
|
||||
public class MessageWarning extends Message {
|
||||
public static String filterValue = "";
|
||||
|
||||
Reference in New Issue
Block a user