@Override public void onBrowserEvent(Event event) { Element element = DOM.eventGetTarget(event); switch (DOM.eventGetType(event)) { case Event.ONCLICK: { if (element.getClassName().equals(ThemeStyles.INSTANCE.menuRightImage())) ProjectMRUList.setOpenInNewWindow(true); } } super.onBrowserEvent(event); }
@Override public void getDynamicPopupMenu(DynamicPopupMenuCallback callback) { // truncate the MRU list size for smaller client heights if (Window.getClientHeight() < 700) { commands_.projectMru10().setVisible(false); commands_.projectMru11().setVisible(false); commands_.projectMru12().setVisible(false); commands_.projectMru13().setVisible(false); commands_.projectMru14().setVisible(false); } ProjectMRUList.setOpenInNewWindow(false); callback.onPopupMenu(this); }