trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/rules/TraceParameterRestrictionRule.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 which can be added to a TraceObject to prevent parameter addition
       
    17 *
       
    18 */
       
    19 package com.nokia.tracebuilder.rules;
       
    20 
       
    21 import com.nokia.tracebuilder.model.TraceObjectRule;
       
    22 
       
    23 /**
       
    24  * Interface which can be used to restrict changes to the parameters of trace
       
    25  * objects
       
    26  * 
       
    27  */
       
    28 public interface TraceParameterRestrictionRule extends TraceObjectRule {
       
    29 
       
    30 	/**
       
    31 	 * Called before showing add parameter dialog to user. If this returns
       
    32 	 * false, an error message is displayed
       
    33 	 * 
       
    34 	 * @return true if the dialog can be shown, false if an error message needs
       
    35 	 *         to be displayed
       
    36 	 */
       
    37 	public boolean canAddParameters();
       
    38 
       
    39 	/**
       
    40 	 * Called before removing a parameter. If this returns false, the parameter
       
    41 	 * is not removed and error message is displayed
       
    42 	 * 
       
    43 	 * @return true if the dialog can be shown, false if an error message needs
       
    44 	 *         to be displayed
       
    45 	 */
       
    46 	public boolean canRemoveParameters();
       
    47 
       
    48 }