Package org.eclipse.xtext.ui.editor.contentassist

Examples of org.eclipse.xtext.ui.editor.contentassist.ReplacementTextApplier


          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();
                }
View Full Code Here


           
            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() + "\"";
                  }
View Full Code Here

      if (p instanceof UIProposal) {
        ConfigurableCompletionProposal cp = (ConfigurableCompletionProposal) createCompletionProposal(p.getLabel(), p.getLabel(), img, context);
        final UIProposal uiP = (UIProposal)p;
       
        if (cp != null) {
          cp.setTextApplier(new ReplacementTextApplier() {
            //@Override
            public String getActualReplacementString(ConfigurableCompletionProposal proposal) {
              if (uiP.show()) {
                return uiP.getProposal();
              }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.ui.editor.contentassist.ReplacementTextApplier

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.