|
|
|
|
| Re: ECore Double attribute does not show its name in content assist editor [message #915587 is a reply to message #913142] |
Mon, 17 September 2012 11:36  |
Duncan Krebs Messages: 31 Registered: June 2011 Location: Bay Area / Mexico |
Member |

|
|
Christian,
I tried figuring it out over the weekend the best I was able to get working was on control space for my DOUBLE attribute it hard coded the value instead of displaying the name of the attribute (maxLoss) like it normally does for other "built in" types like INT, ID and string, this is the code I added to my xxxProposalAdvisor
public void completeSurfStrategyType1_MaxLoss(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
super.completeSurfStrategyType1_MaxLoss(model, assignment, context, acceptor);
String proposal = "MaxLoss" + "DOUBLE";
acceptor.accept(createCompletionProposal(proposal, context));
}
|
|
|
Powered by
FUDForum. Page generated in 0.01784 seconds