Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.TextContentAdapter


      keyStroke = KeyStroke.getInstance("Ctrl+Space");
    } catch (ParseException e) {
      e.printStackTrace();
    }

    ContentProposalAdapter urlProposalAdapter = new ContentProposalAdapter(matchText, new TextContentAdapter(),
        new RegexContentProposalProvider(), keyStroke, null);

    // set up the label for the "Replace" field
    Label replaceLabel = new Label(matchReplaceArea, SWT.SINGLE);
    replaceLabel.setText("Replace");
View Full Code Here


    char[] autoActivationCharacters = new char[(126 - 32) + 1];
    for (int i = 32; i <= 126; i++)
      autoActivationCharacters[i - 32] = (char) i;

    ContentProposalAdapter urlProposalAdapter = new ContentProposalAdapter(currentURLText, new TextContentAdapter(),
        new URLContentProposalProvider(urlHistory), keyStroke, autoActivationCharacters);

    // create the Browse button
    browseButton = new Button(toolbarTopArea, SWT.PUSH);
    browseButton.setText("Browse...");
View Full Code Here

        UIUtils.createContentProposalDecorator(patternText,
            Messages.Log4JPatternLayoutWizardPage_dec_contentAssistAvailable);
       
        KeyStroke keyStroke = KeyStroke.getInstance("Ctrl+Space"); //$NON-NLS-1$
        ContentProposalAdapter adapter = new ContentProposalAdapter(patternText,
            new TextContentAdapter(),
            new SimpleContentProposalProvider(patterns.toArray(new String[patterns.size()])),
            keyStroke, null);
        adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
      }
    } catch (Exception e) {
View Full Code Here

        decoration.setImage(indicator.getImage());
        decoration.setDescriptionText(indicator.getDescription() + "(Ctrl+Space)");
        decoration.setShowOnlyOnFocus(true);
   
    new AutoCompleteField(typeEntry.getText(), new TextContentAdapter(), ComposerConstants.TYPES);
   
   
    typeEntry.addFormEntryListener(new FormEntryAdapter() {
      public void textValueChanged(FormEntry entry) {
        composerPackage.set("type", entry.getValue());
View Full Code Here

        decoration.setImage(indicator.getImage());
        decoration.setDescriptionText(indicator.getDescription() + "(Ctrl+Space)");
        decoration.setShowOnlyOnFocus(true);
   
    new AutoCompleteField(typeField.getTextControl(), new TextContentAdapter(), ComposerConstants.TYPES);
   
   
    // text field for project description
    descriptionField = new StringDialogField();
    descriptionField.setLabelText("Description");
View Full Code Here

   
    contentProposalProvider = new RedminePersonProposalProvider(getModel().getTask(), getTaskAttribute().getTaskData(), persons);
    ILabelProvider labelPropsalProvider = new RedminePersonProposalLabelProvider();
   
    ContentAssistCommandAdapter adapter = new ContentAssistCommandAdapter(text,
        new TextContentAdapter(), contentProposalProvider,
        ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS, new char[0], true);
   
    adapter.setLabelProvider(labelPropsalProvider);
    adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
   
View Full Code Here

    VariableManager variableManager = Activator.getPluginContext()
        .getVariableManager();
    Map<String, String> variableNamesWithDescription = variableManager
        .getNamesWithDescriptions();
    proposals.putAll(variableNamesWithDescription);
    new ContentAssistCommandAdapter(text, new TextContentAdapter(),
        new StartExplorerContentProposalProvider(proposals), null,
        new char[] { '$' }, true);
  }
View Full Code Here

        if( contentProposalService != null )
        {
            final ContentProposalProvider contentProposalProvider = new ContentProposalProvider( contentProposalService, part );
           
            final ContentProposalAdapter contentProposalAdapter
                = new ContentProposalAdapter( this.textField, new TextContentAdapter(), contentProposalProvider, CONTENT_ASSIST_KEY_STROKE, null );
           
            contentProposalAdapter.setPropagateKeys( true );
            contentProposalAdapter.setLabelProvider( new ContentProposalLabelProvider() );
            contentProposalAdapter.setProposalAcceptanceStyle( ContentProposalAdapter.PROPOSAL_REPLACE );
        }
View Full Code Here

            .size()]);
      }
    };

    ContentProposalAdapter adapter = new ContentProposalAdapter(textField,
        new TextContentAdapter(), cp, stroke, null);
    // set the acceptance style to always replace the complete content
    adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
  }
View Full Code Here

            .size()]);
      }
    };

    ContentProposalAdapter adapter = new ContentProposalAdapter(textField,
        new TextContentAdapter(), cp, stroke, null);
    // set the acceptance style to always replace the complete content
    adapter.setProposalAcceptanceStyle(ContentProposalAdapter.PROPOSAL_REPLACE);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.fieldassist.TextContentAdapter

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.