Project

General

Profile

« Previous | Next » 

Revision 2386

Formatting improvements.

View differences:

src/edu/ucsb/nceas/metacat/harvesterClient/HarvestListEditor.java
238 238

  
239 239
    docPane = new JScrollPane(table);
240 240
    getContentPane().add(docPane, BorderLayout.CENTER);
241
    
242
    cutButton = new JButton("Cut");
243
    copyButton = new JButton("Copy");
244
    pasteButton = new JButton("Paste");
245
    pasteDefaultsButton = new JButton("Paste Defaults");
241 246

  
242
		cutButton = new JButton("Cut");
243
		copyButton = new JButton("Copy");
244
		pasteButton = new JButton("Paste");
245
		pasteDefaultsButton = new JButton("Paste Defaults");
246

  
247 247
    // Action listener for the Copy button.    
248 248
    copyButton.addActionListener(new ActionListener() {
249 249
      public void actionPerformed(ActionEvent ae) {				
......
328 328
    catch (IOException ioe) {
329 329
      System.out.println("Error creating temporary file: " + ioe.getMessage());
330 330
    }
331

  
332
		setVisible(true);
331
    
332
    setVisible(true);
333 333
  }
334 334

  
335 335

  
src/edu/ucsb/nceas/metacat/harvesterClient/HarvestLog.java
164 164
    String dequotedMessage = harvester.dequoteText(message);
165 165
    String insertString;
166 166
    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MMM-yyyy");
167
		Statement stmt;
167
    Statement stmt;
168 168

  
169 169
    insertString = "INSERT INTO HARVEST_LOG " +
170 170
                   "(HARVEST_LOG_ID, HARVEST_DATE, STATUS, MESSAGE," +
......
177 177
                   "'" + harvestOperationCode + "', " +
178 178
                   siteScheduleID +
179 179
                   ")";
180
                   
181
		try {
182
			stmt = conn.createStatement();							
183
			stmt.executeUpdate(insertString);
184
			stmt.close();
185
		}
180
    try {
181
      stmt = conn.createStatement();
182
      stmt.executeUpdate(insertString);
183
      stmt.close();
184
    }
186 185
    catch(SQLException e) {
187
			System.out.println("SQLException: " + e.getMessage());
188
		}
186
      System.out.println("SQLException: " + e.getMessage());
187
    }
189 188
  }
190 189
  
191 190

  

Also available in: Unified diff