Questions tagged [eclipse-templates]
23 questions
1
vote
0 answers
Create an Eclipse Template for Custom Indentation for Maps
Is there a way to create a custom indentation for an object type in Eclipse?
I store unit tests in groovy beans. As different tests contain different levels of complexity I want to force a certain format such at below:…

strangenewstar
- 175
- 1
- 2
- 13
1
vote
0 answers
eclipse template two newName
I'm trying to write an Eclipse template to generate two variables with non-conflicting names.
When I use the template twice in the same method, the second matcherVar has the same name as the first matcherVar giving a naming conflict that I was…

HenryFord
- 11
- 2
1
vote
0 answers
Can an Eclipse Editor Template invoke another template
I saw in another post that an Eclipse Code Template can invoke another template by editing the exported xml. I tried this with an Eclipse Editor Template but it didn't work. I added an id element to template A and referenced that id in template B…

Tod
- 8,192
- 5
- 52
- 93
0
votes
0 answers
Create constant eclipse template
I was exploring through eclipse templates to create public constants. it's had a post fix context. I can understand simple templates, but below public constant template is out of my understanding level. Can anyone please explain below…

Ajay Kumar
- 45
- 8
0
votes
0 answers
Unable to create PHP snippets and templates with eclipse Luna
I am using Eclipse Luna with WDT & PDT installed. I has seen this tutorial on creating code snippets. But in my eclipse I cant see the menu or buttons to create new snippets. Do I need to install any specific plugins for this?
Screenshots attached…

Saju
- 402
- 3
- 11
- 30
0
votes
2 answers
Eclipse code template to insert a bookmark?
Eclipse has a nifty feature which allows you to define "templates" for code. I have created one to automatically put in a println and add a "TODO" comment. I'd like for this to also add a bookmark so I can easily find it again.
(The codebase I am…

Mike
- 536
- 1
- 4
- 10
0
votes
1 answer
How to build a Template like javadoc in jdt and cdt
I am trying to incorporate feature similar to JavaDoc in my Java and C/C++ editor. Suppose I type "ABC" and press enter, it should be auto completed as
/*
* ABCD
* XYZ
* 1234
*/
I have to do it programmatically. What are the…

Anoop V N
- 53
- 5
0
votes
1 answer
New File Wizard eclipse plugin with pre decided code template
I want to create a eclipse plugin for a new file wizard.This wizard asks about package name and class name of the file and based on two specific class type choices(can be choosen form drop down) it generates java file with pre build template having…

WitVault
- 23,445
- 19
- 103
- 133