IDEA-80393 Run/Debug Configurations: JUnit: "Test kind" option is truncated on Mac OS

This commit is contained in:
Evgeny Zakrevsky
2012-02-27 01:51:50 +04:00
parent e103131ca2
commit 5575490ebe
2 changed files with 6 additions and 4 deletions
@@ -3,7 +3,7 @@
<grid id="ece1c" binding="myWholePanel" layout-manager="GridLayoutManager" row-count="4" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="28" y="28" width="722" height="443"/>
<xy x="28" y="28" width="722" height="509"/>
</constraints>
<properties/>
<border type="none"/>
@@ -168,7 +168,7 @@
<properties/>
<border type="none"/>
<children>
<component id="4baf8" class="javax.swing.JLabel">
<component id="99d03" class="com.intellij.ui.components.JBLabel" binding="mySearchForTestsLabel">
<constraints>
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
@@ -46,10 +46,10 @@ import com.intellij.openapi.util.IconLoader;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.*;
import com.intellij.ui.PanelWithAnchor;
import com.intellij.ui.EditorTextField;
import com.intellij.ui.EditorTextFieldWithBrowseButton;
import com.intellij.ui.InsertPathAction;
import com.intellij.ui.PanelWithAnchor;
import com.intellij.ui.components.JBLabel;
import com.intellij.util.PlatformIcons;
import com.intellij.util.TextFieldCompletionProvider;
@@ -102,6 +102,7 @@ public class JUnitConfigurable extends SettingsEditor<JUnitConfiguration> implem
private JComboBox myForkCb;
private JBLabel myTestLabel;
private JComboBox myTypeChooser;
private JBLabel mySearchForTestsLabel;
@NonNls private static final String NONE = "none";
@NonNls private static final String METHOD = "method";
@NonNls private static final String KLASS = "class";
@@ -216,7 +217,7 @@ public class JUnitConfigurable extends SettingsEditor<JUnitConfiguration> implem
myCommonJavaParameters.getProgramParametersComponent().setVisible(false);
setAnchor(myDir.getLabel());
setAnchor(mySearchForTestsLabel);
myAlternativeJREPanel.setAnchor(myModule.getLabel());
myCommonJavaParameters.setAnchor(myModule.getLabel());
}
@@ -403,6 +404,7 @@ public class JUnitConfigurable extends SettingsEditor<JUnitConfiguration> implem
@Override
public void setAnchor(JComponent anchor) {
this.anchor = anchor;
mySearchForTestsLabel.setAnchor(anchor);
myTestLabel.setAnchor(anchor);
myClass.setAnchor(anchor);
myDir.setAnchor(anchor);