content-assist

How do I get the XML Dom node of where my cursor is in Eclipse?

白昼怎懂夜的黑 提交于 2019-12-20 06:16:47
问题 How do I get the xml dom node and xpath to where my cursor is in an Eclipse custom XML editor that I am building. It is a textEditor. I am implementing IContentAssistProcessor thus far. 回答1: You can get the position of the cursor in the text editor and you can implement an XML reader that stores the locations of the XML nodes using the SAX Locator. For a mouse event, you could then scan the document and find the best matching node. I am not sure how performant this is but this is where I

Why does restoring Eclipse / Content Assist defaults not persist when Eclipse is closed and later re-opened?

雨燕双飞 提交于 2019-12-14 03:58:54
问题 Working environment: Windows 10, Eclipse 2019-06 (v. 4.12.0) A couple months ago I changed some of the settings at Window>Java>Editor>Content Assist>Advanced. After a few weeks I realized that the default settings worked better than my changes, so I clicked the ‘Restore defaults’ button and everything worked fine … so long as I never closed Eclipse. If I closed Eclipse (for example, yesterday) and opened it again (today), the settings do ..NOT.. reflect the defaults, but something else which

How to understand browser icons in PHPStorm content assist?

喜你入骨 提交于 2019-12-13 12:38:46
问题 In the image attached below, in the (3) light blue content assist box, on the left there are 5 Firefox browser icons. What do they mean? Seemingly they mean those methods are only supported in Firefox. But of what versions ? And if a certain element is supported in both Firefox and Chrome, but not IE , how will it show (as there is only 1 column space for 1 icon)? (image from http://www.jetbrains.com/phpstorm/webhelp/familiarize-yourself-with-phpstorm-editor.html) On the other hand, in Aptana

how to use ant-contrib tasks in eclipse auto content assist

落爺英雄遲暮 提交于 2019-12-12 20:25:05
问题 I have Eclipse Ganymede and would like to use the auto content assist feature for ant . I have the ant-contrib-1.0b3.jar with me. What configuration is required in eclipse to use auto content assist which can include tasks for ant-contrib as well? When I use the following the ant can recognize tasks for ant-contrib but content assist doesn't work? <!-- Define classpath for ant-contrib tasks --> <path id="ant.contrib.classpath"> <fileset dir="/path/to/lib/"> <include name="ant-contrib-1.0b3

Content assist for Eclipse JSDT based Editor

烈酒焚心 提交于 2019-12-12 07:24:41
问题 In Eclipse content assist is usually implemented by some class that implements IContentAssistProcessor (JavaDoc, example) How to implement the same CompletionProposal s for JSDT based Editor? The only example I know is http://code.google.com/a/eclipselabs.org/p/jsdt-jquery/ , but it is large and unclear how to extend JSDT for code assist. Are there other APIs in JSDT? Please point to APIs to use. Related How to extend javascript editor in JSDT in Eclipse with adding new functions 回答1: You

Content assist : clue of type of a function that has parameter type depend on “using” inside T

故事扮演 提交于 2019-12-12 06:02:18
问题 How to make Visual Studio show a completely-deduced content-assist for a function that has type depends on alias of a T ? Example b.f in the example can't give me a completely-deduced content-assist. It should clue int , not SomeClass::A<int>::AT . class SomeClass{ template<class T>class A{public: using AT=T;}; template<class AX>class B{public: void f( typename AX::AT){}}; template<class AX,class X>class C{public: void f( typename X){}}; public: void test(){ B<A<int>> b; b.f( } }; Testing b.f

JBoss tools for JSP: Make content assist work for Bootstrap “class” as in HTML Editor

痴心易碎 提交于 2019-12-11 13:31:01
问题 I am working in JBoss Tools editors for HTML and JSP pages in Eclipse Luna. One interesting thing I found about the different way these two editors work, is that some time they can auto-complete, but sometimes JBoss JSP editors fails. More precisely, when it comes to the "class" attribute which come with Bootstrap 3, the HTML editor works while JSP editor fails. Even though I can open the .jsp file with JBoss HTML editor, the problem persists. Is there some way to fix this?? They work

jQuery Mobile Content Assist

落花浮王杯 提交于 2019-12-11 11:05:30
问题 I have searched everywhere, does anyone know how to get jQuery Mobile content assist in Eclipse. I am running indigo, and I have Aptana 3 installed. Thanks in advance! 回答1: this is the closest help I could find. http://camcollins.com/2012/01/adventures-in-ios-land-day-1/ Keep in mind, Titanium Studio and not Aptana has the jQuery Mobile supports. Aptana has no plans to include those, to my knowledge. So, either use Eclipse with Titanium as a plug in, or download the Studio here http://www

Content Assist doesn't work in xml with support library

放肆的年华 提交于 2019-12-10 19:28:06
问题 I had to use Navigation Drawer from the support library v4 in my Android app. I linked the library with my project in eclipse. Copied it to the libs folder in my Project. Library classes are accessible to me in my java file. Imports work fine. Even the xml code that i copied from this website works fine. I didn't change any resource ids. The main problem is the content assist in eclipse.Its messed up when i use the DrawerLayout tag as the top parent tag. When i try to press ctrl + space

Filtering Eclipse's C++ Content Assist

自闭症网瘾萝莉.ら 提交于 2019-12-07 16:43:06
问题 I'm using Eclipse Ganymede (version 3.4.1) with a C++ project. Is there some way to filter the content assist list to only show methods and fields that are available in the current context? If not, why not? Is there ever a situation where I would want to access the private fields, etc. in an object? 回答1: Doesn't look like it. There are at least a couple of bugs open regarding this. You're lucky it shows too much! It never seems to assists in any way for me. The latest CDT (at the time of