1 19 20 package org.netbeans.modules.subversion.ui.wizards.checkoutstep; 21 22 26 public class CheckoutPanel extends javax.swing.JPanel { 27 28 31 public CheckoutPanel() { 32 initComponents(); 33 } 34 35 40 private void initComponents() { 42 43 jPopupMenu1 = new javax.swing.JPopupMenu (); 44 jMenuItem1 = new javax.swing.JMenuItem (); 45 jLabel1 = new javax.swing.JLabel (); 46 jLabel2 = new javax.swing.JLabel (); 47 jLabel3 = new javax.swing.JLabel (); 48 jLabel4 = new javax.swing.JLabel (); 49 jLabel5 = new javax.swing.JLabel (); 50 jLabel6 = new javax.swing.JLabel (); 51 jLabel7 = new javax.swing.JLabel (); 52 53 org.openide.awt.Mnemonics.setLocalizedText(jMenuItem1, "Item"); jMenuItem1.addActionListener(new java.awt.event.ActionListener () { 55 public void actionPerformed(java.awt.event.ActionEvent evt) { 56 jMenuItem1ActionPerformed(evt); 57 } 58 }); 59 jPopupMenu1.add(jMenuItem1); 60 61 java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/wizards/checkoutstep/Bundle"); setName(bundle.getString("BK2024")); 64 org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalFolderHint")); 66 jLabel2.setLabelFor(workdirTextField); 67 org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalFolder")); 69 org.openide.awt.Mnemonics.setLocalizedText(browseWorkdirButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Browse2")); 71 org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_RepositoryHint")); 73 jLabel4.setLabelFor(repositoryPathTextField); 74 org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_RepositoryFolder")); 76 org.openide.awt.Mnemonics.setLocalizedText(browseRepositoryButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Browse1")); 78 jLabel5.setLabelFor(revisionTextField); 79 org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Revision")); 81 org.openide.awt.Mnemonics.setLocalizedText(searchRevisionButton, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_Search")); 83 org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_EmptyHint")); 85 org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_LocalHint")); 87 org.openide.awt.Mnemonics.setLocalizedText(atWorkingDirLevelCheckBox, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, "CTL_Checkout_CheckoutContentEmpty")); atWorkingDirLevelCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 89 atWorkingDirLevelCheckBox.setEnabled(false); 90 atWorkingDirLevelCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 91 92 scanForProjectsCheckBox.setSelected(true); 93 org.openide.awt.Mnemonics.setLocalizedText(scanForProjectsCheckBox, "Scan for Netbeans Projects after Checkout"); 94 scanForProjectsCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); 95 scanForProjectsCheckBox.setMargin(new java.awt.Insets (0, 0, 0, 0)); 96 97 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 98 this.setLayout(layout); 99 layout.setHorizontalGroup( 100 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 101 .add(layout.createSequentialGroup() 102 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 103 .add(atWorkingDirLevelCheckBox) 104 .add(layout.createSequentialGroup() 105 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 106 .add(jLabel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 438, Short.MAX_VALUE) 107 .add(layout.createSequentialGroup() 108 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 109 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 110 .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 128, Short.MAX_VALUE) 111 .add(jLabel4)) 112 .add(jLabel2)) 113 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 114 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 115 .add(layout.createSequentialGroup() 116 .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 117 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 118 .add(searchRevisionButton)) 119 .add(jLabel6) 120 .add(jLabel7) 121 .add(repositoryPathTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE) 122 .add(workdirTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)) 123 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED))) 124 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 125 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 126 .add(browseRepositoryButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 127 .add(browseWorkdirButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 95, Short.MAX_VALUE)) 128 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)) 129 .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 475, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 130 .add(scanForProjectsCheckBox)) 131 .addContainerGap()) 132 ); 133 layout.setVerticalGroup( 134 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 135 .add(layout.createSequentialGroup() 136 .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 15, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 137 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 138 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 139 .add(jLabel4) 140 .add(repositoryPathTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 141 .add(browseRepositoryButton)) 142 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 143 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 144 .add(jLabel5) 145 .add(searchRevisionButton) 146 .add(revisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 147 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 148 .add(jLabel6) 149 .add(13, 13, 13) 150 .add(atWorkingDirLevelCheckBox) 151 .add(28, 28, 28) 152 .add(jLabel1) 153 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 154 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 155 .add(jLabel2) 156 .add(workdirTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 157 .add(browseWorkdirButton)) 158 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 159 .add(jLabel7) 160 .add(23, 23, 23) 161 .add(scanForProjectsCheckBox) 162 .addContainerGap(40, Short.MAX_VALUE)) 163 ); 164 165 jLabel2.getAccessibleContext().setAccessibleDescription("Local Folder"); 166 browseWorkdirButton.getAccessibleContext().setAccessibleDescription("Browse Local Directory"); 167 jLabel4.getAccessibleContext().setAccessibleDescription("Repository Folders to Checkout"); 168 browseRepositoryButton.getAccessibleContext().setAccessibleDescription("Browse Repository Foldres"); 169 jLabel5.getAccessibleContext().setAccessibleDescription("Repository Revision"); 170 searchRevisionButton.getAccessibleContext().setAccessibleDescription("Search Revision Number"); 171 atWorkingDirLevelCheckBox.getAccessibleContext().setAccessibleDescription("Checkout only folder contents"); 172 } 174 private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) { 176 } 178 179 final javax.swing.JCheckBox atWorkingDirLevelCheckBox = new javax.swing.JCheckBox (); 181 final javax.swing.JButton browseRepositoryButton = new javax.swing.JButton (); 182 final javax.swing.JButton browseWorkdirButton = new javax.swing.JButton (); 183 private javax.swing.JLabel jLabel1; 184 private javax.swing.JLabel jLabel2; 185 private javax.swing.JLabel jLabel3; 186 private javax.swing.JLabel jLabel4; 187 private javax.swing.JLabel jLabel5; 188 private javax.swing.JLabel jLabel6; 189 private javax.swing.JLabel jLabel7; 190 private javax.swing.JMenuItem jMenuItem1; 191 private javax.swing.JPopupMenu jPopupMenu1; 192 final javax.swing.JTextField repositoryPathTextField = new javax.swing.JTextField (); 193 final javax.swing.JTextField revisionTextField = new javax.swing.JTextField (); 194 final javax.swing.JCheckBox scanForProjectsCheckBox = new javax.swing.JCheckBox (); 195 final javax.swing.JButton searchRevisionButton = new javax.swing.JButton (); 196 final javax.swing.JTextField workdirTextField = new javax.swing.JTextField (); 197 199 } 200 | Popular Tags |