Bug 240405 - [EditorMgmt] Editors extension point needs ability to filter on more then just file name, extensions, and content
Summary: [EditorMgmt] Editors extension point needs ability to filter on more then jus...
Status: CLOSED DUPLICATE of bug 251776
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact: Remy Suen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 16:46 EDT by Ian Tewksbury CLA
Modified: 2012-01-17 11:42 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Tewksbury CLA 2008-07-10 16:46:02 EDT
An adapter has an org.eclipse.ui.editors extension that should only be associated with files with a specific name that are within specific project types.

Currently the only filtering for how a Editor is applied to a file is by its name and its content.  But in this particular case it is also important what type of project the particular file is in but there is no way to filter on this when matching the editor extension with a particular file thus causing the editor to be inappropriately associated with files of the same name but in the wrong types of projects.
Comment 1 Boris Bokowski CLA 2008-07-15 03:32:24 EDT
"within specific project types" - how exactly do you think this should be specified?

Also, do you think the best way to support your use case would be a change to the editors extension point, or to the way that content types are computed?
Comment 2 Boris Bokowski CLA 2008-07-15 03:33:43 EDT
(In reply to comment #1)
> "within specific project types" - how exactly do you think this should be
> specified?

Note that the editors extension point is in the org.eclipse.ui plug-in, which does not depend on org.eclipse.core.resources and thus has no way to talk about projects in a workspace.
Comment 3 Boris Bokowski CLA 2009-11-17 13:03:22 EST
Remy is now responsible for watching the [EditorMgmt] component area.
Comment 4 Dani Megert CLA 2012-01-17 11:42:28 EST
We don't plan to add this. However, the new 'org.eclipse.ui.ide.editorAssociationOverride' extension point should fit your needs. See bug 251776 for more details.

*** This bug has been marked as a duplicate of bug 251776 ***