Skip to content

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

@ajay-kumar-90

Description

@ajay-kumar-90

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions