Changes for plugins/org.etsi.mts.tdl.tx.ui/src/org/etsi/mts/tdl/ui/contentassist/TDLtxProposalProvider.java: 13 added lines, 2 removed lines.
Original line number
Diff line number
Diff line
@@ -383,12 +383,13 @@ public class TDLtxProposalProvider extends AbstractTDLtxProposalProvider {
if(neinstanceofSimpleDataType){
}else{
Stringprefix="new ";
Stringprefix="";
Stringsuffix="( )";
if(neinstanceofCollectionDataType){
suffix="[ ]";
}
acceptor.accept(createCompletionProposal(prefix+ne.getName()+suffix,newStyledString(prefix+ne.getName()+suffix).append(" : new instance of type",StyledString.DECORATIONS_STYLER),getImage(ne),1000,"",context));
acceptor.accept(createCompletionProposal(suffix,newStyledString(suffix).append(" : new anonymous instance of type "+ne.getName(),StyledString.DECORATIONS_STYLER),getImage(ne),1200,"",context));
acceptor.accept(createCompletionProposal(prefix+ne.getName()+suffix,newStyledString(prefix+ne.getName()+suffix).append(" : new instance of type",StyledString.DECORATIONS_STYLER),getImage(ne),1100,"",context));