Skip to content
Snippets Groups Projects
Commit af2d4deb authored by Manlio Bacco's avatar Manlio Bacco
Browse files

No commit message

No commit message
parent 75dc16d8
No related branches found
No related tags found
No related merge requests found
......@@ -189,28 +189,33 @@ public class GUI extends WizardMod {
private void callUSTORE(String pathToUAPPFile){
if (MessageDialog.openConfirm(PlatformUI.getWorkbench().getDisplay().getActiveShell(), "Confirm", "Do you want to upload the configuration to uStore?"))
{
try {
IHandlerService handlerService = (IHandlerService) (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
try{
if (MessageDialog.openConfirm(PlatformUI.getWorkbench().getDisplay().getActiveShell(), "Confirm", "Do you want to upload the configuration to uStore?"))
{
try {
IHandlerService handlerService = (IHandlerService) (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
ICommandService commandService = (ICommandService) (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
Command showElement = commandService.getCommand("org.universaal.tools.uStoreClienteapplication.actions.PublishAction");
ICommandService commandService = (ICommandService) (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
Command showElement = commandService.getCommand("org.universaal.tools.uStoreClienteapplication.actions.PublishAction");
Map<String, Object> params = new HashMap<String, Object>();
params.put("org.universaal.tools.uStoreClienteapplication.filePathParameter", pathToUAPPFile);
ParameterizedCommand paramShowElement = ParameterizedCommand.generateCommand(showElement, params);
Map<String, Object> params = new HashMap<String, Object>();
params.put("org.universaal.tools.uStoreClienteapplication.filePathParameter", pathToUAPPFile);
ParameterizedCommand paramShowElement = ParameterizedCommand.generateCommand(showElement, params);
ExecutionEvent execEvent = handlerService.createExecutionEvent(paramShowElement, new Event());
try {
showElement.executeWithChecks(execEvent);
ExecutionEvent execEvent = handlerService.createExecutionEvent(paramShowElement, new Event());
try {
showElement.executeWithChecks(execEvent);
} catch (Exception ex) {
ex.printStackTrace();
}
} catch (Exception ex) {
ex.printStackTrace();
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
}
catch(Exception ex){
ex.printStackTrace();
}
}
public int getPartsCount(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment