Changeset 1505
- Timestamp:
- 17/08/10 15:17:39 (18 months ago)
- Location:
- trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate
- Files:
-
- 6 edited
-
BulkLoadFilesFrame.form (modified) (3 diffs)
-
BulkLoadFilesFrame.java (modified) (4 diffs)
-
FileLoadingActions.java (modified) (1 diff)
-
NXLoadFilesDialog.java (modified) (10 diffs)
-
NXvalidateFrame.form (modified) (5 diffs)
-
NXvalidateFrame.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/BulkLoadFilesFrame.form
r1504 r1505 74 74 </Group> 75 75 </Group> 76 <EmptySpace pref="1 5" max="32767" attributes="0"/>76 <EmptySpace pref="17" max="32767" attributes="0"/> 77 77 </Group> 78 78 </Group> … … 101 101 <Component class="javax.swing.JButton" name="loadNXDCButton"> 102 102 <Properties> 103 <Property name="text" type="java.lang.String" value="Load NXD C"/>103 <Property name="text" type="java.lang.String" value="Load NXDL"/> 104 104 <Property name="actionCommand" type="java.lang.String" value="Load NXDL"/> 105 105 </Properties> … … 130 130 <Property name="text" type="java.lang.String" value="Cancel"/> 131 131 </Properties> 132 <Events> 133 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cancelButtonActionPerformed"/> 134 </Events> 132 135 </Component> 133 136 <Component class="javax.swing.JCheckBox" name="jCheckBox1"> -
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/BulkLoadFilesFrame.java
r1504 r1505 74 74 jPanel1.setVerifyInputWhenFocusTarget(false); 75 75 76 loadNXDCButton.setText("Load NXD C");76 loadNXDCButton.setText("Load NXDL"); 77 77 loadNXDCButton.setActionCommand("Load NXDL"); 78 78 loadNXDCButton.addActionListener(new java.awt.event.ActionListener() { … … 97 97 98 98 cancelButton.setText("Cancel"); 99 cancelButton.addActionListener(new java.awt.event.ActionListener() { 100 public void actionPerformed(java.awt.event.ActionEvent evt) { 101 cancelButtonActionPerformed(evt); 102 } 103 }); 99 104 100 105 jCheckBox1.setText("Load files only."); … … 125 130 .addGap(33, 33, 33) 126 131 .addComponent(validateButton))) 127 .addContainerGap(1 5, Short.MAX_VALUE))132 .addContainerGap(17, Short.MAX_VALUE)) 128 133 ); 129 134 jPanel1Layout.setVerticalGroup( … … 343 348 }//GEN-LAST:event_jCheckBox1ActionPerformed 344 349 350 private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed 351 if (evt.getSource() == cancelButton) { 352 this.setVisible(false); 353 } 354 }//GEN-LAST:event_cancelButtonActionPerformed 355 345 356 /** 346 357 * @param args the command line arguments -
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/FileLoadingActions.java
r1504 r1505 297 297 isNotBulk = true; 298 298 loadFile(); 299 domTree.updateTree(); 299 300 } else if (which == 2) { 300 301 isNotBulk = true; 301 302 validateFile(); 303 domTree.updateTree(); 302 304 } else if (which == 3) { 303 305 bulkCheck(); -
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXLoadFilesDialog.java
r1504 r1505 9 9 * Created on 16-Jun-2010, 11:56:31 10 10 */ 11 12 11 package org.nexusformat.nxvalidate; 13 12 … … 16 15 /** 17 16 * 18 * @author ser6517 * @author Stephen Rankin 19 18 */ 20 19 public class NXLoadFilesDialog extends javax.swing.JDialog { … … 23 22 private File nxdl = null; 24 23 private boolean OKButtonUsed = false; 24 25 25 /** Creates new form NXLoadFilesDialog */ 26 26 public NXLoadFilesDialog(java.awt.Frame parent, boolean modal) { … … 150 150 private void openButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openButton1ActionPerformed 151 151 152 if (evt.getSource() == openButton1){152 if (evt.getSource() == openButton1) { 153 153 154 154 int returnVal = jFileChooser1.showOpenDialog(this); … … 167 167 private void openButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openButton2ActionPerformed 168 168 169 if (evt.getSource() == openButton2){169 if (evt.getSource() == openButton2) { 170 170 171 171 int returnVal = jFileChooser1.showOpenDialog(this); … … 183 183 184 184 private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed 185 if (evt.getSource() == cancelButton){185 if (evt.getSource() == cancelButton) { 186 186 OKButtonUsed = false; 187 187 this.setVisible(false); … … 190 190 191 191 private void OKButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKButtonActionPerformed 192 193 if(evt.getSource() == OKButton){ 192 if (evt.getSource() == OKButton) { 194 193 OKButtonUsed = true; 195 194 this.setVisible(false); … … 197 196 }//GEN-LAST:event_OKButtonActionPerformed 198 197 199 public File getNXSFile() {198 public File getNXSFile() { 200 199 return nxs; 201 200 } 202 public File getNXDLFile(){ 201 202 public File getNXDLFile() { 203 203 return nxdl; 204 204 } 205 205 206 public boolean OKButtonUsed() {206 public boolean OKButtonUsed() { 207 207 return OKButtonUsed; 208 208 } 209 209 210 210 /** 211 * @param args the command line arguments212 */211 * @param args the command line arguments 212 */ 213 213 public static void main(String args[]) { 214 214 java.awt.EventQueue.invokeLater(new Runnable() { 215 215 216 public void run() { 216 217 NXLoadFilesDialog dialog = new NXLoadFilesDialog(new javax.swing.JFrame(), true); 217 218 dialog.addWindowListener(new java.awt.event.WindowAdapter() { 219 218 220 public void windowClosing(java.awt.event.WindowEvent e) { 219 221 System.exit(0); … … 224 226 }); 225 227 } 226 227 228 // Variables declaration - do not modify//GEN-BEGIN:variables 228 229 private javax.swing.JButton OKButton; … … 237 238 private javax.swing.JButton openButton2; 238 239 // End of variables declaration//GEN-END:variables 239 240 240 } -
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXvalidateFrame.form
r1504 r1505 32 32 <MenuItem class="javax.swing.JMenuItem" name="openFilesMenuItem"> 33 33 <Properties> 34 <Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor"> 35 <KeyStroke key="Ctrl+F"/> 36 </Property> 34 37 <Property name="text" type="java.lang.String" value="Open Files"/> 35 38 </Properties> … … 67 70 <MenuItem class="javax.swing.JMenuItem" name="validateSelectedMenuItem"> 68 71 <Properties> 72 <Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor"> 73 <KeyStroke key="Ctrl+V"/> 74 </Property> 69 75 <Property name="text" type="java.lang.String" value="Validate Selected"/> 70 76 </Properties> … … 77 83 <MenuItem class="javax.swing.JMenuItem" name="filterMenuItem"> 78 84 <Properties> 85 <Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor"> 86 <KeyStroke key="Ctrl+G"/> 87 </Property> 79 88 <Property name="text" type="java.lang.String" value="Filter Good Values"/> 80 89 </Properties> … … 84 93 <MenuItem class="javax.swing.JMenuItem" name="bulkMenuItem"> 85 94 <Properties> 95 <Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor"> 96 <KeyStroke key="Ctrl+B"/> 97 </Property> 86 98 <Property name="text" type="java.lang.String" value="Bulk Validation"/> 87 99 </Properties> … … 109 121 <MenuItem class="javax.swing.JMenuItem" name="helpMenuItem"> 110 122 <Properties> 123 <Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor"> 124 <KeyStroke key="Ctrl+H"/> 125 </Property> 111 126 <Property name="text" type="java.lang.String" value="Help Content"/> 112 127 </Properties> -
trunk/applications/NXconvertpy/src/org/nexusformat/nxvalidate/NXvalidateFrame.java
r1504 r1505 221 221 fileMenu.setText(bundle.getString("fileMenuItem")); // NOI18N 222 222 223 openFilesMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK)); 223 224 openFilesMenuItem.setText("Open Files"); 224 225 openFilesMenuItem.addActionListener(new java.awt.event.ActionListener() { … … 251 252 toolsMenu.setText("Tools"); 252 253 254 validateSelectedMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK)); 253 255 validateSelectedMenuItem.setText("Validate Selected"); 254 256 validateSelectedMenuItem.addActionListener(new java.awt.event.ActionListener() { … … 260 262 toolsMenu.add(jSeparator2); 261 263 264 filterMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK)); 262 265 filterMenuItem.setText("Filter Good Values"); 263 266 toolsMenu.add(filterMenuItem); 264 267 toolsMenu.add(jSeparator1); 265 268 269 bulkMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK)); 266 270 bulkMenuItem.setText("Bulk Validation"); 267 271 bulkMenuItem.addActionListener(new java.awt.event.ActionListener() { … … 285 289 helpMenu.setText("Help"); 286 290 291 helpMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.CTRL_MASK)); 287 292 helpMenuItem.setText("Help Content"); 288 293 helpMenu.add(helpMenuItem);
Note: See TracChangeset
for help on using the changeset viewer.
