List<String> services = (List<String>) componentBundlesViewer .getInput(); services.remove(element); componentBundlesViewer.refresh();
if (element instanceof Component) { List<ComponentArtifact> services = (List<ComponentArtifact>) componentBundlesViewer .getInput(); services.remove(getArtifactForComponent((Component) element)); componentBundlesViewer.refresh(); }
	protected void removeComponentBundle() {		ISelection selection = componentBundlesViewer.getSelection();		if (selection instanceof IStructuredSelection) {			Object element = ((IStructuredSelection) selection)					.getFirstElement();			List<String> services = (List<String>) componentBundlesViewer					.getInput();			services.remove(element);			componentBundlesViewer.refresh();		}	}