- if (activePart instanceof IViewPart) {
- ISelection selector = ((IViewPart) activePart).getViewSite()
- .getSelectionProvider().getSelection();
- if (selector != null && selector instanceof IStructuredSelection) {
- Iterator<?> it = ((IStructuredSelection) selector).iterator();
- Object element = it.next();
- if (element instanceof ModularDistBaseElem) {
- ModularDistBaseElem elem = (ModularDistBaseElem) element;
- Session newSession = null;
- try {
- Node cBase = elem.getCategoryBase();
- String path = cBase.getPath();
- newSession = ((WorkspaceElem) elem.getParent())
- .getNewSession();
- GenerateBinariesWizard wizard = new GenerateBinariesWizard(
- newSession.getNode(path));
+ String repoNodePath = event.getParameter(PARAM_REPO_NODE_PATH);
+ String workspaceName = event.getParameter(PARAM_WORKSPACE_NAME);
+ String modulePath = event.getParameter(PARAM_MODULE_PATH);
+
+ GenerateBinariesWizard wizard = new GenerateBinariesWizard(repoService,
+ repoNodePath, workspaceName, modulePath);