public void moveTask() { if (!viewer.getSelection().isEmpty()) { IStructuredSelection selection = (IStructuredSelection) viewer.getSelection(); Task p = (Task) selection.getFirstElement(); input.remove(p); } }
private void deleteTODO() { if (!viewer.getSelection().isEmpty()) { IStructuredSelection selection = (IStructuredSelection) viewer.getSelection(); Task p = (Task) selection.getFirstElement(); input.remove(p); } }
private void remove(final MarketDataViewItem item) { mItemMap.remove(item.getEquity()); mItems.remove(item); item.dispose(); }
/** * Removes a trade suggestion from the managed collection. * * @param suggestion suggestion to remove */ public void removeSuggestion(TradeSuggestion suggestion) { mSuggestions.remove(suggestion); }