Package org.eclipse.jface.fieldassist

Examples of org.eclipse.jface.fieldassist.ControlDecoration


        // Create the control decoration warning image
        final Image fieldDecorationWarningImage;
        fieldDecorationWarningImage = FieldDecorationRegistry.getDefault().getFieldDecoration(
                FieldDecorationRegistry.DEC_ERROR).getImage();      
        // Create the control decoration
        warningDecorator = new ControlDecoration(cmbBands, SWT.RIGHT | SWT.CENTER);
        warningDecorator.setMarginWidth(4);
        warningDecorator.setImage(fieldDecorationWarningImage);
        warningDecorator.setDescriptionText("Warning!"); //$NON-NLS-1$
        warningDecorator.hide();
       
View Full Code Here


    this.handlerService = (IHandlerService) PlatformUI.getWorkbench()
        .getService(IHandlerService.class);
    if (installDecoration) {
      // Note top left is used for compatibility with 3.2, although
      // this may change to center alignment in the future.
      decoration = new ControlDecoration(control, SWT.TOP | SWT.LEFT);
      decoration.setShowOnlyOnFocus(true);
      FieldDecoration dec = getContentAssistFieldDecoration();
      decoration.setImage(dec.getImage());
      decoration.setDescriptionText(dec.getDescription());
    }
View Full Code Here

                {
                    add( availableObjectClassesViewer.getSelection() );
                }
            }
        } );
        ControlDecoration availableObjectClassesInstantSearchDecoration = new ControlDecoration(
            availableObjectClassesInstantSearch, SWT.TOP | SWT.LEFT, composite );
        availableObjectClassesInstantSearchDecoration.setDescriptionText( Messages
            .getString( "NewEntryObjectclassWizardPage.FilterDescription" ) ); //$NON-NLS-1$
        availableObjectClassesInstantSearchDecoration.setImage( FieldDecorationRegistry.getDefault()
            .getFieldDecoration( FieldDecorationRegistry.DEC_CONTENT_PROPOSAL ).getImage() );
        Button reloadButton = new Button( availableObjectClassesInstantSearchComposite, SWT.PUSH | SWT.FLAT );
        reloadButton.setToolTipText( Messages.getString( "NewEntryObjectclassWizardPage.ReloadSchema" ) ); //$NON-NLS-1$
        reloadButton.setImage( BrowserCommonActivator.getDefault().getImage( BrowserCommonConstants.IMG_REFRESH ) );
        reloadButton.addSelectionListener( new SelectionAdapter()
View Full Code Here

     * @param none
     */
    public ExpressionViewer( Composite parent, int style ) {
        System.out.println("Expression Viewer");
        text = new Text( parent, style );
        feedback = new ControlDecoration(text, SWT.TOP | SWT.LEFT);
       
        FunctionFinder ff = new FunctionFinder(null);

        proposalProvider = new FunctionContentProposalProvider();
        proposalProvider.setFiltering(true);
View Full Code Here

       
        label = new Label(parent, SWT.SINGLE );
        label.setText("Manual Filter");
        label.setLayoutData("cell 0 1,aligny top, gapx 0 unrelated"); // unrelated spacing after to leave room for label decoration
       
        ControlDecoration decoration = new ControlDecoration(label, SWT.RIGHT | SWT.TOP );
        filterViewer = new FilterViewer(parent, SWT.MULTI );
        filterViewer.getControl().setLayoutData("cell 1 1,grow,width 200:100%:100%,height 60:100%:100%");
       
        FilterInput input = new FilterInput();
        input.setFeedback( decoration );
View Full Code Here

        info = new Text(composite, SWT.SINGLE | SWT.BORDER);
        info.setLayoutData(String.format(WIDTH_LAYOUT_FORMAT, CONTROL_WIDTH));
        info.addModifyListener(new ValidatingModifyListener());
       
        infoDecoration = new ControlDecoration(info, SWT.TOP | SWT.LEFT);
        final FieldDecoration errorFieldIndicator = FieldDecorationRegistry.getDefault()
                .getFieldDecoration(FieldDecorationRegistry.DEC_ERROR);
        infoDecoration.setImage(errorFieldIndicator.getImage());
        infoDecoration.hide();
       
View Full Code Here

     * @param parent
     * @param none
     */
    public FilterViewer( Composite parent, int style ) {
        text = new Text(parent, style);
        feedback = new ControlDecoration(text, SWT.TOP | SWT.LEFT);

        proposalProvider = new FunctionContentProposalProvider();
        proposalProvider.setFiltering(true);
        ContentProposalAdapter adapter = new ContentProposalAdapter(text, new TextContentAdapter(),
                proposalProvider, null, null);
View Full Code Here

        Label label = new Label(page, SWT.SINGLE );
        label.setText("Data Filter");
        label.setLayoutData("cell 0 0,aligny top, gapx 0 unrelated"); // unrelated spacing after to leave room for label decoration

        ControlDecoration decoration = new ControlDecoration(label, SWT.RIGHT | SWT.TOP );
        filter = new FilterViewer(page, SWT.MULTI );
        filter.getControl().setLayoutData("cell 1 0,grow,width 200:100%:100%,height 60:100%:100%");
       
        FilterInput input = new FilterInput();
        input.setFeedback(decoration);
View Full Code Here

       
        Label label = new Label(panel, SWT.LEFT );
        label.setText("Transform");
        label.setLayoutData("width pref!,left,wrap");
       
        feedbackDecorator = new ControlDecoration(label, SWT.RIGHT|SWT.TOP);

        text = new Text(panel, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL );
        text.setEditable(true);
        text.setText(getDefaultText());
       
View Full Code Here

        setControl(mainComposite);
        validate();
    }

    private ControlDecoration createControlDecoration(Control parent){
      ControlDecoration dec = new ControlDecoration(parent, SWT.TOP | SWT.LEFT);
      dec.setImage(PlatformUI.getWorkbench().
      getSharedImages().getImage(ISharedImages.IMG_DEC_FIELD_ERROR));
      dec.hide();
      return dec;
    }
View Full Code Here

TOP

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

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.