Bug 444840 - [IDE] IDE.getEditorId(IFileStore) is private
Summary: [IDE] IDE.getEditorId(IFileStore) is private
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Tomasz Zarna CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, greatfix, helpwanted
Depends on:
Blocks: 516470
  Show dependency tree
 
Reported: 2014-09-23 09:20 EDT by Jonah Graham CLA
Modified: 2017-05-11 06:39 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonah Graham CLA 2014-09-23 09:20:42 EDT
When Bug 230865 was fixed it appears that IDE.getEditorId was under consideration for being made public (Bug 230865 Comment 9), but there was no immediate/obvious need for it. I would like to make use of that method so I can get an Editor ID for a file based on content type, but at a point where I don't want to/can't open the editor (so I can't use IDE.openEditorOnFileStore).

Can this method be made public?
Comment 1 Paul Webster CLA 2014-09-29 09:41:04 EDT
See https://wiki.eclipse.org/Platform_UI/How_to_Contribute

PW
Comment 2 Tomasz Zarna CLA 2015-02-17 18:04:10 EST
https://git.eclipse.org/r/42083
Comment 3 Dani Megert CLA 2015-02-18 06:39:19 EST
(In reply to Jonah Graham from comment #0)
> When Bug 230865 was fixed it appears that IDE.getEditorId was under
> consideration for being made public (Bug 230865 Comment 9)

At that point the method returned the editor descriptor. Adding a public method that only returns the ID is not good. Note though, that you can't name the method 'getEditorDescriptor', because of bug 148844.
Comment 5 Dani Megert CLA 2015-02-19 07:45:12 EST
.
Comment 6 Jonah Graham CLA 2017-05-11 05:27:23 EDT
Sadly this fix was accidentally clobbered, see Bug 460652 Comment 8. I have opened new bug 516470 to add it back in.
Comment 7 Eclipse Genie CLA 2017-05-11 05:40:23 EDT
New Gerrit change created: https://git.eclipse.org/r/96800