Package com.onpositive.semantic.model.ui.property.editors

Examples of com.onpositive.semantic.model.ui.property.editors.ButtonSelector.addListener()


    };
    ButtonSelector addButton = new ButtonSelector();
    addButton.setText("add jar");
    GridData addDat = new GridData(GridData.FILL_HORIZONTAL);
    addButton.setLayoutData(addDat);
    addButton.addListener(SWT.Selection, new SWTEventListener<Button>() {

      public void handleEvent(AbstractUIElement<Button> element,
          Event event) {

        FileDialog dialog = new FileDialog(Display.getCurrent()
View Full Code Here


    ButtonSelector removeButton = new ButtonSelector();
    removeButton.setText("remove jar");
    GridData removeDat = new GridData(GridData.FILL_HORIZONTAL);
    removeButton.setLayoutData(removeDat);

    removeButton.addListener(SWT.Selection, new SWTEventListener<Button>() {

      public void handleEvent(AbstractUIElement<Button> element,
          Event event) {
        for (Iterator i = classpath.getSelection().iterator(); i
            .hasNext();) {
View Full Code Here

    c1.add(current);
    c1.add(l);

    ButtonSelector add = new ButtonSelector();
    add.addListener(SWT.Selection, new SWTEventListener() {

      public void handleEvent(AbstractUIElement element, Event event) {
        currNSBinding.setName("Current Namespace");
        currNSBinding.setDescription("Add New Namespace");
        currNSBinding.setValue("", null);
View Full Code Here

    });
    add.setText("add");
    add.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false));

    ButtonSelector remove = new ButtonSelector();
    remove.addListener(SWT.Selection, new SWTEventListener() {

      public void handleEvent(AbstractUIElement element, Event event) {
        IStructuredSelection s = l.getSelection();
        StructuredSelection ss = (StructuredSelection) s;
        String selected = (String) ss.getFirstElement();
View Full Code Here

  private static void addIsNullButtonSelector(final IBinding bnd,
      Container editor, String rId) {
    ButtonSelector bs = new ButtonSelector(SWT.CHECK);
    bs.setText("is null");
    bs.addListener(SWT.Selection, new SWTEventListener() {

      public void handleEvent(AbstractUIElement element, Event event) {
        Binding b = (Binding) bnd;
        boolean readOnly = b.isReadOnly();
        b.setReadOnly(!readOnly);
View Full Code Here

      return;
    }

    ButtonSelector bsNotIndexable = new ButtonSelector(SWT.CHECK);
    bsNotIndexable.setText("not indexed");
    bsNotIndexable.addListener(SWT.Selection, new SWTEventListener() {

      public void handleEvent(AbstractUIElement element, Event event) {
        Binding b = (Binding) bnd;
        if (b instanceof EditingBinding) {
          boolean flg = ((EditingBinding) b).isNotIndexable();
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.