IStructuredSelection
This class is not intended to be subclassed.
483484485486487488489490491492493
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
6263646566676869707172
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); } }
244245246247248249250251252253
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; }
1140114111421143114411451146114711481149
action.init(fWindow); /* Explorer Selection */ IFolder folder = OwlUI.getBookMarkExplorerSelection(); if (folder != null) action.selectionChanged(null, new StructuredSelection(folder)); /* Run */ action.run(null); }
11621163116411651166116711681169117011711172
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); } }; }
155156157158159160161162163164165
@Override public void widgetSelected(SelectionEvent e) { fModel.addColumn(column); fNewsColumnViewer.add(column); updateRemoveEnablement(); fNewsColumnViewer.setSelection(new StructuredSelection(column)); } }); } } }
325326327328329330331332333
*/ 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)); }
120121122123124125126127128129130
/* 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();
132133134135136137138139140141142
* @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);
411412413414415416417418419420421
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);