1 19 20 package org.netbeans.modules.subversion.ui.copy; 21 22 import org.netbeans.modules.subversion.ui.wizards.*; 23 24 28 public class MergeSinceOriginPanel extends javax.swing.JPanel { 29 30 31 public MergeSinceOriginPanel() { 32 initComponents(); 33 } 34 35 40 private void initComponents() { 42 43 setName(org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Message")); 45 mergeEndRepositoryFolderLabel.setLabelFor(mergeEndUrlComboBox); 46 org.openide.awt.Mnemonics.setLocalizedText(mergeEndRepositoryFolderLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_RepositoryFolder")); 48 mergeAfterRevisionLabel.setIcon(new javax.swing.ImageIcon (getClass().getResource("/org/netbeans/modules/subversion/resources/icons/ending_revision.png"))); 49 mergeAfterRevisionLabel.setLabelFor(mergeEndRevisionTextField); 50 org.openide.awt.Mnemonics.setLocalizedText(mergeAfterRevisionLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_EndingRevision")); 52 org.openide.awt.Mnemonics.setLocalizedText(mergeAfterEmptyLabel, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_EmptyHint")); 54 mergeEndUrlComboBox.setEditable(true); 55 56 org.openide.awt.Mnemonics.setLocalizedText(mergeEndBrowseButton, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Browse")); 58 org.openide.awt.Mnemonics.setLocalizedText(mergeEndSearchButton, org.openide.util.NbBundle.getMessage(MergeSinceOriginPanel.class, "CTL_MergeSincePanel_Search")); 60 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 61 this.setLayout(layout); 62 layout.setHorizontalGroup( 63 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 64 .add(layout.createSequentialGroup() 65 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 66 .add(mergeAfterRevisionLabel) 67 .add(mergeEndRepositoryFolderLabel)) 68 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 69 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 70 .add(layout.createSequentialGroup() 71 .add(mergeAfterEmptyLabel) 72 .addContainerGap()) 73 .add(layout.createSequentialGroup() 74 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 75 .add(layout.createSequentialGroup() 76 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 77 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 78 .add(mergeEndSearchButton)) 79 .add(mergeEndUrlComboBox, 0, 309, Short.MAX_VALUE)) 80 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 81 .add(mergeEndBrowseButton)))) 82 ); 83 layout.setVerticalGroup( 84 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 85 .add(layout.createSequentialGroup() 86 .addContainerGap() 87 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 88 .add(mergeEndBrowseButton) 89 .add(mergeEndRepositoryFolderLabel) 90 .add(mergeEndUrlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 91 .add(7, 7, 7) 92 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 93 .add(mergeAfterRevisionLabel) 94 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 95 .add(mergeEndRevisionTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 96 .add(mergeEndSearchButton))) 97 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 98 .add(mergeAfterEmptyLabel) 99 .addContainerGap()) 100 ); 101 102 mergeEndRepositoryFolderLabel.getAccessibleContext().setAccessibleDescription("Repository Folder"); 103 mergeAfterRevisionLabel.getAccessibleContext().setAccessibleDescription("End Revision for Merging"); 104 mergeEndRevisionTextField.getAccessibleContext().setAccessibleName("End Revision"); 105 mergeEndRevisionTextField.getAccessibleContext().setAccessibleDescription("End Revision"); 106 mergeEndUrlComboBox.getAccessibleContext().setAccessibleName("Repository URL "); 107 mergeEndUrlComboBox.getAccessibleContext().setAccessibleDescription("Repository URL"); 108 mergeEndBrowseButton.getAccessibleContext().setAccessibleDescription("Browse Repository URL"); 109 mergeEndSearchButton.getAccessibleContext().setAccessibleDescription("Search Revision for Merging"); 110 } 112 113 final javax.swing.JLabel mergeAfterEmptyLabel = new javax.swing.JLabel (); 115 final javax.swing.JLabel mergeAfterRevisionLabel = new javax.swing.JLabel (); 116 final javax.swing.JButton mergeEndBrowseButton = new javax.swing.JButton (); 117 final javax.swing.JLabel mergeEndRepositoryFolderLabel = new javax.swing.JLabel (); 118 final javax.swing.JTextField mergeEndRevisionTextField = new javax.swing.JTextField (); 119 final javax.swing.JButton mergeEndSearchButton = new javax.swing.JButton (); 120 final javax.swing.JComboBox mergeEndUrlComboBox = new javax.swing.JComboBox (); 121 123 } 124 | Popular Tags |