Examples of DialogProposal


Examples of at.bestsolution.efxclipse.tooling.fxgraph.ui.util.JDTHelper.DialogProposal

   
   
  }
 
  public PaintProposalProvider() {
    proposals.add(new DialogProposal(601, "Pick color ...") {

      @Override
      public String openProposal() {
        ColorDialog dialog = new ColorDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
        RGB rgb = dialog.open();
View Full Code Here

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

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

            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
Copyright © 2018 www.massapi.com. 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.