Package com.subgraph.vega.ui.tags.tageditor

Examples of com.subgraph.vega.ui.tags.tageditor.TagEditorDialog


  private SelectionListener createSelectionListenerCreateButton() {
    return new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        TagModifier tag = new TagModifier(tagModel.createTag());
        TagEditorDialog dialog = TagEditorDialog.createDialog(getShell(), tag, TaggableEditorDialog.this);
        if (dialog.open() == IDialogConstants.OK_ID) {
          tagList.add(tag);
          tagTableViewer.refresh();
          tagTableViewer.setSelection(new StructuredSelection(tag));
          setTagSelected(tag);
        }
View Full Code Here


    return new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        final TagModifier tag = (TagModifier)((IStructuredSelection) tagTableViewer.getSelection()).getFirstElement();
        if (tag != null) {
          TagEditorDialog dialog = TagEditorDialog.createDialog(getShell(), tag, TaggableEditorDialog.this);
          if (dialog.open() == IDialogConstants.OK_ID) {
            tagTableViewer.refresh();
            setTagSelected(tag);
          }
        }
      }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.ui.tags.tageditor.TagEditorDialog

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.