try {
if (!selection.isEmpty() && (selection instanceof IStructuredSelection)) {
IStructuredSelection ssel = (IStructuredSelection) selection;
Object element = ssel.getFirstElement();
if (element instanceof BugGroup) {
final BugGroup group = (BugGroup) element;
if (group.getType() == GroupType.Project) {
PropertyDialogAction paction = new PropertyDialogAction(new IShellProvider() {
public Shell getShell() {
return null;
}
}, new ISelectionProvider() {
public void addSelectionChangedListener(ISelectionChangedListener listener) {
// noop
}
public ISelection getSelection() {
return new StructuredSelection(group.getData());
}
public void removeSelectionChangedListener(ISelectionChangedListener listener) {
// noop
}