Package com.subgraph.vega.internal.ui.tags.taggableeditor

Examples of com.subgraph.vega.internal.ui.tags.taggableeditor.TagModifier


      createTagsArea(parentComposite).setLayoutData(new GridData(GridData.FILL_BOTH));
      createTagInfoArea(parentComposite).setLayoutData(new GridData(GridData.FILL_BOTH));

    for (ITag tag: tagModel.getAllTags()) {
      TagModifier tagModifier = new TagModifier(tag);
      tagList.add(tagModifier);
      for (ITag tagged: taggable.getAllTags()) {
        if (tagModifier.getTagOrig() == tagged) {
          checkStateManager.addChecked(tagModifier);
          break;
        }
      }
    }
View Full Code Here


      @Override
      public void selectionChanged(SelectionChangedEvent event) {
        boolean isEmpty = event.getSelection().isEmpty();
        editButton.setEnabled(!isEmpty);
        if (isEmpty == false) {
          final TagModifier tagModifier = (TagModifier)((IStructuredSelection) event.getSelection()).getFirstElement();
          setTagSelected(tagModifier);
        }
      }
    };
  }
View Full Code Here

  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));
View Full Code Here

  private SelectionListener createSelectionListenerEditButton() {
    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.internal.ui.tags.taggableeditor.TagModifier

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.