forked from phoedos/pmd
tweak
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@662 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -110,8 +110,8 @@ public class CPD {
|
||||
Iterator i = results.getOccurrences(tile);
|
||||
TokenEntry firstToken = (TokenEntry)i.next();
|
||||
TokenList tl = tokenSets.getTokenList(firstToken);
|
||||
int endLine = firstToken.getBeginLine()+ results.getTileLineCount(tile, tokenSets)-1;
|
||||
return tl.getSlice(firstToken.getBeginLine()-1, endLine);
|
||||
int endLine = firstToken.getBeginLine()+ results.getTileLineCount(tile, tokenSets);
|
||||
return tl.getSlice(firstToken.getBeginLine()-1, endLine-1);
|
||||
} catch (Exception ex) {ex.printStackTrace(); }
|
||||
return "";
|
||||
}
|
||||
|
@ -48,10 +48,8 @@ public class GUI implements CPDListener {
|
||||
}
|
||||
|
||||
//private JTextField rootDirectoryField= new JTextField("C:\\data\\datagrabber\\datagrabber\\src\\org\\cougaar\\mlm\\ui\\newtpfdd\\transit\\");
|
||||
private JTextField rootDirectoryField= new JTextField("c:\\data\\pmd\\pmd\\src\\net\\sourceforge\\pmd\\rules\\");
|
||||
|
||||
//private JTextField rootDirectoryField = new JTextField(System.getProperty("user.home"));
|
||||
//private JTextField rootDirectoryField= new JTextField("c:\\data\\cougaar\\core\\src");
|
||||
private JTextField rootDirectoryField= new JTextField("c:\\data\\cougaar\\core\\src");
|
||||
private JTextField minimumLengthField= new JTextField("30");
|
||||
|
||||
private JProgressBar tokenizingFilesBar = new JProgressBar();
|
||||
|
Reference in New Issue
Block a user