Package at.bestsolution.efxclipse.tooling.ui.editor.IValueOfContributor

Examples of at.bestsolution.efxclipse.tooling.ui.editor.IValueOfContributor.DialogProposal


        for( Proposal vProp : c.getProposals() ) {
          FXMLCompletionProposal cp = createProposal(contentAssistRequest, context, "\"" +vProp.getValue(), new StyledString(vProp.getValue()), IconKeys.getIcon(IconKeys.VALUE_OF_KEY), ATTRIBUTE_MATCHER);
          if (cp != null) {
            cp.setPriority(cp.getPriority() + vProp.getPriority() + 1);
            if( vProp instanceof DialogProposal ) {
              final DialogProposal dProp = (DialogProposal) vProp;
              cp.setTextApplier(new ReplacementTextApplier() {
                @Override
                public String getActualReplacementString(
                    ConfigurableCompletionProposal proposal) {
                  return "\"" + dProp.openDialogValue();
                }
              });
            }
            contentAssistRequest.addProposal(cp);
          }
View Full Code Here


            p = createCompletionProposal("\""+vProp.getValue()+"\"", new StyledString(vProp.getValue()), IconKeys.getIcon(IconKeys.VALUE_OF_KEY),prio , "\""+context.getPrefix(), context);
           
            if( p instanceof ConfigurableCompletionProposal ) {
              if( vProp instanceof DialogProposal ) {
                ConfigurableCompletionProposal cp = (ConfigurableCompletionProposal) p;
                final DialogProposal dProp = (DialogProposal) vProp;
                cp.setTextApplier(new ReplacementTextApplier() {
                  @Override
                  public String getActualReplacementString(
                      ConfigurableCompletionProposal proposal) {
                    return "\"" + dProp.openDialogValue() + "\"";
                  }
                });
              }
            }
            acceptor.accept(p);
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.ui.editor.IValueOfContributor.DialogProposal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.