History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-25298
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Dmitry Jemerov
Reporter: Amnon I. Govrin
Votes: 5
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Live Templates Support in Language API

Created: 24 Feb 05 21:33   Updated: 13 Mar 08 17:42
Component/s: Editor. Code Completion, Plugin Support. API
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-834 javascript editting and live templates Normal Resolved

Build: 3,229
Severity: High


 Description  « Hide
The language support is missing live template support (or live templates need to be aware of language plug-ins).

For example, I want that for JavaScript code (.js files or in HTML, JSP, etc.) I will be able to use a different version of itar that will be JavaScript compatible.

Currently it seems that the Live Templates configuration is not aware of plug-in languages (i.e. the JavaScript plug-in) and all I can do is create a live template and enable it on 'other', and I can't have variants of the same live template for different languages (I want itar to exist for both Java and JavaScript).

There are other areas where language API should play a role, for example structural search and replace.

It's a shame not to have this feature available for language plug-ins as it is an extremely time saving feature on the Java side.



 All   Comments   Work Log   Change History      Sort Order:
Alain Ravet - 24 Feb 05 21:55

More generally, the focus context should be used as much as possible to filter the L.T. that are offered to the user:

context= the file type (this request)

context= selection or not (=>surround or plain L.T.)
http://www.jetbrains.net/jira/browse/IDEABKL-2197

context= expected result type
http://www.jetbrains.net/jira/browse/IDEABKL-901


Amnon I. Govrin - 28 Feb 05 20:43
Another related bug that I thought was fixed before but is not is the scope of Live Templates.

I added a simple live template for JavaScript and if I set it to be active only on "Other" and not "Java" then it is not active in my .js files. Once I activate it for "Java" (which I don't want to do as it produces invalid Java code) and "Other" I can use it in .js files.

Amnon


Eugene Vigdorchik - 20 Jul 05 14:52
The last issue has been fixed.

Eugene Vigdorchik - 20 Jul 05 14:52
The last issue has been fixed.

Dmitry Jemerov - 13 Mar 08 12:51
Live template contexts are pluggable in Diana. Need to move the necessary interfaces to OpenAPI.

Alexander Strotzky - 13 Mar 08 17:42
Dmitry: nice to hear that.