Examples of StructuredSelection


Examples of org.eclipse.jface.viewers.StructuredSelection

      Object data = item.getData();

      /* Toggle State between Sticky / Not Sticky */
      if (data instanceof INews) {
        disableTrackerTemporary = false;
        new MakeTypesStickyAction(new StructuredSelection(data)).run();
      }
    }

    /*
     * This is a workaround: Immediately after the mouse-down-event has been
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

          IBookMark bm = (IBookMark) feedInput.getMark();
          try {
            URI uri = new URI("http://www.feedvalidator.org/check.cgi?url=" + URIUtils.urlEncode(bm.getFeedLinkReference().getLinkAsText())); //$NON-NLS-1$

            org.rssowl.ui.internal.actions.OpenInBrowserAction openAction = new org.rssowl.ui.internal.actions.OpenInBrowserAction();
            openAction.selectionChanged(null, new StructuredSelection(uri));
            openAction.run();
          } catch (URISyntaxException ex) {
            Activator.log(ex);
          }
        }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

        else if (fType.isNewsScoped())
          perform = PerformAfterInputSet.SELECT_FIRST_NEWS;

        IWorkbenchPage page = OwlUI.getPage();
        if (page != null)
          OwlUI.openInFeedView(page, new StructuredSelection(mark), true, false, perform);
      }

      return targetNode != null;
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

    action.init(fWindow);

    /* Explorer Selection */
    IFolder folder = OwlUI.getBookMarkExplorerSelection();
    if (folder != null)
      action.selectionChanged(null, new StructuredSelection(folder));

    /* Run */
    action.run(null);
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

          public Menu createMenu(Control parent) {
            NewTypeDropdownAction action = new NewTypeDropdownAction();
            action.init(fWindow);
            IFolder folder = OwlUI.getBookMarkExplorerSelection();
            if (folder != null)
              action.selectionChanged(null, new StructuredSelection(folder));

            return action.getMenu(parent);
          }
        };
      }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

              @Override
              public void widgetSelected(SelectionEvent e) {
                fModel.addColumn(column);
                fNewsColumnViewer.add(column);
                updateRemoveEnablement();
                fNewsColumnViewer.setSelection(new StructuredSelection(column));
              }
            });
          }
        }
      }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

   */
  public void setInput(NewsColumnViewModel model) {
    fModel = model;
    fNewsColumnViewer.setInput(model.getColumns());
    fSortByViewer.setInput(NewsColumn.values());
    fSortByViewer.setSelection(new StructuredSelection(model.getSortColumn()));
    fSortAscendingViewer.setInput(Order.values());
    fSortAscendingViewer.setSelection(new StructuredSelection(model.isAscending() ? Order.ASCENDING : Order.DESCENDING));
  }
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

    /* Set Selection to Input if Empty */
    if (fSelection.isEmpty()) {
      FeedView activeFeedView = OwlUI.getActiveFeedView();
      if (activeFeedView != null) {
        FeedViewInput input = (FeedViewInput) activeFeedView.getEditorInput();
        fSelection = new StructuredSelection(input.getMark());
      }
    }

    /* Run Update */
    List<?> list = fSelection.toList();
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

     * @see org.eclipse.jface.dialogs.Dialog#okPressed()
     */
    @Override
    protected void okPressed() {
      Object[] checkedObjects = fCheckedElementsCache.toArray();
      IStructuredSelection selection = new StructuredSelection(checkedObjects);

      List<IFolderChild> entities = ModelUtils.getFoldersBookMarksBins(selection);

      /* Normalize */
      CoreUtils.normalize(entities);
View Full Code Here

Examples of org.eclipse.jface.viewers.StructuredSelection

        public void treeCollapsed(TreeExpansionEvent event) {}
      });

      /* Select and Show Selection */
      if (fSelectedElement != null) {
        fViewer.setSelection(new StructuredSelection(fSelectedElement));
        fViewer.getTree().showSelection();
      }

      /* Buttons */
      Composite buttonContainer = new Composite(composite, SWT.NONE);
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.