mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
label for destination combo (IDEA-91302)
This commit is contained in:
@@ -210,6 +210,7 @@ public class CreateClassDialog extends DialogWrapper {
|
||||
final boolean isMultipleSourceRoots = ProjectRootManager.getInstance(myProject).getContentSourceRoots().length > 1;
|
||||
myDestinationCB.setVisible(isMultipleSourceRoots);
|
||||
label.setVisible(isMultipleSourceRoots);
|
||||
label.setLabelFor(myDestinationCB);
|
||||
return panel;
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ class CopyClassDialog extends DialogWrapper{
|
||||
final boolean isMultipleSourceRoots = ProjectRootManager.getInstance(myProject).getContentSourceRoots().length > 1;
|
||||
myDestinationCB.setVisible(!myDoClone && isMultipleSourceRoots);
|
||||
label.setVisible(!myDoClone && isMultipleSourceRoots);
|
||||
|
||||
label.setLabelFor(myDestinationCB);
|
||||
|
||||
return FormBuilder.createFormBuilder()
|
||||
.addComponent(myInformationLabel)
|
||||
|
||||
+3
-2
@@ -74,8 +74,9 @@ public abstract class JavaExtractSuperBaseDialog extends ExtractSuperBaseDialog<
|
||||
if (sourceRoots.length <= 1) return super.createDestinationRootPanel();
|
||||
final JPanel panel = new JPanel(new BorderLayout());
|
||||
panel.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
|
||||
panel.add(new JBLabel(RefactoringBundle.message("target.destination.folder")), BorderLayout.NORTH);
|
||||
|
||||
final JBLabel label = new JBLabel(RefactoringBundle.message("target.destination.folder"));
|
||||
panel.add(label, BorderLayout.NORTH);
|
||||
label.setLabelFor(myDestinationFolderComboBox);
|
||||
myDestinationFolderComboBox.setData(myProject, myTargetDirectory, new Pass<String>() {
|
||||
@Override
|
||||
public void pass(String s) {
|
||||
|
||||
+2
-1
@@ -3,7 +3,7 @@
|
||||
<grid id="27dc6" binding="myWholePanel" layout-manager="GridLayoutManager" row-count="3" 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="420" height="440"/>
|
||||
<xy x="20" y="20" width="579" height="440"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<clientProperties>
|
||||
@@ -75,6 +75,7 @@
|
||||
<grid row="2" 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>
|
||||
<properties>
|
||||
<labelFor value="c2c7f"/>
|
||||
<text resource-bundle="messages/RefactoringBundle" key="target.destination.folder"/>
|
||||
</properties>
|
||||
</component>
|
||||
|
||||
+2
-1
@@ -2,7 +2,7 @@
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.intellij.refactoring.replaceConstructorWithBuilder.ReplaceConstructorWithBuilderDialog">
|
||||
<grid id="27dc6" binding="myWholePanel" layout-manager="GridBagLayout">
|
||||
<constraints>
|
||||
<xy x="387" y="313" width="358" height="210"/>
|
||||
<xy x="387" y="313" width="515" height="270"/>
|
||||
</constraints>
|
||||
<properties/>
|
||||
<border type="none"/>
|
||||
@@ -86,6 +86,7 @@
|
||||
<gridbag weightx="0.0" weighty="0.0"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<labelFor value="3e899"/>
|
||||
<text resource-bundle="messages/RefactoringBundle" key="target.destination.folder"/>
|
||||
</properties>
|
||||
</component>
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<labelFor value="cf692"/>
|
||||
<text resource-bundle="messages/RefactoringBundle" key="target.destination.folder"/>
|
||||
</properties>
|
||||
</component>
|
||||
|
||||
Reference in New Issue
Block a user