private void delete()
{
try
{
setAbortable(true);
String[] args = { path1 };
setStatus(jEdit.getProperty("vfs.status.deleting",args));
try
{
path1 = vfs._canonPath(session,path1,browser);
if(!vfs._delete(session,path1,browser))
VFSManager.error(browser,path1,"ioerror.delete-error",null);
}
catch(IOException io)
{
setAbortable(false);
Log.log(Log.ERROR,this,io);
String[] pp = { io.toString() };
VFSManager.error(browser,path1,"ioerror.directory-error",pp);
}
}
catch(WorkThread.Abort a)
{
}
finally
{
try
{
vfs._endVFSSession(session,browser);
}
catch(IOException io)
{
setAbortable(false);
Log.log(Log.ERROR,this,io);
String[] pp = { io.toString() };
VFSManager.error(browser,path1,"ioerror.directory-error",pp);
private void mkdir()
{
try
{
setAbortable(true);
String[] args = { path1 };
setStatus(jEdit.getProperty("vfs.status.mkdir",args));
try
{
path1 = vfs._canonPath(session,path1,browser);
if(!vfs._mkdir(session,path1,browser))
VFSManager.error(browser,path1,"ioerror.mkdir-error",null);
}
catch(IOException io)
{
setAbortable(false);
Log.log(Log.ERROR,this,io);
args[0] = io.toString();
VFSManager.error(browser,path1,"ioerror",args);
}
}
catch(WorkThread.Abort a)
{
}
finally
{
try
{
vfs._endVFSSession(session,browser);
}
catch(IOException io)
{
setAbortable(false);
Log.log(Log.ERROR,this,io);
String[] args = { io.toString() };
VFSManager.error(browser,path1,"ioerror",args);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/browser/BrowserIORequest.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/browser/BrowserIORequest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | private void delete()↵ | | 1 | private void mkdir()↵
|
2 | {↵ | | 2 | {↵
|
3 | try↵ | | 3 | try↵
|
4 | {↵ | | 4 | {↵
|
5 | setAbortable(true);↵ | | 5 | setAbortable(true);↵
|
6 | String[] args = { path1 };↵ | | 6 | String[] args = { path1 };↵
|
7 | setStatus(jEdit.getProperty("vfs.status.deleting",args));↵ | | 7 | setStatus(jEdit.getProperty("vfs.status.mkdir",args));↵
|
|
8 | try↵ | | 8 | try↵
|
9 | {↵ | | 9 | {↵
|
10 | path1 = vfs._canonPath(session,path1,browser);↵ | | 10 | path1 = vfs._canonPath(session,path1,browser);↵
|
|
|
11 | if(!vfs._delete(session,path1,browser))↵ | | 11 | if(!vfs._mkdir(session,path1,browser))↵
|
12 | VFSManager.error(browser,path1,"ioerror.delete-error",null);↵ | | 12 | VFSManager.error(browser,path1,"ioerror.mkdir-error",null);↵
|
13 | }↵ | | 13 | }↵
|
14 | catch(IOException io)↵ | | 14 | catch(IOException io)↵
|
15 | {↵ | | 15 | {↵
|
16 | setAbortable(false);↵ | | 16 | setAbortable(false);↵
|
17 | Log.log(Log.ERROR,this,io);↵ | | 17 | Log.log(Log.ERROR,this,io);↵
|
18 | String[] pp = { io.toString() };↵ | | 18 | args[0] = io.toString();↵
|
19 | VFSManager.error(browser,path1,"ioerror.directory-error",pp);↵ | | 19 | VFSManager.error(browser,path1,"ioerror",args);↵
|
20 | }↵ | | 20 | }↵
|
21 | }↵ | | 21 | }↵
|
22 | catch(WorkThread.Abort a)↵ | | 22 | catch(WorkThread.Abort a)↵
|
23 | {↵ | | 23 | {↵
|
24 | }↵ | | 24 | }↵
|
25 | finally↵ | | 25 | finally↵
|
26 | {↵ | | 26 | {↵
|
27 | try↵ | | 27 | try↵
|
28 | {↵ | | 28 | {↵
|
29 | vfs._endVFSSession(session,browser);↵ | | 29 | vfs._endVFSSession(session,browser);↵
|
30 | }↵ | | 30 | }↵
|
31 | catch(IOException io)↵ | | 31 | catch(IOException io)↵
|
32 | {↵ | | 32 | {↵
|
33 | setAbortable(false);↵ | | 33 | setAbortable(false);↵
|
34 | Log.log(Log.ERROR,this,io);↵ | | 34 | Log.log(Log.ERROR,this,io);↵
|
35 | String[] pp = { io.toString() };↵ | | 35 | String[] args = { io.toString() };↵
|
36 | VFSManager.error(browser,path1,"ioerror.directory-error",pp);↵ | | 36 | VFSManager.error(browser,path1,"ioerror",args);↵
|
37 | | | 37 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |