|Re: Quick Fix on JSP java partition [message #207890 is a reply to message #207754]
||Fri, 01 February 2008 20:50
| Jacob Danner
Registered: July 2009
Has anyone seen this work? I was looking through the code and found the |
following in StructuredTextEditor, so it appears like it was meant to be
hooked up, but I have still not seen it function.
// StructuredTextViewer Action - requesting
// correction assist to show
// correction proposals for the current position
action = new TextOperationAction(resourceBundle,
StructuredTextEditorActionConstants.ACTION_NAME_QUICK_FIX + UNDERSCORE,
this, StructuredTextViewer.QUICK_FIX, true);
Any help is much appreciated. Thanks,
Jacob Danner wrote:
> I was curious about the quick fix feature of the WTP JSP Editor.
> Its mentioned here:
> http://www.eclipse.org/webtools/community/tutorials/Reintrod ucingSSE/ReintroducingSSE.html#quickfix
> http://www.eclipse.org/webtools/initial-contribution/IBM/eva lGuides/SSEEval.html?p=1
> However, I have been unsuccessful at getting it to work within a JSP
> page. I've even tried content like the one from the pictures. (I also
> checked the newsgroups and bugzilla but didn't see anything relevant).
> I noticed this issue while trying to get the import statement added
> using the following snippet.
> List l = new LinkedList();
> Do I need to do anything special for this functionality to be enabled?
> Thanks in advance,
|Re: Quick Fix on JSP java partition [message #207947 is a reply to message #207890]
||Sun, 03 February 2008 09:11
| Nitin Dahyabhai
Registered: July 2009
Jacob Danner wrote:|
> Has anyone seen this work? I was looking through the code and found the
> following in StructuredTextEditor, so it appears like it was meant to be
> hooked up, but I have still not seen it function.
It is hooked up, there just aren't many quick fixes provided as of
yet. The editor will try to load quick assist processors using the
extended configuration extension point. I believe something like
this will allow you to contribute a processor for Java scripting
Just be aware that this hasn't been finalized as API yet, so it may
change in the future.
Eclipse WTP Source Editing
Eclipse WTP, IBM
Powered by FUDForum
. Page generated in 0.03056 seconds