int result = JOptionPane.showOptionDialog(getTable(),"Remove target of probe as well?","Remove probe",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,null,null); //$NON-NLS-1$ //$NON-NLS-2$
switch (result) {
case JOptionPane.CANCEL_OPTION:
break;
case JOptionPane.YES_OPTION:
probemaker.removeTargetsForProbes(new EqualPredicate(s));
probemaker.removeProbes(new EqualPredicate(s));
break;
case JOptionPane.NO_OPTION:
probemaker.removeProbes(new EqualPredicate(s));
break;
}
}
});
}