Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSource browsing on java files outside of workspace
https://www.eclipse.org/forums/index.php/mv/msg/210501/675795/#msg_675795
We have source code organized into two big workspaces (let's call it A and B). Projects in both workspaces will end up being deployed and running on the same platform. When people develop on projects in workspace A, they also want to be able to do the following thins in the java files in workspace B:
1. Open the source code in workspace B;
2. Use the "Open Type" feature to find classes in workspace B;
3. Find call hierarchy for a certain API from both workspace A and B;
I know in eclipse, we need a java file to be in the workspace or in the classpath to do all those things. Is there any way, e.g. extension point, that we can provide extra search path to eclipse, so that eclipse can do what I said above?
Thanks.
]]>Raymond Mising name2011-06-01T14:26:28-00:00Re: Source browsing on java files outside of workspace
https://www.eclipse.org/forums/index.php/mv/msg/210501/675827/#msg_675827
> Hey guys,
>
> We have source code organized into two big workspaces (let's call it A
> and B). Projects in both workspaces will end up being deployed and
> running on the same platform. When people develop on projects in
> workspace A, they also want to be able to do the following thins in
> the java files in workspace B:
> 1. Open the source code in workspace B;
> 2. Use the "Open Type" feature to find classes in workspace B;
> 3. Find call hierarchy for a certain API from both workspace A and B;
>
> I know in eclipse, we need a java file to be in the workspace or in
> the classpath to do all those things. Is there any way, e.g. extension
> point, that we can provide extra search path to eclipse, so that
> eclipse can do what I said above?
Why don't you combine the projects into one workspace?
Dani
>
> Thanks.
>]]>Dani Megert2011-06-01T14:40:51-00:00Re: Source browsing on java files outside of workspace
https://www.eclipse.org/forums/index.php/mv/msg/210501/675855/#msg_675855
Raymond Mising name2011-06-01T17:48:36-00:00Re: Source browsing on java files outside of workspace
https://www.eclipse.org/forums/index.php/mv/msg/210501/675888/#msg_675888
Are you aware that you can attach source code to jar files? This allows you to attach the source code to an API jar file you use in one of your projects. You can then open the class and have the source code displayed instead of the class file editor. Having the API jars on a classpath allows you to use the Open Type and find the call hierarchy as well. If the jars aren't needed by any project in your workspace you can even create a project that is essentially just a collection of jar files. You can then import this into your workspace. ]]>David Wegener2011-06-01T20:03:53-00:00Re: Source browsing on java files outside of workspace
https://www.eclipse.org/forums/index.php/mv/msg/210501/675958/#msg_675958
> We have hundreds projects in total. A developer may only work on some
> of them. No one wants to have so many projects imported into his
> workspace.
Well, but on the other hand it seems you need all of them? You could use
working sets to group the projects or even close unrelated projects and
then reopen them when needed.
Another solution could be to use File > Switch Workspace.