1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 import org.netbeans.modules.subversion.ui.wizards.*; 23 24 28 public class MergeTwoFoldersPanel extends javax.swing.JPanel { 29 30 31 public MergeTwoFoldersPanel() { 32 initComponents(); 33 } 34 35 40 private void initComponents() { 42 jLabel8 = new javax.swing.JLabel (); 43 jLabel9 = new javax.swing.JLabel (); 44 45 setName(org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Message")); mergeStartRepositoryFolderLabel.setLabelFor(mergeStartUrlComboBox); 47 org.openide.awt.Mnemonics.setLocalizedText(mergeStartRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_FirstFolder")); mergeStartRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("First Repository Folder"); 49 50 org.openide.awt.Mnemonics.setLocalizedText(mergeEndBrowseButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Browse2")); mergeEndBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository Folders"); 52 53 mergeEndUrlComboBox.setEditable(true); 54 mergeEndUrlComboBox.getAccessibleContext().setAccessibleDescription("Second Repository Folder"); 55 56 mergeAfterRevisionLabel.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/resources/icons/ending_revision.png"))); 57 mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField); 58 org.openide.awt.Mnemonics.setLocalizedText(mergeAfterRevisionLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Ending")); mergeAfterRevisionLabel.getAccessibleContext().setAccessibleDescription("End Repository Revision for Merging"); 60 61 mergeEndRevisionTextField.getAccessibleContext().setAccessibleName("Ending Revision for Merging"); 62 mergeEndRevisionTextField.getAccessibleContext().setAccessibleDescription("Ending Revision for Merging"); 63 64 org.openide.awt.Mnemonics.setLocalizedText(mergeStartSearchButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Search1")); mergeStartSearchButton.getAccessibleContext().setAccessibleDescription("Search Repository Revision Number"); 66 67 org.openide.awt.Mnemonics.setLocalizedText(mergeAfterEmptyLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_EmptyHint")); 69 mergeEndRepositoryFolderLabel.setLabelFor(mergeEndUrlComboBox); 70 org.openide.awt.Mnemonics.setLocalizedText(mergeEndRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Second")); mergeEndRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("Second Repository Folder"); 72 73 mergeStartUrlComboBox.setEditable(true); 74 mergeStartUrlComboBox.getAccessibleContext().setAccessibleDescription("Second Repository Folder"); 75 76 org.openide.awt.Mnemonics.setLocalizedText(mergeStartBrowseButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Browse1")); mergeStartBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository Folders"); 78 79 org.openide.awt.Mnemonics.setLocalizedText(mergeEndSearchButton, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Search2")); mergeEndSearchButton.getAccessibleContext().setAccessibleDescription("Search Repository Revision"); 81 82 mergeStartRevisionTextField.getAccessibleContext().setAccessibleDescription("Staring Repository Revision for Merging"); 83 84 jLabel8.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/resources/icons/starting_revision.png"))); 85 jLabel8.setLabelFor(mergeStartRevisionTextField); 86 org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_Starting")); jLabel8.getAccessibleContext().setAccessibleDescription("Starting Revision for Merging"); 88 89 org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(MergeTwoFoldersPanel.class, "CTL_MergeTwoPanel_EmptyHint")); 91 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 92 this.setLayout(layout); 93 layout.setHorizontalGroup( 94 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 95 .add(layout.createSequentialGroup() 96 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 97 .add(mergeEndRepositoryFolderLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 98 .add(jLabel8, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 99 .add(mergeAfterRevisionLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 100 .add(mergeStartRepositoryFolderLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 101 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 102 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 103 .add(layout.createSequentialGroup() 104 .add(jLabel9) 105 .addContainerGap()) 106 .add(layout.createSequentialGroup() 107 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 108 .add(mergeEndUrlComboBox, 0, 397, Short.MAX_VALUE) 109 .add(mergeStartUrlComboBox, 0, 397, Short.MAX_VALUE) 110 .add(layout.createSequentialGroup() 111 .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 112 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 113 .add(mergeStartSearchButton)) 114 .add(layout.createSequentialGroup() 115 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 116 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 117 .add(mergeEndSearchButton)) 118 .add(mergeAfterEmptyLabel)) 119 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 120 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 121 .add(mergeEndBrowseButton) 122 .add(mergeStartBrowseButton))))) 123 ); 124 layout.setVerticalGroup( 125 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 126 .add(layout.createSequentialGroup() 127 .addContainerGap() 128 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 129 .add(mergeStartUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 130 .add(mergeStartBrowseButton) 131 .add(mergeStartRepositoryFolderLabel)) 132 .add(12, 12, 12) 133 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 134 .add(mergeStartRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 135 .add(mergeStartSearchButton) 136 .add(jLabel8)) 137 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 138 .add(jLabel9) 139 .add(19, 19, 19) 140 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 141 .add(mergeEndRepositoryFolderLabel) 142 .add(mergeEndUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 143 .add(mergeEndBrowseButton)) 144 .add(17, 17, 17) 145 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 146 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 147 .add(mergeEndSearchButton) 148 .add(mergeAfterRevisionLabel)) 149 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 150 .add(mergeAfterEmptyLabel) 151 .addContainerGap()) 152 ); 153 } 155 156 private javax.swing.JLabel jLabel8; 158 private javax.swing.JLabel jLabel9; 159 final javax.swing.JLabel mergeAfterEmptyLabel = new javax.swing.JLabel (); 160 final javax.swing.JLabel mergeAfterRevisionLabel = new javax.swing.JLabel (); 161 final javax.swing.JButton mergeEndBrowseButton = new javax.swing.JButton (); 162 final javax.swing.JLabel mergeEndRepositoryFolderLabel = new javax.swing.JLabel (); 163 final javax.swing.JTextField mergeEndRevisionTextField = new javax.swing.JTextField (); 164 final javax.swing.JButton mergeEndSearchButton = new javax.swing.JButton (); 165 final javax.swing.JComboBox mergeEndUrlComboBox = new javax.swing.JComboBox (); 166 final javax.swing.JButton mergeStartBrowseButton = new javax.swing.JButton (); 167 final javax.swing.JLabel mergeStartRepositoryFolderLabel = new javax.swing.JLabel (); 168 final javax.swing.JTextField mergeStartRevisionTextField = new javax.swing.JTextField (); 169 final javax.swing.JButton mergeStartSearchButton = new javax.swing.JButton (); 170 final javax.swing.JComboBox mergeStartUrlComboBox = new javax.swing.JComboBox (); 171 173 } 174 | Popular Tags |