plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/internal/property/PropertyTester.java
equal
deleted
inserted
replaced
17 * Failures and causes: |
17 * Failures and causes: |
18 *******************************************************************************/ |
18 *******************************************************************************/ |
19 package org.symbian.tools.tmw.debug.internal.property; |
19 package org.symbian.tools.tmw.debug.internal.property; |
20 |
20 |
21 import org.eclipse.core.resources.IResource; |
21 import org.eclipse.core.resources.IResource; |
22 import org.symbian.tools.wrttools.util.ProjectUtils; |
22 import org.symbian.tools.tmw.core.TMWCore; |
23 |
23 |
24 public class PropertyTester extends org.eclipse.core.expressions.PropertyTester { |
24 public class PropertyTester extends org.eclipse.core.expressions.PropertyTester { |
25 |
25 |
26 public boolean test(Object receiver, String property, Object[] args, |
26 public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { |
27 Object expectedValue) { |
27 if (property.equals("isWrtProject")) { |
28 if (property.equals("isWrtProject")) { |
28 return TMWCore.create(((IResource) receiver).getProject()) != null; |
29 return ProjectUtils.hasWrtNature(((IResource) receiver).getProject()); |
29 } |
30 } |
30 return false; |
31 return false; |
31 } |
32 } |
|
33 |
32 |
34 } |
33 } |