Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » QuickAssist for editors other than the Java Editor
QuickAssist for editors other than the Java Editor [message #753481] Thu, 27 October 2011 12:42 Go to next message
Eclipse User
Hi,
as I found out the QuickAssist feature is only available and extendible
for the Java Editor. So select some piece of code and press Ctrl+1 then
the QuickAssist pop-up pops up. Now my question is if it is possible to
implement such quick assists for other editors, too. Consider, e.g.,
some implemented refactorings for instances of a EMF metamodel. It would
be nice to provide them as quick assists depending in the selection, let
it be in a textual editor or the generated tree editor. Imaginable would
also be to provide quick assists for any selection of the workbench,
just depending what exactly was selected. Can you give me some pointers?

best regards,
Gilbert
Re: QuickAssist for editors other than the Java Editor [message #753493 is a reply to message #753481] Thu, 27 October 2011 13:33 Go to previous messageGo to next message
Lubos Pochman is currently offline Lubos Pochman
Messages: 29
Registered: July 2009
Junior Member
I agree, I would also be interested in such a solution, especially for default text editor.
Re: QuickAssist for editors other than the Java Editor [message #754208 is a reply to message #753481] Tue, 01 November 2011 12:32 Go to previous messageGo to next message
Eclipse User
Does somepne have an idea? Or is it not the right newsgroup here?
Re: QuickAssist for editors other than the Java Editor [message #754228 is a reply to message #754208] Tue, 01 November 2011 13:57 Go to previous messageGo to next message
Martin Skorsky is currently offline Martin Skorsky
Messages: 112
Registered: July 2009
Senior Member
Extend the class org.eclipse.ui.editors.text.TextEditorActionContributor.
Specify the subclass in the contributorClass of the extension point="org.eclipse.ui.editors"

Re: QuickAssist for editors other than the Java Editor [message #754264 is a reply to message #754228] Tue, 01 November 2011 17:01 Go to previous message
Curtis Windatt is currently offline Curtis Windatt
Messages: 166
Registered: July 2009
Senior Member
You can contribute IMarkerResolution that will be provided as quick fixes for markers (in the problems view and editors that display them if set up correctly). Other then that, each text editor may have its own support (as JDT does).
Previous Topic:Hide files based on project nature.
Next Topic:launching external app when plugin button is pressed
Goto Forum:
  


Current Time: Tue Sep 23 10:39:47 GMT 2014

Powered by FUDForum. Page generated in 0.09735 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software