summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-04-06 04:20:59 (EDT)
committerpelder2006-04-06 04:20:59 (EDT)
commite27e5303e86f576631b0c764b1aecb351277bb08 (patch)
tree350fa6693e61cdaccb8170aa8ab7cce453819a45
parent17aaf0251534fa396af958275f05c5225ab6d8fd (diff)
downloadorg.eclipse.jet-e27e5303e86f576631b0c764b1aecb351277bb08.zip
org.eclipse.jet-e27e5303e86f576631b0c764b1aecb351277bb08.tar.gz
org.eclipse.jet-e27e5303e86f576631b0c764b1aecb351277bb08.tar.bz2
[131190] Implement execute functions using public APIs only. Also rename this to runTransformXXX to make usage clearer.
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java8
-rw-r--r--plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java
index 3cb648a..f820abf 100644
--- a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java
+++ b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/internal/ui/popup/actions/UnloadAction.java
@@ -3,10 +3,9 @@ package org.eclipse.jet.internal.ui.popup.actions;
import java.text.MessageFormat;
import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jet.internal.InternalJET2Platform;
-import org.eclipse.jet.internal.runtime.TemplateBundleManager;
+import org.eclipse.jet.internal.runtime.JETBundleInstaller;
import org.eclipse.jet.internal.ui.l10n.Messages;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
@@ -17,6 +16,7 @@ import org.eclipse.ui.IActionDelegate;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleException;
public class UnloadAction implements IObjectActionDelegate {
@@ -39,7 +39,7 @@ public class UnloadAction implements IObjectActionDelegate {
*/
public void run(IAction action) {
Shell shell = new Shell();
- final TemplateBundleManager mgr = InternalJET2Platform.getDefault().getTransformBundleManager();
+ final JETBundleInstaller mgr = InternalJET2Platform.getDefault().getJETBundleInstaller();
Bundle bundle = Platform.getBundle(bundleName);
final String DialogTitle = Messages.UnloadAction_DialogTitle;
if(bundle != null) {
@@ -49,7 +49,7 @@ public class UnloadAction implements IObjectActionDelegate {
shell,
DialogTitle,
MessageFormat.format(Messages.UnloadAction_UnloadSuccessful, new Object[] {bundleName}));
- } catch (CoreException e) {
+ } catch (BundleException e) {
e.printStackTrace();
MessageDialog.openInformation(
shell,
diff --git a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java
index 2d764e8..6fa34de 100644
--- a/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java
+++ b/plugins/org.eclipse.jet.ui/src/org/eclipse/jet/ui/newproject/NewProjectWizard.java
@@ -62,7 +62,7 @@ public class NewProjectWizard extends Wizard implements INewWizard {
getContainer().run(false, false, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
- IStatus result = JET2Platform.execute(NEW_PROJECT_WIZARD_TX_ID, getBuildModel(), "xml", monitor); //$NON-NLS-1$
+ IStatus result = JET2Platform.runTransformOnString(NEW_PROJECT_WIZARD_TX_ID, getBuildModel(), "xml", monitor); //$NON-NLS-1$
if(!result.isOK()) {
InternalJET2Platform.log(result);
new ErrorDialog(getShell(), NewProjectWizard.this.getWindowTitle(),