Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 111509 - [api] Need public api for EditorUtility.getActiveEditorJavaInput(..)
Summary: [api] Need public api for EditorUtility.getActiveEditorJavaInput(..)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 15:13 EDT by Vikas Trivedi CLA
Modified: 2005-12-12 04:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Trivedi CLA 2005-10-04 15:13:00 EDT
We are using internal jdt calls to perform some of our operations. We are using
EditorUtility.getActiveEditorJavaInput(..) and would like to replace it with
public api.

We couldn't find public API to replace this usage.

This is blocking our effort to remove access to JDT internal source.
Comment 1 Dani Megert CLA 2005-10-05 06:00:51 EDT
This is an internal helper method with no internal JDT logic. No plans to make
this API. All that's in there is API and can be used by you in your own utility
class.
Comment 2 Vikas Trivedi CLA 2005-10-05 11:06:58 EDT
Thanks.
Comment 3 Dani Megert CLA 2005-12-12 04:21:47 EST
Reconsidering: it is not that easy and actually the code in EditorUtility.getActiveEditorJavaInput(...) using  IEditorInput.getAdapter(IJavaElement.class) to get the editor input as Java element has several problems, see bug 120340.
Comment 4 Dani Megert CLA 2005-12-12 04:23:37 EST
See JavaUI.getEditorInputJavaElement(IEditorInput).

Fixed in HEAD.
Available in builds > I20051212-0010.