I just found the best IDE

[quote]But if there’s a way to doing this with Eclipse I’d love to know!
[/quote]
There are several ways of coping with that situation:

Firstly, you can just close all the projects you don’t need, turning them into closed-folder icons. They don’t go away, but they stay out of your way.

Secondly, you can hide them - either close them and filter out closed projects, or create a working set just containing the projects you’re currently dealing with. This removes them entirely from the view, but if you’re changing global workspace settings you’ll be affecting them in some way.

The third and cleanest way is to use multiple workspaces - start eclipse with the “-data c:/path/to/workspace” option. This allows you to configure several different shortcuts that operate in entirely different worlds - no changes you make in one will affect the other, excepting changing the Eclipse or Java installation, or modifiying external libraries.

Depending on what you’re after you can use a couple of these techniques together. My webdev and game-dev workspaces are entirely seperate, but within game-dev I’ll probably only have one project open at a time, the rest I leave closed.

Edit: But I can’t solve the SWT problem, sorry! ;D

[quote]The third and cleanest way is to use multiple workspaces - start eclipse with the “-data c:/path/to/workspace” option. This allows you to configure several different shortcuts that operate in entirely different worlds
[/quote]
If anyone knows how to do this with the Mac version let me know. “Shortcuts” on the mac are just symlinks… there is no place for parameters. Since Mac apps don’t have the concept of command line parameters this is awkward. The workspace folder is specified in an xml config file for the Eclipse application. There is only one such file.

I will try the working set and hide filter ideas though. Now to find how to create a working set…

[quote]The workspace folder is specified in an xml config file for the Eclipse application. There is only one such file.
[/quote]
fx:sound of a thousand hands hitting a thousand foreheads.

Doh! ::slight_smile: That’s an interesting enough question that I’ll have a look myself. The documentation at eclipse.org is frankly shameful, and the mailinglists aren’t worth trawling through, but the answer must be out there somewhere!

Edit: Looks like you’re out of luck. Back in 2002 it was commented that the whole “-data” concept should be fixed, but obviously nothing happened about it. The best advice I can find is to duplicate the Eclipse application bundle, so you have a different Eclipse “installation” per workspace. Which sucks. :frowning:

[quote]I will try the working set and hide filter ideas though. Now to find how to create a working set…
[/quote]
In case you relish the chase and don’t want me to spoil it, I’ll post the answer in pig-Latin:

Inway ethay ackagepay explorerway, ickclay ethay ownday arrowway inway ethay enumay arbay. Ickclay “Electsay Orkingway Etsay”, “Ewnay”, “Avajay”, andway eckchay ethay ojectspray ouyay antway.

I really want the multiple workspace thing… since it is great when I have two copies of the same project. E.g. development and maintenance branches.

You can do that in Eclipse just fine. The CVS integration is excellent too for that kind of thing.

Is it just me or is cvsnt a bit flaky compared to the unixy version?

Cas :slight_smile:

To do that with Eclipse I have to name the project differently and put them in the same workspace… at least if I want to work efficiently with the Mac version.

If my source repository has a ‘development’ folder and a ‘maintenance’ folder with the same folder names (one for each project) underneath those, then it seems that Eclipse doesn’t handle that well. It likes to have the project folder in the root of the workspace.

Now that I think about it, I guess there might be a way to force it to use a particular folder that is deeper in the workspace… I’m not sure.

Of course this is really only theoretical for me at this point. I use SourceSafe (there is a nice plugin for Eclipse) on Windows for my main work development. (I can’t access SourceSafe from the Mac at all. I don’t use CVS because from what I have seen it is harder to use and lacks features. I’m would try Subversion but it didn’t build on my Mac last time I tried.)

We like theoretical. ;D

In Eclipse’s CVS view you should be able to drill down and select any particular folder for checkout. Also, you should be able to check any folder out into a project of any name you choose.

Nesting projects is a bit harder - I don’t think it allows that, does it? Regardless, you’d probably be better off keeping the branches in seperate locations and modifying the reference to whichever you’re currently using instead. But I don’t know your situation/setup!

[quote]Regardless, you’d probably be better off keeping the branches in seperate locations and modifying the reference to whichever you’re currently using instead.
[/quote]
Doesn’t this come full circle back to the original problem?

(Note to self: stop misspelling “separate”, you moron!)

Ah, no. I mean “separate” as opposed to “nested” - check the two branches out into their own (differently named) “projects” in the same workspace. Any project that uses this code but needs to be able to switch between branches can use classpath variables, project dependencies etc to do so. I haven’t tried this myself, but I have a feeling it would “work”.

Unfortunately this is rather contrived and a bit of a hack, but I can’t think of a cleaner way of doing it right now. Anyone?

Strikes me the only problem that there actually is is calling the folders the same names…

Cas :slight_smile:

Yeah, that’s it exactly… It just happens that my source control database is set up with a Development fodler and a Maintenance folder with identical projects within. Eclipse doesn’t like to see those folders inside the workspace. Rather they should be the root of the workspace - but obvioulsy bothof them can’t be.

I can work around it by overriding the working folder that I check out to so that the Maintenance branch has the version number appended to the project name or something.

OMG !!!

I’ve just tried Gel…

This IDE is, IMO, the greatest Java IDE ever ! Adopted for life !

It works like VS.NET’s IDE (the best one on earth), and I especially like the code completion which shows the description.

ok I finally moved over to Gel, from JCreator, and I’ve got a problem.

The PrettyPrinter plugin for JRefactory is misbehaving,
The first time I run it, all is fine - it formats the class I have open.
However, all subsequent attempts result in a ‘cannot parse file’ error, and thats it :frowning:
Not a very helpful error message >:(

I have tried using both JRefactory 2.9.9 (most recent stable) and 2.9.18 (most recent unstable), but it made no difference what-so-ever.

So, my question - has any1 got the PrettyPrinter plugin in Gel working correctly?

intelliJ

[quote]Heresy! It’s not written in Java! :wink:

But seriously, one of the things I value in NetBeans and Eclipse is that they are both platforms bigger than simple IDEs and that they can self-host stuff you are debugging be it a IDE extension or a Java web server like Tomcat, is awesomely useful. My only complaint against Eclipse is the lack of ‘big project’ state - i.e., only one user context - oh and the SWT (I’m a Swing fan).
[/quote]
Go to the Eclipse plug-in catalogue. You will find many visual Swing development plug-ins