347348349350351352353354355356
if (MessageDialog.openQuestion(part.getBaseComposite() .getShell(), "Delete factor table", "Do you really want to delete " + new ShortLabelProvider().getText(factorTable) + "?")) new DeleteFactorTableCommand(factorTable).runAsJob(); } }; }
1920212223242526
public class DeleteFactorTableCommandTest extends EMFfitTestCase{ @Test public void testDoRun(){ new DeleteFactorTableCommand(factorTable).runWithoutUnicaseCommand(); assertEquals(30, project.getAllModelElements().size()); }