Pasting a CVS URL

There are a great many features in Eclipse that I take for granted. One is the handy way that the "Add CVS Repository" wizard handles CVS URLs. The wizard is opened from the "CVS Repositories" view, by selecting menu item "New > Repository location…".

When you first see the wizard, it looks like you have to cut and paste the different bits of your CVS URL into the different fields.
However, if you just paste your URL into the first field, it automagically parses the bits out and populates all the fields appropriately. For example, pasting the CVS URL, ":pserver:anonymous@dev.eclipse.org:/cvsroot/org.eclipse", fills in the fields as follows:

I don’t do this very often, but it’s sure handy when I do…

2 Responses to “Pasting a CVS URL”

  1. AlBlue Says:

    Yup, it’s a good tip. Feel free to post it onto the EclipseZone Tips’n'Tricks forum if you want ;-)

    You can also past snippets of Java code into an Eclipse Java project, too. So if you were to paste:

    — 8< ---
    package com.example.hello;
    public class World {
    public static void main(String args[]) {
    System.out.println(”Hello, World!”);
    }
    }
    — 8< ---

    then you’d have a runnable example, just like that :-)

  2. Willian Says:

    On Eclipse 3.3 you can just paste it directly on CVS Repositories view.

    See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=157250

Leave a Reply

You must be logged in to post a comment.