Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authoratikhomirov2006-06-26 10:02:58 -0400
committeratikhomirov2006-06-26 10:02:58 -0400
commitc3acdf96bc0b51d1e9413fe069af472eb496f936 (patch)
tree2d32dfde8b868e59b24acdae1f54c5c0806e4b01 /doc
parent629d6d1323105918b7228156e303d7b369cefc02 (diff)
downloadorg.eclipse.gmf-tooling-c3acdf96bc0b51d1e9413fe069af472eb496f936.tar.gz
org.eclipse.gmf-tooling-c3acdf96bc0b51d1e9413fe069af472eb496f936.tar.xz
org.eclipse.gmf-tooling-c3acdf96bc0b51d1e9413fe069af472eb496f936.zip
clear compiler warning
Diffstat (limited to 'doc')
-rw-r--r--doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/Activator.java2
-rw-r--r--doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenMapWizardAction.java7
-rw-r--r--doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenProjectWizardAction.java12
3 files changed, 7 insertions, 14 deletions
diff --git a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/Activator.java b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/Activator.java
index 6c644a7cc..dc745af05 100644
--- a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/Activator.java
+++ b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/Activator.java
@@ -75,7 +75,7 @@ public class Activator extends AbstractUIPlugin {
public static void log(Exception ex) {
if (ex instanceof CoreException) {
- log((CoreException) ex);
+ log(((CoreException) ex).getStatus());
} else {
log(new Status(IStatus.ERROR, getPluginID(), 0, ex.getMessage(), ex));
}
diff --git a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenMapWizardAction.java b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenMapWizardAction.java
index 7a15b0104..4496aed67 100644
--- a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenMapWizardAction.java
+++ b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenMapWizardAction.java
@@ -20,7 +20,6 @@ import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IWorkbenchWizard;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.cheatsheets.ICheatSheetAction;
import org.eclipse.ui.cheatsheets.ICheatSheetManager;
@@ -70,9 +69,9 @@ public class OpenMapWizardAction extends Action implements ICheatSheetAction {
input.setInitialToolFile(params[3]);
}
- if (wizard instanceof IWorkbenchWizard) {
- ((IWorkbenchWizard) wizard).init(PlatformUI.getWorkbench(), new StructuredSelection());
- }
+ // as IWorkbenchWizard
+ wizard.init(PlatformUI.getWorkbench(), new StructuredSelection());
+
WizardDialog dialog = new WizardDialog(Activator.getActiveWorkbenchShell(), wizard);
dialog.create();
NewMapFileCreationPage filePage = (NewMapFileCreationPage) wizard.getPage("newMapFileCreationPage");
diff --git a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenProjectWizardAction.java b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenProjectWizardAction.java
index 004504745..957740062 100644
--- a/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenProjectWizardAction.java
+++ b/doc/org.eclipse.gmf.doc.ui/src/org/eclipse/gmf/internal/doc/ui/actions/OpenProjectWizardAction.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.gmf.internal.doc.ui.actions;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.runtime.CoreException;
import org.eclipse.gmf.internal.bridge.wizards.NewGMFProjectWizard;
import org.eclipse.gmf.internal.doc.ui.Activator;
import org.eclipse.jface.action.Action;
@@ -20,19 +18,15 @@ import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.IWorkbenchWizard;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.cheatsheets.ICheatSheetAction;
import org.eclipse.ui.cheatsheets.ICheatSheetManager;
-import org.eclipse.ui.dialogs.WizardNewProjectCreationPage;
public class OpenProjectWizardAction extends Action implements ICheatSheetAction {
private static final int SIZING_WIZARD_WIDTH = 500;
private static final int SIZING_WIZARD_HEIGHT = 500;
- private IFolder folder;
-
/**
* @param text
*/
@@ -71,9 +65,9 @@ public class OpenProjectWizardAction extends Action implements ICheatSheetAction
wizard.setInitialProjectName(projectName);
wizard.setShowDashboard(false);
- if (wizard instanceof IWorkbenchWizard) {
- ((IWorkbenchWizard) wizard).init(PlatformUI.getWorkbench(), new StructuredSelection());
- }
+ // as IWorkbenchWizard
+ wizard.init(PlatformUI.getWorkbench(), new StructuredSelection());
+
WizardDialog dialog = new WizardDialog(Activator.getActiveWorkbenchShell(), wizard);
dialog.create();
dialog.getShell().setSize(Math.max(SIZING_WIZARD_WIDTH, dialog.getShell().getSize().x), SIZING_WIZARD_HEIGHT);

Back to the top