Jonathan Night

Greenhorn
+ Follow
since Jun 07, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jonathan Night

Thanks a bunch! Worked like a charm... Now I just gotta deal with Java.lang.StackOverflowError... Possibly the greater of the two evils...
19 years ago
I am trying to make an Array of ArrayLists...
Since I have 3 ArrayLists I want to make I thought it would be something like this...

ArrayList [] ReadyList = new ArrayList[3]();

So that I can make calls like this:

ReadyList[0].get(x);
or ReadyList[1].get(x);
or ReadyList[2].get(x);

If you're curious, the 3 arrays are supposed to represent events of priority 0, 1, and 2. If you know how I can do this I would really appreciate it. Thanks a bunch!
19 years ago
In the eclipse "plug-in with a popup menu" example, how would I go about extending the functionality so that a dialog box pops up saying the name of the file / resource I just clicked on? Thanks for any tips. Looking at the code I can't tell how it knows which file I clicked on...
I didn't know it was possible to run the default app with rundll32... I thought the only way to do it was via the java exec Runtime. Thanks for teaching me something new.
19 years ago
I am building an Eclipse Plug-in that connects to the CVS Repository and associates file authorship to a normal call graph.

I found another plug-in, CVSGrapher (CVSGrapher Homepage), that does something similar in connecting to a CVS repository and connecting authorship to revisions.

After running the CVSGrapher plug-in and looking at the source code, it seemed like the following was how it did it but I could not be sure: (in a much shortened form) This is from the CvsGraphEditor.java file.

import org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot;

IResource resource = (IResource) getEditorInput().getAdapter(IResource.class);
if (resource instanceof IFile)
{
IFile file = (IFile) resource;
if (teamProvider != null)
{
try
{ _remoteFile = (ICVSRemoteFile)CVSWorkspaceRoot.getRemoteResourceFor(file);
...// close try, etc.

private ILogEntry[] _entries = _remoteFile.getLogEntries(monitor);

And from there _entries gets converted it into an Array of log entries from which it is possible to call (entries.)getAuthor(); on each of them or whatever data you wanted to pull (I think?) ...

If there is a more simple, straight-forward way to

1) connect to a CVS repository
and
2) get the file authorship information for all/each of the files

I would really appreciate knowing. Thank you very much.



[ June 07, 2004: Message edited by: Jonathan Night ]
[ June 07, 2004: Message edited by: Jonathan Night ]
19 years ago