Some UI fixes

This commit is contained in:
Evgeny Zakrevsky
2012-03-12 15:57:06 +04:00
parent e44be62660
commit b3a8533ad8
8 changed files with 71 additions and 44 deletions
@@ -38,19 +38,6 @@
<text value="Copy downloaded files &amp;to:"/>
</properties>
</component>
<scrollpane id="117b3" class="com.intellij.ui.components.JBScrollPane">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="45c8c" class="com.intellij.ui.CheckBoxList" binding="myFilesList">
<constraints/>
<properties/>
</component>
</children>
</scrollpane>
<grid id="6bec" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
@@ -92,6 +79,19 @@
<border type="none"/>
<children/>
</grid>
<scrollpane id="117b3" class="com.intellij.ui.components.JBScrollPane">
<constraints>
<grid row="2" column="0" row-span="1" col-span="1" vsize-policy="7" hsize-policy="7" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<component id="45c8c" class="com.intellij.ui.CheckBoxList" binding="myFilesList">
<constraints/>
<properties/>
</component>
</children>
</scrollpane>
</children>
</grid>
</form>
@@ -101,6 +101,7 @@ public class DownloadingOptionsDialog extends DialogWrapper {
}
});
myFilesList.setBorder(null);
myFilesToDownloadLabel.setLabelFor(myFilesList);
myDirectoryField.addBrowseFolderListener(ProjectBundle.message("file.chooser.directory.for.downloaded.libraries.title"),
ProjectBundle.message("file.chooser.directory.for.downloaded.libraries.description"), null,
@@ -3,7 +3,7 @@
<grid id="f17b8" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="584" height="261"/>
<xy x="20" y="20" width="433" height="253"/>
</constraints>
<properties/>
<border type="none"/>
@@ -63,7 +63,7 @@
</constraints>
<properties>
<selected value="true"/>
<text value="&amp;Use library"/>
<text value="&amp;Use library:"/>
</properties>
</component>
<component id="6d530" class="javax.swing.JComboBox" binding="myExistingLibraryComboBox">
@@ -104,21 +104,16 @@
<border type="none"/>
<children>
<grid id="9c6d3" layout-manager="GridLayoutManager" row-count="1" column-count="3" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<margin top="10" left="0" bottom="0" right="0"/>
<constraints>
<card name="configure"/>
</constraints>
<properties/>
<border type="none"/>
<children>
<hspacer id="6fd69">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
</hspacer>
<component id="55035" class="javax.swing.JButton" binding="myConfigureButton" default-binding="true">
<constraints>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
<grid row="0" column="2" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="1" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="&amp;Configure..."/>
@@ -131,12 +126,14 @@
<properties/>
<border type="none"/>
<children>
<component id="e8fe4" class="javax.swing.JLabel" binding="myMessageLabel">
<component id="6f310" class="com.intellij.ui.components.JBLabel" binding="myMessageLabel">
<constraints>
<card name="message"/>
</constraints>
<properties>
<componentStyle value="SMALL"/>
<enabled value="true"/>
<fontColor value="BRIGHTER"/>
<text value="&lt;html&gt;{} jars will be downloaded into &lt;b&gt;lib&lt;/b&gt; directory&lt;br&gt; Project level library &lt;b&gt;spring&lt;/b&gt; will be created&lt;/html&gt;"/>
</properties>
</component>
@@ -150,6 +147,11 @@
</component>
</children>
</grid>
<hspacer id="d7447">
<constraints>
<grid row="0" column="1" row-span="1" col-span="1" vsize-policy="1" hsize-policy="6" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
</constraints>
</hspacer>
</children>
</grid>
<grid id="17c14" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
@@ -46,6 +46,7 @@ import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.HtmlListCellRenderer;
import com.intellij.ui.SortedComboBoxModel;
import com.intellij.ui.components.JBLabel;
import com.intellij.util.PathUtil;
import com.intellij.util.PlatformIcons;
import com.intellij.util.download.DownloadableFileSetVersions;
@@ -70,7 +71,7 @@ import java.util.List;
public class LibraryOptionsPanel implements Disposable {
private static final Logger LOG = Logger.getInstance("#com.intellij.facet.impl.ui.libraries.LibraryOptionsPanel");
private JLabel myMessageLabel;
private JBLabel myMessageLabel;
private JPanel myPanel;
private JButton myConfigureButton;
private JComboBox myExistingLibraryComboBox;
@@ -218,7 +219,6 @@ public class LibraryOptionsPanel implements Disposable {
}
final Dimension minimumSize = new Dimension(-1, myMessageLabel.getFontMetrics(myMessageLabel.getFont()).getHeight() * 2);
myMessageLabel.setMinimumSize(minimumSize);
myHiddenLabel.setMinimumSize(minimumSize);
myCreateButton.addActionListener(new ActionListener() {
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.openapi.roots.ui.configuration.libraryEditor.LibraryRootsComponent">
<grid id="e9129" binding="myPanel" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="6" vgap="-1">
<grid id="e9129" binding="myPanel" layout-manager="GridLayoutManager" row-count="3" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="2">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="97" y="50" width="403" height="352"/>