trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/engine/TraceObjectPropertyDialogTemplate.java
changeset 10 ed1c9f64298a
equal deleted inserted replaced
9:14dc2103a631 10:ed1c9f64298a
       
     1 /*
       
     2 * Copyright (c) 2008 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 to a template for the property dialog
       
    17 *
       
    18 */
       
    19 package com.nokia.tracebuilder.engine;
       
    20 
       
    21 import java.util.List;
       
    22 
       
    23 import com.nokia.tracebuilder.model.TraceModelExtension;
       
    24 
       
    25 /**
       
    26  * Interface to a template for the property dialog. Templates contain predefined
       
    27  * values for property dialogs.
       
    28  * 
       
    29  */
       
    30 public interface TraceObjectPropertyDialogTemplate {
       
    31 
       
    32 	/**
       
    33 	 * Gets the title of the template
       
    34 	 * 
       
    35 	 * @return the title
       
    36 	 */
       
    37 	public String getTitle();
       
    38 
       
    39 	/**
       
    40 	 * Gets the object name
       
    41 	 * 
       
    42 	 * @return the name
       
    43 	 */
       
    44 	public String getName();
       
    45 
       
    46 	/**
       
    47 	 * Gets the object value
       
    48 	 * 
       
    49 	 * @return the value
       
    50 	 */
       
    51 	public String getValue();
       
    52 
       
    53 	/**
       
    54 	 * Checks if the target can be changed after it has been set to the value
       
    55 	 * specified by this template
       
    56 	 * 
       
    57 	 * @return true if target can be changed, false if not
       
    58 	 */
       
    59 	public boolean isTargetEnabled();	
       
    60 	
       
    61 	/**
       
    62 	 * Checks if the ID can be changed after it has been set to the value
       
    63 	 * specified by this template
       
    64 	 * 
       
    65 	 * @return true if ID can be changed, false if not
       
    66 	 */
       
    67 	public boolean isIDEnabled();
       
    68 
       
    69 	/**
       
    70 	 * Checks if the name can be changed after it has been set to the value
       
    71 	 * specified by this template
       
    72 	 * 
       
    73 	 * @return true if name can be changed, false if not
       
    74 	 */
       
    75 	public boolean isNameEnabled();
       
    76 
       
    77 	/**
       
    78 	 * Checks if the value can be changed after it has been set to the value
       
    79 	 * specified by this template
       
    80 	 * 
       
    81 	 * @return true if value can be changed, false if not
       
    82 	 */
       
    83 	public boolean isValueEnabled();
       
    84 
       
    85 	/**
       
    86 	 * Creates the extensions provided by this template and adds them to the
       
    87 	 * given list. The extensions are passed to the creation function of object
       
    88 	 * factory.
       
    89 	 * 
       
    90 	 * @param list
       
    91 	 *            the list where extension are added
       
    92 	 */
       
    93 	public void createExtensions(List<TraceModelExtension> list);
       
    94 
       
    95 }