| 26 | import matcher.type.Matchable; |
| 27 | |
| 28 | public class ClassInfoTab extends Tab implements IGuiComponent { |
| 29 | public ClassInfoTab(Gui gui, ISelectionProvider selectionProvider, boolean unmatchedTmp) { |
| 30 | super("info"); |
| 31 | |
| 32 | this.gui = gui; |
| 33 | this.selectionProvider = selectionProvider; |
| 34 | this.unmatchedTmp = unmatchedTmp; |
| 35 | |
| 36 | for (int i = 0; i < NameType.AUX_COUNT; i++) { |
| 37 | auxNameLabels[i] = new Label(); |
| 38 | } |
| 39 | |
| 40 | init(); |
| 41 | } |
| 42 | |
| 43 | private void init() { |
| 44 | GridPane grid = new GridPane(); |
| 45 | grid.setPadding(new Insets(GuiConstants.padding)); |
| 46 | grid.setHgap(GuiConstants.padding); |
| 47 | grid.setVgap(GuiConstants.padding); |
| 48 | int row = 0; |
| 49 | |
| 50 | row = addRow("Name", nameLabel, grid, row); |
| 51 | row = addRow("Tmp name", tmpNameLabel, grid, row); |
| 52 | row = addRow("Mapped name", mappedNameLabel, grid, row); |
| 53 | |
| 54 | for (int i = 0; i < NameType.AUX_COUNT; i++) { |
| 55 | row = addRow("AUX name "+(i+1), auxNameLabels[i], grid, row); |
| 56 | } |
| 57 | |
| 58 | row = addRow("UID", uidLabel, grid, row); |
| 59 | row = addRow("Name obf.", nameObfLabel, grid, row); |
| 60 | row = addRow("Inputs", inputLabel, grid, row); |
| 61 | row = addRow("Access", accessLabel, grid, row); |
| 62 | row = addRow("Signature", sigLabel, grid, row); |
| 63 | row = addRow("Outer class", outerLabel, grid, row); |
| 64 | row = addRow("Super class", superLabel, grid, row); |
| 65 | row = addRow("Sub classes", subLabel, grid, row); |
| 66 | row = addRow("Interfaces", ifaceLabel, grid, row); |
| 67 | row = addRow("Implementers", implLabel, grid, row); |
| 68 | row = addRow("Ref. methods", refMethodLabel, grid, row); |
| 69 | row = addRow("Ref. fields", refFieldLabel, grid, row); |
| 70 | row = addRow("Comment", mapCommentLabel, grid, row); |
| 71 | |
| 72 | ScrollPane scroll = new ScrollPane(grid); |
| 73 | setContent(scroll); |
| 74 | } |
| 75 | |
| 76 | private static int addRow(String name, Node content, GridPane grid, int row) { |
| 77 | Label label = new Label(name+":"); |
| 78 | label.setMinWidth(Label.USE_PREF_SIZE); |
| 79 | grid.add(label, 0, row); |
| 80 | GridPane.setValignment(label, VPos.TOP); |
| 81 | |
| 82 | grid.add(content, 1, row); |
| 83 | |
| 84 | return row + 1; |
| 85 | } |
nothing calls this directly
no outgoing calls
no test coverage detected