Skip to content

Commit e7b7dd2

Browse files
committed
rm dependency on intellij classes.
1 parent 6399950 commit e7b7dd2

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

java/src/org/antlr/codebuff/gui/BuffScope.form

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,15 @@
124124
</scrollpane>
125125
</children>
126126
</grid>
127-
<grid id="3052" binding="alignTab" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
128-
<margin top="0" left="0" bottom="0" right="0"/>
127+
<grid id="3052" binding="alignTab" layout-manager="BorderLayout" hgap="0" vgap="0">
129128
<constraints>
130129
<tabbedpane title="Alignment"/>
131130
</constraints>
132131
<properties/>
133132
<border type="none"/>
134133
<children>
135134
<scrollpane id="6764c">
136-
<constraints>
137-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
138-
</constraints>
135+
<constraints border-constraint="Center"/>
139136
<properties/>
140137
<border type="none"/>
141138
<children>
@@ -147,18 +144,15 @@
147144
</scrollpane>
148145
</children>
149146
</grid>
150-
<grid id="883ac" binding="injectWSTab" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
151-
<margin top="0" left="0" bottom="0" right="0"/>
147+
<grid id="883ac" binding="injectWSTab" layout-manager="BorderLayout" hgap="0" vgap="0">
152148
<constraints>
153149
<tabbedpane title="Inject whitespace"/>
154150
</constraints>
155151
<properties/>
156152
<border type="none"/>
157153
<children>
158154
<scrollpane id="fb4f9">
159-
<constraints>
160-
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
161-
</constraints>
155+
<constraints border-constraint="Center"/>
162156
<properties/>
163157
<border type="none"/>
164158
<children>

java/src/org/antlr/codebuff/gui/BuffScope.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ private void createUIComponents() {
101101
injectNLConsole.setEditable(false);
102102
scrollPane3.setViewportView(injectNLConsole);
103103
alignTab = new JPanel();
104-
alignTab.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
104+
alignTab.setLayout(new BorderLayout(0, 0));
105105
analysisTabbedPane.addTab("Alignment", alignTab);
106106
final JScrollPane scrollPane4 = new JScrollPane();
107-
alignTab.add(scrollPane4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK|com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK|com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
107+
alignTab.add(scrollPane4, BorderLayout.CENTER);
108108
alignConsole = new JTextArea();
109109
scrollPane4.setViewportView(alignConsole);
110110
injectWSTab = new JPanel();
111-
injectWSTab.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
111+
injectWSTab.setLayout(new BorderLayout(0, 0));
112112
analysisTabbedPane.addTab("Inject whitespace", injectWSTab);
113113
final JScrollPane scrollPane5 = new JScrollPane();
114-
injectWSTab.add(scrollPane5, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK|com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK|com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
114+
injectWSTab.add(scrollPane5, BorderLayout.CENTER);
115115
injectWSConsole = new JTextArea();
116116
injectWSConsole.setEditable(false);
117117
scrollPane5.setViewportView(injectWSConsole);

0 commit comments

Comments
 (0)