If I have typed out an expression that returns a known type, is there a way for eclipse to content-assist the creation of that type, potentially with templated variable names?
The screenshot below is an example of where this would be useful. You'll notice that if I hover my mouse over the getModel()
method, it clearly states that it can only return a single type of Map<String, Object>
. But if I then type Ctrl-Space with my cursor to the left of the =
, nothing happens. Preferably, it would create the whole Map<String, Object> model
that you see commented out, with model
being templated so you could tab to it, and quickly enter your variable name.
I suppose it's even possible that it could infer the default variable name based on the getter method name...