plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/ui/actions/DebugAction.java
--- a/plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/ui/actions/DebugAction.java Mon Aug 23 09:55:57 2010 -0700
+++ b/plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/ui/actions/DebugAction.java Mon Aug 23 10:30:05 2010 -0700
@@ -23,7 +23,7 @@
import org.eclipse.debug.internal.ui.actions.DebugLastAction;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
-import org.symbian.tools.wrttools.util.ProjectUtils;
+import org.symbian.tools.tmw.core.TMWCore;
@SuppressWarnings("restriction")
public class DebugAction extends DebugLastAction {
@@ -32,13 +32,13 @@
boolean hasWrtProjects = false;
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
for (IProject project : projects) {
- if (project.isAccessible() && ProjectUtils.hasWrtNature(project)) {
+ if (project.isAccessible() && TMWCore.create(project) != null) {
hasWrtProjects = true;
break;
}
}
if (hasWrtProjects) {
- super.run(action);
+ super.run(action);
} else {
MessageDialog.openInformation(getShell(), "Cannot launch debugger",
"There are no open projects in your workspace");