git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@662 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-08-08 20:16:34 +00:00
parent 157b62d719
commit fe9aeaf920
2 changed files with 3 additions and 5 deletions

View File

@ -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 "";
}

View File

@ -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();