Created
November 15, 2012 19:32
-
-
Save mtheoryx/4080695 to your computer and use it in GitHub Desktop.
addwebsite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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