@Test @SuppressWarnings("unchecked") public void getMenuItemsSynchronizesEnabledState() { menu.getMenuItems(); verify( handler, times( 1 ) ).acceptContext( any( Callback.class ) ); }
public List<MenuItem> getMenuItems() { enableMenuItemsForContext(); return items; }
NewResourcesMenu implements WorkspaceProjectContextChangeHandler { public List<MenuItem> getMenuItems() { enableMenuItemsForContext(); return items; } }
NewResourcesMenu implements WorkspaceProjectContextChangeHandler { public List<MenuItem> getMenuItems() { enableMenuItemsForContext(); return items; } NewResourcesMenu(); @Inject  NewResourcesMenu( final SyncBeanManager iocBeanManager,
                             final NewResourcePresenter newResourcePresenter,
                             final WorkspaceProjectContext projectContext ); }
NewResourcesMenu implements WorkspaceProjectContextChangeHandler { public List<MenuItem> getMenuItems() { enableMenuItemsForContext(); return items; } NewResourcesMenu(); @Inject  NewResourcesMenu( final SyncBeanManager iocBeanManager,
                             final NewResourcePresenter newResourcePresenter,
                             final WorkspaceProjectContext projectContext ); @PostConstruct void setup(); List<MenuItem> getMenuItems(); List<MenuItem> getMenuItemsWithoutProject(); @Override void onChange(WorkspaceProjectContextChangeEvent previous, WorkspaceProjectContextChangeEvent current); }
NewResourcesMenu implements WorkspaceProjectContextChangeHandler { public List<MenuItem> getMenuItems() { enableMenuItemsForContext(); return items; } NewResourcesMenu(); @Inject  NewResourcesMenu( final SyncBeanManager iocBeanManager,
                             final NewResourcePresenter newResourcePresenter,
                             final WorkspaceProjectContext projectContext ); @PostConstruct void setup(); List<MenuItem> getMenuItems(); List<MenuItem> getMenuItemsWithoutProject(); @Override void onChange(WorkspaceProjectContextChangeEvent previous, WorkspaceProjectContextChangeEvent current);  }