Kaydet (Commit) ba915185 authored tarafından Tomas O'Connor's avatar Tomas O'Connor

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

üst 3876e9ec
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: BuildParcelAction.java,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -73,12 +73,16 @@ import org.openide.compiler.Compiler; ...@@ -73,12 +73,16 @@ import org.openide.compiler.Compiler;
import org.openide.compiler.CompilerJob; import org.openide.compiler.CompilerJob;
import org.openide.compiler.CompilerTask; import org.openide.compiler.CompilerTask;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class BuildParcelAction extends BuildAllAction { public class BuildParcelAction extends BuildAllAction {
public String getName() { public String getName() {
return "Build"; return "Build";
} }
protected void performAction(Node[] activatedNodes) { protected void performAction(Node[] activatedNodes) {
FrameworkJarChecker.mountDependencies();
for (int i = 0; i < activatedNodes.length; i++) { for (int i = 0; i < activatedNodes.length; i++) {
Vector v = new Vector(1); Vector v = new Vector(1);
v.addElement(activatedNodes[i]); v.addElement(activatedNodes[i]);
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: CompileParcelAction.java,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -64,12 +64,15 @@ package org.openoffice.netbeans.modules.office.actions; ...@@ -64,12 +64,15 @@ package org.openoffice.netbeans.modules.office.actions;
import org.openide.nodes.Node; import org.openide.nodes.Node;
import org.openide.actions.CompileAllAction; import org.openide.actions.CompileAllAction;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class CompileParcelAction extends CompileAllAction { public class CompileParcelAction extends CompileAllAction {
public String getName() { public String getName() {
return "Compile"; return "Compile";
} }
protected void performAction(Node[] activatedNodes) { protected void performAction(Node[] activatedNodes) {
FrameworkJarChecker.mountDependencies();
super.performAction(activatedNodes); super.performAction(activatedNodes);
} }
} }
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ConfigureParcelAction.java,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -66,6 +66,8 @@ import org.openide.util.HelpCtx; ...@@ -66,6 +66,8 @@ import org.openide.util.HelpCtx;
import org.openide.util.RequestProcessor; import org.openide.util.RequestProcessor;
import org.openide.util.actions.CookieAction; import org.openide.util.actions.CookieAction;
import org.openoffice.netbeans.modules.office.utils.FrameworkJarChecker;
public class ConfigureParcelAction extends CookieAction { public class ConfigureParcelAction extends CookieAction {
public java.lang.String getName() { public java.lang.String getName() {
...@@ -86,6 +88,8 @@ public class ConfigureParcelAction extends CookieAction { ...@@ -86,6 +88,8 @@ public class ConfigureParcelAction extends CookieAction {
protected void performAction(final Node[] activatedNodes) protected void performAction(final Node[] activatedNodes)
{ {
FrameworkJarChecker.mountDependencies();
RequestProcessor.getDefault().post(new Runnable() { RequestProcessor.getDefault().post(new Runnable() {
public void run() { public void run() {
for (int i = 0; i < activatedNodes.length; i++) { for (int i = 0; i < activatedNodes.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment