@Test public void testSelectEntityDetail() throws Throwable { handler.async(); getComponent(DetailUtil.class)._setLauncher(new DetailUtil.Launcher() { @Override public void loadDetail(Project project, final Entity entity, final boolean show, final boolean select) { handler.done(new Runnable() { @Override public void run() { Assert.assertEquals("requirement", entity.getType()); Assert.assertEquals(4, entity.getId()); Assert.assertEquals(true, show); Assert.assertEquals(true, select); } }); } }); activeItemService.selectEntityDetail(new Entity("requirement", 4)); }
public void selectEntityDetail(final Entity entity) { ApplicationUtil.invokeLaterIfNeeded(new Runnable() { public void run() { detailUtil.loadDetail(project, entity, true, true); } }); }
ActiveItemService implements PersistentStateComponent<Element>, TaskManagerIntegration.Listener { public void selectEntityDetail(final Entity entity) { ApplicationUtil.invokeLaterIfNeeded(new Runnable() { public void run() { detailUtil.loadDetail(project, entity, true, true); } }); } }
ActiveItemService implements PersistentStateComponent<Element>, TaskManagerIntegration.Listener { public void selectEntityDetail(final Entity entity) { ApplicationUtil.invokeLaterIfNeeded(new Runnable() { public void run() { detailUtil.loadDetail(project, entity, true, true); } }); } ActiveItemService(Project project, DetailUtil detailUtil); }
ActiveItemService implements PersistentStateComponent<Element>, TaskManagerIntegration.Listener { public void selectEntityDetail(final Entity entity) { ApplicationUtil.invokeLaterIfNeeded(new Runnable() { public void run() { detailUtil.loadDetail(project, entity, true, true); } }); } ActiveItemService(Project project, DetailUtil detailUtil); synchronized void activate(Entity entity, boolean callTaskManager, boolean select); synchronized EntityRef getActiveItem(); void selectEntityDetail(final Entity entity); void addListener(Listener listener); void removeListener(Listener listener); Element getState(); void loadState(Element state); void taskEntityActivated(Entity entity); }
ActiveItemService implements PersistentStateComponent<Element>, TaskManagerIntegration.Listener { public void selectEntityDetail(final Entity entity) { ApplicationUtil.invokeLaterIfNeeded(new Runnable() { public void run() { detailUtil.loadDetail(project, entity, true, true); } }); } ActiveItemService(Project project, DetailUtil detailUtil); synchronized void activate(Entity entity, boolean callTaskManager, boolean select); synchronized EntityRef getActiveItem(); void selectEntityDetail(final Entity entity); void addListener(Listener listener); void removeListener(Listener listener); Element getState(); void loadState(Element state); void taskEntityActivated(Entity entity); static Icon activeItemIcon; }