Bug 159935 - [api] Provide public API for open objects in editors
Summary: [api] Provide public API for open objects in editors
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-10-05 16:47 EDT by Rich Seddon CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Seddon CLA 2006-10-05 16:47:51 EDT
I'm filing this bug for Ready for Rational compliance.

Would like to have org.eclipse.jdt.internal.ui.javaeditor.EditorUtility be public, especially:

org.eclipse.jdt.internal.ui.EditorUtility.openInEditor(Object, boolean) 
org.eclipse.jdt.internal.ui.EditorUtility.openInEditor(Object) 
org.eclipse.jdt.internal.ui.EditorUtility.revealInEditor(IEditorPart, IJavaElement)
Comment 1 Martin Aeschlimann CLA 2006-10-06 12:33:38 EDT
This got added for 3.3 M1 (I believe): JavaUI.openInEditor(IJavaElement, activate, reveal) (org.eclipse.jdt.ui)
Already there before: JavaUI.openInEditor(IJavaElement)
                      JavaUI.revealInEditor(IEditorPart, IJavaElement)

To open non-Java elements use IDE.openEditor
Comment 2 Rich Seddon CLA 2007-01-11 18:04:17 EST
still missing these methods:
EditorUtility.getEditorInput(Object)
EditorUtility.openInEditor(IFile)
EditorUtility.isOpenInEditor(IType)
Comment 3 Martin Aeschlimann CLA 2007-01-12 10:21:24 EST
To open an IFile, use IDE.openEditor.



Comment 4 Dani Megert CLA 2007-01-15 04:30:09 EST
Please explain your use case for 
- EditorUtility.getEditorInput(Object)
- EditorUtility.isOpenInEditor(IType)
Comment 5 Dan Yocum CLA 2007-01-24 13:28:16 EST
we have custom decorations in editors which need to be removed following a refactor. so, based on an IType, we need to find an open editor (if any). we only need one of the remaining 2 - ideally EditorUtility.isOpenInEditor(itype), but we could find out ourselves if its open if we had EditorUtility.getEditorInput(Object)
Comment 6 Rich Seddon CLA 2007-01-24 13:29:20 EST
Reopening based on Dan's comment.
Comment 7 Dani Megert CLA 2007-01-25 02:32:47 EST
>we have custom decorations in editors which need to be removed following a
>refactor
Why don't you register as a refactoring participant then?
Comment 8 Dan Yocum CLA 2007-01-26 16:20:12 EST
it was in the refactoring participant that we did the remove. however, as it turns out, we have another way of refreshing the rulers, so we dont need access to either of these calls. thanks for your help.
Comment 9 Dani Megert CLA 2007-01-28 12:43:21 EST
.
Comment 10 Dani Megert CLA 2007-06-22 09:59:49 EDT
Get rid of deprecated state.
Comment 11 Dani Megert CLA 2007-06-22 10:04:57 EDT
.