/* (non-Javadoc)
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
IPasteProviderFactory factory = ProviderManager.getInstance().getCurrentPasteProviderFactory();
ISelection selection = HandlerUtil.getCurrentSelection(event);
IWorkbenchPart activePart = HandlerUtil.getActivePart(event);
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
// some tests for handler configuration in plugin.xml
//handlerDevelopmentTests(event);
IPreferenceStore preferenceStore = EclipastiePlugin.getDefault().getPreferenceStore();
IPasteProvider paster = factory.createInstance();
Long fileSizeLimit = -1L;
if (preferenceStore.getBoolean(IEclipastiePreferenceConstants.MENU_HANDLER_ENABLE_MAXFILESIZE_PREFERENCE)) {
fileSizeLimit = preferenceStore.getLong(IEclipastiePreferenceConstants.MENU_HANDLER_MAXFILESIZE_PREFERENCE);
}