Table model and default directory bugs fixed.
1.1 --- a/vcs.advanced/src/org/netbeans/modules/vcs/advanced/VcsCustomizer.java Thu Mar 21 09:55:52 2002 +0000
1.2 +++ b/vcs.advanced/src/org/netbeans/modules/vcs/advanced/VcsCustomizer.java Thu Mar 21 11:03:45 2002 +0000
1.3 @@ -756,6 +756,29 @@
1.4
1.5 envScrollPane.setPreferredSize(new java.awt.Dimension(10, 10));
1.6 envTable.setToolTipText(org.openide.util.NbBundle.getBundle(VcsCustomizer.class).getString("ACS_userEnvTable.textA11yDesc"));
1.7 + envTable.setModel(new javax.swing.table.DefaultTableModel(
1.8 + new Object [][] {
1.9 + {null, null},
1.10 + {null, null},
1.11 + {null, null}
1.12 + },
1.13 + new String [] {
1.14 + "Variable Name", "Variable Value"
1.15 + }
1.16 + ) {
1.17 + Class[] types = new Class [] {
1.18 + java.lang.String.class, java.lang.String.class
1.19 + };
1.20 + boolean[] canEdit = new boolean [] {
1.21 + false, true
1.22 + };
1.23 + public Class getColumnClass(int columnIndex) {
1.24 + return types [columnIndex];
1.25 + }
1.26 + public boolean isCellEditable(int rowIndex, int columnIndex) {
1.27 + return canEdit [columnIndex];
1.28 + }
1.29 + });
1.30 envTable.setPreferredScrollableViewportSize(new java.awt.Dimension(0, 0));
1.31 envScrollPane.setViewportView(envTable);
1.32
1.33 @@ -813,6 +836,32 @@
1.34
1.35 systemEnvScrollPane.setPreferredSize(new java.awt.Dimension(32, 32));
1.36 systemEnvTable.setToolTipText(org.openide.util.NbBundle.getBundle(VcsCustomizer.class).getString("ACS_systemEnvTable.textA11yDesc"));
1.37 + systemEnvTable.setModel(new javax.swing.table.DefaultTableModel(
1.38 + new Object [][] {
1.39 + {null, null, null},
1.40 + {null, null, null},
1.41 + {null, null, null},
1.42 + {null, null, null}
1.43 + },
1.44 + new String [] {
1.45 + "Variable Name", "Variable Value", "Use in VCS"
1.46 + }
1.47 + ) {
1.48 + Class[] types = new Class [] {
1.49 + java.lang.String.class, java.lang.String.class, java.lang.Boolean.class
1.50 + };
1.51 + boolean[] canEdit = new boolean [] {
1.52 + false, false, true
1.53 + };
1.54 +
1.55 + public Class getColumnClass(int columnIndex) {
1.56 + return types [columnIndex];
1.57 + }
1.58 +
1.59 + public boolean isCellEditable(int rowIndex, int columnIndex) {
1.60 + return canEdit [columnIndex];
1.61 + }
1.62 + });
1.63 systemEnvTable.setPreferredScrollableViewportSize(new java.awt.Dimension(0, 0));
1.64 systemEnvScrollPane.setViewportView(systemEnvTable);
1.65
1.66 @@ -2068,7 +2117,7 @@
1.67 } catch (IOException ioExc) {}
1.68 }
1.69 cache = new ProfilesCache(fileSystem.getConfigRootFO());
1.70 - rootDirTextField.setText (""/*defaultRoot*/);
1.71 + rootDirTextField.setText (defaultRoot);
1.72 lastRootDir = defaultRoot;
1.73 refreshTextField.setText (""+fileSystem.getCustomRefreshTime ()); // NOI18N
1.74 String module = fileSystem.getRelativeMountPoint();