eclipse-jdt / .github

0 stars 5 forks source link

Unable to navigate to next variable defined in eclipse template #13

Open ajay-kumar-90 opened 2 years ago

ajay-kumar-90 commented 2 years ago

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 step 2: Template loaded in Eclipse

image step 3: Selecting the Bean

image 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

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