eclipse-jdt / eclipse-jdt/.github

Unable to navigate to next variable defined in eclipse template

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi All,
I have written below template to inject a Dependency :
```
${:import(org.springframework.beans.factory.annotation.Autowired)}
private final ${class_to_inject} ${var_name};

@Autowired
public ${primary_type_name}(${class_to_inject} ${var_name}){
this.${var_name} = ${var_name};
}
```
When I select `class_to_inject` using ctrl-space. After successful import, eclipse loses the focus on other template variables. I am not able to navigate to next variable using tab key. Below are screen shot that explains the problem -

step 1: **Injecting the template**

![image](https://user-images.githubusercontent.com/98318675/173635191-b134c8ca-7994-406f-9e73-05c6f828a5bb.png)
step 2: **Template loaded in Eclipse**

![image](https://user-images.githubusercontent.com/98318675/173635407-c49e8ea8-48c6-4f9c-8bf3-7542c2ec8e80.png)
**step 3: Selecting the Bean**

![image](https://user-images.githubusercontent.com/98318675/173635488-2e3a3871-b6ce-482b-b379-9545bbcab59e.png)
step 4: **Dependency added in code**

After adding the dependency now, I am unable to move to next variable var_name using tab key as IDE loses the focus on the other template variables.

Is it Bug with Eclipse?

![image](https://user-images.githubusercontent.com/98318675/173635688-659e2f7c-ab00-4e78-9309-2ce706d9f6e5.png)

Note - Some time it works expectedly and some time it don't. I have no idea why is it happening?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.