trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/engine/propertydialog/ContextBasedTemplate.java
changeset 10 ed1c9f64298a
equal deleted inserted replaced
9:14dc2103a631 10:ed1c9f64298a
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 * Interface that can be implemented by property dialog templates to support context-specific availability
       
    17 *
       
    18 */
       
    19 package com.nokia.tracebuilder.engine.propertydialog;
       
    20 
       
    21 import com.nokia.tracebuilder.source.SourceContext;
       
    22 
       
    23 /**
       
    24  * Interface that can be implemented by property dialog templates to support
       
    25  * context-specific availability. The code instrumenter will not instrument
       
    26  * functions where this template is not available and this template will not be
       
    27  * shown in "Add Trace" dialog if not available in the function
       
    28  * 
       
    29  */
       
    30 public interface ContextBasedTemplate {
       
    31 
       
    32 	/**
       
    33 	 * Checks if this template can be used in the given source context
       
    34 	 * 
       
    35 	 * @param context
       
    36 	 *            the context to be checked
       
    37 	 * @return true if context is supported, false if not
       
    38 	 */
       
    39 	public boolean isAvailableInContext(SourceContext context);
       
    40 
       
    41 }