Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Lockfile is created on opening a visual class using visual editor
Lockfile is created on opening a visual class using visual editor [message #615086] Fri, 23 February 2007 11:56
Igor is currently offline IgorFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

the following lines of code are in my visual class:

...
public static String lockfilename = "drucken-lock";
...

public void WriteLockFile() {
try {
FileWriter out = new FileWriter(lockfilename);
int cnt = 0;
out.write(cnt + ": " + "\n");
out.close();
}
catch (IOException e) {
System.out.println("Fehler: Datei " + e.toString());
}
}

If I open my class in eclipse using the visual editor a file
"drucken-lock" is written into the project folder. This file is empty (0
bytes) and locked by the system. Only after closing the editor pane is it
possible to delete the file.
If I open the same class in the eclipse java editor nothing happens.

Is there any solution to this? I can't execute my application inside
eclipse if this lock file exists beforehand.

Thank you
Igor
Previous Topic:Removing/Hiding Java Source Code Window in Visual Editor
Next Topic:Lockfile is created on opening a visual class using visual editor
Goto Forum:
  


Current Time: Sat Nov 29 04:03:59 GMT 2014

Powered by FUDForum. Page generated in 0.08930 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software