Skip to content

Instantly share code, notes, and snippets.

@mtheoryx
Created November 15, 2012 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtheoryx/4080695 to your computer and use it in GitHub Desktop.
Save mtheoryx/4080695 to your computer and use it in GitHub Desktop.
addwebsite
// Q: Are we running a kernel with KNL-273?
Class contentHostingInterface = ContentHostingService.class;
try {
Method expandMethod = contentHostingInterface.getMethod("expandZippedResource", new Class[] { String.class });
UIOutput.make(tofill, "addwebsite-descrip");
createFilePickerToolBarLink(ResourcePickerProducer.VIEW_ID, tofill, "add-website", "simplepage.website", false, true, currentPage, "simplepage.website.tooltip");
} catch (NoSuchMethodException nsme) {
// A: No
} catch (Exception e) {
// A: Not sure
log.warn("SecurityException thrown by expandZippedResource method lookup", e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment