Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Re: Is "Open Type" feature extensible?
Re: Is "Open Type" feature extensible? [message #639837] Wed, 17 November 2010 23:33 Go to next message
Prakash G.R. is currently offline Prakash G.R.
Messages: 621
Registered: July 2009
Senior Member
On 18/11/10 12:38 AM, Raymond wrote:
> Hey,
>
> We are using eclipse to develop java program for mobile devices. When we
> debugged on a device, it always happened that the java libs running on
> the device is not the same version as the ones used in the eclipse
> project. We do have the right source code for the libs running on the
> device but do not have the binary class jars. The current "Open Types"
> feature seems only can search for source files of the classes which are
> on the classpath. Is it possible to make it also search a specified
> source jar/folder which does not have corresponding classes in the
> project's classpath?
> Eclipse debug source look up does provide extension points which allow
> us to add more paths to the search path but the "Open Type" feature does
> not. So, now when we step into a class, the right source file can be
> opened but when we want to open a source file and set breakpoints, the
> "Open Type" feature does not help.
> Thanks.
>
> Raymond


As a workaround, you could create a temporary project (like the
"External Plug-in Libraries" created by PDE) and add those classes to
the classpath of the Project.

I'm cc-ing the JDT forum where you may get more helpful answers.

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Is "Open Type" feature extensible? [message #639871 is a reply to message #639837] Thu, 18 November 2010 03:38 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Prakash G.R. wrote:
> On 18/11/10 12:38 AM, Raymond wrote:
>> Hey,
>>
>> We are using eclipse to develop java program for mobile devices. When we
>> debugged on a device, it always happened that the java libs running on
>> the device is not the same version as the ones used in the eclipse
>> project. We do have the right source code for the libs running on the
>> device but do not have the binary class jars. The current "Open Types"
>> feature seems only can search for source files of the classes which are
>> on the classpath. Is it possible to make it also search a specified
>> source jar/folder which does not have corresponding classes in the
>> project's classpath?
>> Eclipse debug source look up does provide extension points which allow
>> us to add more paths to the search path but the "Open Type" feature does
>> not. So, now when we step into a class, the right source file can be
>> opened but when we want to open a source file and set breakpoints, the
>> "Open Type" feature does not help.
>> Thanks.
>>
>> Raymond
>
>
> As a workaround, you could create a temporary project (like the
> "External Plug-in Libraries" created by PDE) and add those classes to
> the classpath of the Project.
Right, creating a project with those classes is the way to go as 'Open
Type' by definition only finds the types that are on the Java build path
of a project.

Dani
>
> I'm cc-ing the JDT forum where you may get more helpful answers.
>
Previous Topic:Can't prevent deletion of launch configurations
Next Topic:conveting program to use ANT -- how can one see how Eclipse programs/projects
Goto Forum:
  


Current Time: Wed Aug 27 23:31:49 EDT 2014

Powered by FUDForum. Page generated in 0.01644 seconds