IStructuredSelection
This class is not intended to be subclassed.
394395396397398399400401402403404
parent = DynamicDAO.save(parent); /* Auto-Reload added BookMark */ for (IMark mark : parent.getMarks()) { if (mark.equals(bookmark)) { new ReloadTypesAction(new StructuredSelection(mark), fShell).run(); break; } } } }
409410411412413414415416417418419
fViewer.setExpandedState(element, true); } /* Restore Selection */ if (fSelectedElements != null) fViewer.setSelection(new StructuredSelection(fSelectedElements), true); /* Clear Fields */ fExpandedElements = null; fSelectedElements = null; }
360361362363364365366367368369370
if (addedFolder.getParent() != null) addedFolders.add(addedFolder); } if (!addedFolders.isEmpty()) fViewer.setSelection(new StructuredSelection(addedFolders), true); } }); } };
787980818283848586
@Override public void run() { JobRunner.runInBackgroundThread(new Runnable() { public void run() { Set<IFolder> rootFolders = Controller.getDefault().getCacheService().getRootFolders(); new ReloadTypesAction(new StructuredSelection(rootFolders.toArray()), fShell).run(); } }); }
137138139140141142143144145146147
public void entitiesAdded(Set<FolderEvent> events) { for (FolderEvent folderEvent : events) { IFolder folder = folderEvent.getEntity(); if (folder.getParent() == null) { fViewer.add(folder); fViewer.setSelection(new StructuredSelection(folder)); } } } };
298299300301302303304305306307308
/* Pre-Select the current visible Set */ Set<IFolder> rootFolders = fCacheService.getRootFolders(); for (IFolder rootFolder : rootFolders) { if (rootFolder.equals(fSelectedSet)) { fViewer.setSelection(new StructuredSelection(rootFolder)); break; } } /* Separator */
417418419420421422423424
fViewer.refresh(); /* Select and Focus the added Set */ Table table = fViewer.getTable(); Object lastItem = table.getItem(table.getItemCount() - 1).getData(); fViewer.setSelection(new StructuredSelection(lastItem)); table.setFocus(); }
129130131132133134135
else if (parentOfMinSelected.getItemCount() > 0) data = parentOfMinSelected.getItem(parentOfMinSelected.getItemCount() - 1).getData(); /* Set selection if clean-up is not enabled */ if (data != null && !fNewsTableControl.getInputPreferences().getBoolean(DefaultPreferences.DEL_READ_NEWS_STATE)) setSelection(new StructuredSelection(data)); }
99100101102103104105106107108109
* @see org.eclipse.jface.dialogs.Dialog#okPressed() */ @Override protected void okPressed() { Object[] checkedObjects = fViewer.getCheckedElements(); IStructuredSelection selection = new StructuredSelection(checkedObjects); List<IFolderChild> entities = ModelUtils.getFoldersAndBookMarks(selection); List<IEntity> entitiesTmp = new ArrayList<IEntity>(entities); /* Normalize */
245246247248249250251252253254255
public void treeCollapsed(TreeExpansionEvent event) {} }); /* Select and Show Selection */ if (fSelectedElement != null) { fViewer.setSelection(new StructuredSelection(fSelectedElement)); fViewer.getTree().showSelection(); } /* Select All / Deselect All */ Composite buttonContainer = new Composite(composite, SWT.NONE);