Skip to content

Instantly share code, notes, and snippets.

@lenards
Created August 5, 2010 17:14
Show Gist options
  • Select an option

  • Save lenards/510035 to your computer and use it in GitHub Desktop.

Select an option

Save lenards/510035 to your computer and use it in GitHub Desktop.
// SNIPPET
// import from url menu item
menu.add(buildMenuItem(I18N.DISPLAY.urlImport(), "idDataBrowserUrlImportMenuItem",
new SelectionListener<MenuEvent>()
{
@Override
public void componentSelected(MenuEvent ce)
{
String parentId = pnlDataManagementGrid.getRootParentId();
promptUrlImport(parentId, ce.getXY());
}
}));
MenuBarItem ret = new MenuBarItem(I18N.DISPLAY.file(), menu);
ret.setId("idDataBrowserFileMenuItem");
return ret;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment