Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 154317 - [Workbench] Unified Open Type.. API/extension point
Summary: [Workbench] Unified Open Type.. API/extension point
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154104
  Show dependency tree
 
Reported: 2006-08-17 19:35 EDT by Missing name Mising name CLA
Modified: 2017-04-19 04:42 EDT (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 Missing name Mising name CLA 2006-08-17 19:35:41 EDT
When editing a C/C++ file (using CDT) in the Java perspective two Open Type.. action buttons are visible in the toolbars, one for Java and one for C/C++.  Two identical buttons with the same tooltip but different functions is confusing (not that mixing languages isn't).  It would make sense to combine them somehow and allow other plugins to contribute their own functionality.
Comment 1 Boris Bokowski CLA 2006-08-18 00:23:13 EDT
Related to plan item from bug 154104.
Comment 2 Boris Bokowski CLA 2007-05-10 15:18:56 EDT
We now have an abstract class for this so that the behaviour of all the different selection dialogs can be consistent for different kinds of items being selected: See FilteredItemsSelectionDialog and its subclasses.

Not sure if combining Java and C/C++ types in one dialog is the way to go.

Marking this one as worksforme.  If we decide to combine Java types and C/C++ types in one search, that search engine should combine even more searchable objects (help, resources, maybe even the contents of the Quick Access dialog). We should have a bug open for this one but I couldn't find it.
Comment 3 Missing name Mising name CLA 2007-05-10 15:53:57 EDT
Perhaps I filed a possible solution rather than the problem I was trying to address.  I wasn't necessarily meaning mixing types in one dialogue - that could be confusing and would probably be better suited to "Open Resource" or a new "Open Element".  I suppose I was thinking of making Open Type closer to a retargetable action so the types that are shown are dependent on the context in which it the dialogue is opened (selection, focused parts, perspective etc).  The problem I was trying to address was having duplicate buttons with different actions.

Of course now Eclipse is becoming such a successful platform I suspect there are more things which could be abstracted out of existing plugins e.g. JDT's declaration view.  Still, that's another bug, and your solution of a common selection dialogue class sounds even better than one specific to Open Type.

Thanks for looking into this.