Package org.pdtextensions.core.ui.util

Examples of org.pdtextensions.core.ui.util.PHPContentProposalAdapter


    superClassField.setLabelText("&Superclass:");
    superClassField.setButtonLabel("Brows&e...");
    superClassField.doFillIntoGrid(container, nColumns);

    PHPContentProposalAdapter contentProposalAdapter = new PHPContentProposalAdapter(
        superClassField.getTextControl(), new TextContentAdapter(), new PHPContentProposalProvider(
            getScriptFolder().getScriptProject()), null, null);

    contentProposalAdapter.addContentProposalListener(new IContentProposalListener() {
      @Override
      public void proposalAccepted(IContentProposal proposal) {
        setSuperclass(((PHPTypeContentProposal) proposal).getObject());
      }
    });

    contentProposalAdapter.setProposalAcceptanceStyle(PHPContentProposalAdapter.PROPOSAL_REPLACE);
    contentProposalAdapter.setLabelProvider(new ILabelProvider() {

      @Override
      public void removeListener(ILabelProviderListener listener) {
        // TODO Auto-generated method stub
View Full Code Here

TOP

Related Classes of org.pdtextensions.core.ui.util.PHPContentProposalAdapter

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.