Examples of FieldDecoration


Examples of org.eclipse.jface.fieldassist.FieldDecoration

        // combo widget
        Collection<String> names = SchemaUtils.getNames( schema.getAttributeTypeDescriptions() );
        String[] allAtNames = names.toArray( new String[names.size()] );
        Arrays.sort( allAtNames );

        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
        attributeTypeComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
        {
            public Control createControl( Composite parent, int style )
            {
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

        // combo widget
        Collection<String> names = SchemaUtils.getNames( schema.getAttributeTypeDescriptions() );
        String[] allAtNames = names.toArray( new String[names.size()] );
        Arrays.sort( allAtNames );

        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
        attributeTypeComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
        {
            public Control createControl( Composite parent, int style )
            {
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

            // combo widget
            Collection<String> names = SchemaUtils.getNames( schema.getAttributeTypeDescriptions() );
            String[] allAtNames = names.toArray( new String[names.size()] );
            Arrays.sort( allAtNames );

            final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
                FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );

            typeComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
            {
                public Control createControl( Composite parent, int style )
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

        gd.horizontalSpan = 1;
        gd.widthHint = 200;
        composite.setLayoutData( gd );
       
        // filter combo with field decoration
        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
        filterComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
        {
            public Control createControl( Composite parent, int style )
            {
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

        Composite availableObjectClassesComposite = BaseWidgetUtils.createColumnContainer( composite, 1, 1 );

        if ( FieldDecorationRegistry.getDefault().getFieldDecoration( getClass().getName() ) == null )
        {
            FieldDecoration dummy = FieldDecorationRegistry.getDefault().getFieldDecoration(
                FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
            FieldDecorationRegistry.getDefault().registerFieldDecoration( getClass().getName(),
                "You may enter a filter to restrict the list below", dummy.getImage() );
        }
        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            getClass().getName() );
        final DecoratedField availabeObjectClassesInstantSearchField = new DecoratedField(
            availableObjectClassesComposite, SWT.BORDER, new IControlCreator()
            {
                public Control createControl( Composite parent, int style )
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

  public ToolNameValidator(Text text) {
    this();
    this.decoration = new ControlDecoration(text,
        SWT.LEFT | SWT.TOP);
    this.decoration.setDescriptionText(INVALID_TOOL_NAME);
    FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault()
        .getFieldDecoration(FieldDecorationRegistry.DEC_ERROR);
    this.decoration.setImage(fieldDecoration.getImage());
  }
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

                .grab(false, true).create());
            ts.setTopIndex(0);
            final ToolItem ma = new ToolItem(t, SWT.DROP_DOWN);
            controlDecoration = new ControlDecoration(ts, SWT.TOP
                | SWT.LEFT);
            FieldDecoration dec = FieldDecorationRegistry
                .getDefault()
                .getFieldDecoration(
                    FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
            c.layout(true);
            ma.addSelectionListener(new SelectionListener() {

              public void widgetSelected(SelectionEvent e) {
                if (e.detail == SWT.ARROW) {
                  MenuManager mc = new MenuManager();
                  if (getType() == Key.class
                      && keyKind != null
                      && keyKind.length() > 0
                      && keyKindDetails == null) {
                    mc.add(new EnableDetailFormatting(
                        "Enable detail formatting"));
                  }
                  if (getType() == Key.class
                      && keyKind != null
                      && keyKind.length() > 0
                      && keyKindDetails != null) {
                    mc.add(new Action(
                        "Disable detail formatting") {

                      public void run() {
                        disableDetailFormatting();
                      }
                    });
                  }
                  final Menu createContextMenu = mc
                      .createContextMenu(ma.getParent());
                  Point cursorLocation = Display.getCurrent()
                      .getCursorLocation();
                  createContextMenu
                      .setLocation(cursorLocation);
                  createContextMenu.setVisible(true);
                  createContextMenu
                      .addMenuListener(new MenuListener() {

                        public void menuShown(
                            MenuEvent e) {

                        }

                        public void menuHidden(
                            MenuEvent e) {
                          Display.getCurrent()
                              .asyncExec(
                                  new Runnable() {

                                    public void run() {
                                      createContextMenu
                                          .dispose();

                                    }
                                  });

                        }
                      });
                } else {
                  resync();
                }
              }

              public void widgetDefaultSelected(SelectionEvent e) {
                resync();
              }
            });

            ma.setToolTipText("Refilter");
            controlDecoration.setImage(dec.getImage());

            ma.setImage(DataViewPart.choose);
          } finally {
            c.setRedraw(true);
          }
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

    try {
      assistKeyStroke = KeyStroke.getInstance("Ctrl+Space");
    } catch (ParseException x) {
      // Ignore
    }
    FieldDecoration contentAssistDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
    FieldDecoration infoDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_INFORMATION);

    Composite composite = toolkit.createComposite(section);
    section.setClient(composite);

    toolkit.createLabel(composite, "Prefix:");
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

        Composite availableObjectClassesComposite = BaseWidgetUtils.createColumnContainer( composite, 1, 1 );

        if ( FieldDecorationRegistry.getDefault().getFieldDecoration( getClass().getName() ) == null )
        {
            FieldDecoration dummy = FieldDecorationRegistry.getDefault().getFieldDecoration(
                FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
            FieldDecorationRegistry.getDefault().registerFieldDecoration( getClass().getName(),
                "You may enter a filter to restrict the list below", dummy.getImage() );
        }
        final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
            getClass().getName() );
        final DecoratedField availabeObjectClassesInstantSearchField = new DecoratedField(
            availableObjectClassesComposite, SWT.BORDER, new IControlCreator()
            {
                public Control createControl( Composite parent, int style )
View Full Code Here

Examples of org.eclipse.jface.fieldassist.FieldDecoration

            // combo widget
            String[] allAtNames = schema.getAttributeTypeDescriptionNames();
            Arrays.sort( allAtNames );

            final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
                FieldDecorationRegistry.DEC_CONTENT_PROPOSAL );
            attributeTypeComboField = new DecoratedField( composite, SWT.NONE, new IControlCreator()
            {
                public Control createControl( Composite parent, int style )
                {
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.