plugins/org.symbian.tools.tmw.debug/src/org/symbian/tools/tmw/debug/internal/property/DebuggerPropertyTester.java
equal
deleted
inserted
replaced
|
1 /******************************************************************************* |
|
2 * Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Symbian Foundation - initial contribution. |
|
11 * Contributors: |
|
12 * Description: |
|
13 * Overview: |
|
14 * Details: |
|
15 * Platforms/Drives/Compatibility: |
|
16 * Assumptions/Requirement/Pre-requisites: |
|
17 * Failures and causes: |
|
18 *******************************************************************************/ |
|
19 package org.symbian.tools.tmw.debug.internal.property; |
|
20 |
|
21 import org.eclipse.core.resources.IResource; |
|
22 import org.symbian.tools.tmw.core.TMWCore; |
|
23 |
|
24 public class DebuggerPropertyTester extends org.eclipse.core.expressions.PropertyTester { |
|
25 |
|
26 public boolean test(Object receiver, String property, Object[] args, Object expectedValue) { |
|
27 if (property.equals("isWrtProject")) { |
|
28 return TMWCore.create(((IResource) receiver).getProject()) != null; |
|
29 } |
|
30 return false; |
|
31 } |
|
32 |
|
33 } |