Révision 3616

TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchAdvisor.java (revision 3616)
236 236
						}
237 237
						
238 238
						// CREATE THE CLOSE CONTROL FILE
239
						if (new File("txm_was_not_closed_correctly.lock").exists()) { // the close control file was not deleted //$NON-NLS-1$
239
						File lockFile = new File(ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().getAbsolutePath(), "txm_was_not_closed_correctly.lock");
240
						if (lockFile.exists()) { // the close control file was not deleted //$NON-NLS-1$
240 241
							
241
							File checkupResultFile = new File("startup_diagnostic_"+Toolbox.dateformat.format(new Date())+".txt"); //$NON-NLS-1$ //$NON-NLS-2$
242
							File checkupResultFile = new File(ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile().getAbsolutePath(), "startup_diagnostic_"+Toolbox.dateformat.format(new Date())+".txt"); //$NON-NLS-1$ //$NON-NLS-2$
242 243
							this.syncExec(new Runnable() {
243 244
								@Override
244 245
								public void run() {
......
254 255
									if (choice == 2) {
255 256
										org.txm.rcp.handlers.files.EditFile.openfile(checkupResultFile);
256 257
									}
257
									
258 258
								}
259 259
							});
260
							new File("txm_was_not_closed_correctly.lock").delete(); //$NON-NLS-1$
260
							lockFile.delete(); //$NON-NLS-1$
261 261
						}
262
						new File("txm_was_not_closed_correctly.lock").createNewFile(); //$NON-NLS-1$
262
						lockFile.createNewFile(); //$NON-NLS-1$
263 263
						
264 264
						Log.info(TXMUIMessages.info_txmIsReady);
265 265
						monitor.done();

Formats disponibles : Unified diff