IssueZilla 11240 - Ensure unoil.jar is mounted before executing commands.

This commit is contained in:
Tomas O'Connor
2003-03-04 11:11:15 +00:00
parent 3876e9ecfc
commit ba915185c9
3 changed files with 17 additions and 6 deletions

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: BuildParcelAction.java,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: toconnor $ $Date: 2003-02-20 11:59:21 $
* last change: $Author: toconnor $ $Date: 2003-03-04 12:11:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,12 +73,16 @@ import org.openide.compiler.Compiler;
import org.openide.compiler.CompilerJob;
import org.openide.compiler.CompilerTask;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class BuildParcelAction extends BuildAllAction {
public String getName() {
return "Build";
}
protected void performAction(Node[] activatedNodes) {
FrameworkJarChecker.mountDependencies();
for (int i = 0; i < activatedNodes.length; i++) {
Vector v = new Vector(1);
v.addElement(activatedNodes[i]);

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: CompileParcelAction.java,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: toconnor $ $Date: 2003-02-20 11:59:21 $
* last change: $Author: toconnor $ $Date: 2003-03-04 12:11:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,12 +64,15 @@ package org.openoffice.netbeans.modules.office.actions;
import org.openide.nodes.Node;
import org.openide.actions.CompileAllAction;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class CompileParcelAction extends CompileAllAction {
public String getName() {
return "Compile";
}
protected void performAction(Node[] activatedNodes) {
FrameworkJarChecker.mountDependencies();
super.performAction(activatedNodes);
}
}

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: ConfigureParcelAction.java,v $
*
* $Revision: 1.3 $
* $Revision: 1.4 $
*
* last change: $Author: toconnor $ $Date: 2003-02-20 11:59:21 $
* last change: $Author: toconnor $ $Date: 2003-03-04 12:11:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,6 +66,8 @@ import org.openide.util.HelpCtx;
import org.openide.util.RequestProcessor;
import org.openide.util.actions.CookieAction;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class ConfigureParcelAction extends CookieAction {
public java.lang.String getName() {
@@ -86,6 +88,8 @@ public class ConfigureParcelAction extends CookieAction {
protected void performAction(final Node[] activatedNodes)
{
FrameworkJarChecker.mountDependencies();
RequestProcessor.getDefault().post(new Runnable() {
public void run() {
for (int i = 0; i < activatedNodes.length; i++) {