crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/Plugins/DbgEntCode/Descriptor/CodeDescriptor.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 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 */
       
    17 using System;
       
    18 using System.Collections.Generic;
       
    19 using System.Text;
       
    20 using System.IO;
       
    21 using System.Drawing;
       
    22 using SymbianUtils;
       
    23 using SymbianUtils.Settings;
       
    24 using SymbianUtils.FileSystem;
       
    25 using SymbianDebugLib.Entity;
       
    26 using SymbianDebugLib.Engine;
       
    27 using SymbianDebugLib.Entity.Primer;
       
    28 using SymbianDebugLib.Entity.Descriptors;
       
    29 using SymbianDebugLib.PluginAPI;
       
    30 using SymbianDebugLib.PluginAPI.Types;
       
    31 using SymbianDebugLib.PluginAPI.Types.Code;
       
    32 using DbgEntCode.Entity;
       
    33 
       
    34 namespace DbgEntCode.Descriptor
       
    35 {
       
    36     public class CodeDescriptor : DbgEntityDescriptor
       
    37     {
       
    38         #region Constructors
       
    39         public CodeDescriptor( DbgEntityDescriptorManager aManager )
       
    40             : base( aManager )
       
    41         {
       
    42         }
       
    43         #endregion
       
    44 
       
    45         #region From DbgEntityDescriptor
       
    46         public override DbgEntity Create( FSEntity aEntity )
       
    47         {
       
    48             // Returns null if not supported
       
    49             CodeEntity ret = CodeEntity.New( this, aEntity );
       
    50             return ret;
       
    51         }
       
    52 
       
    53         public override DbgEntity Create( XmlSettingCategory aSettingsCategory )
       
    54         {
       
    55             CodeEntity ret = CodeEntity.New( this, aSettingsCategory );
       
    56             return ret;
       
    57         }
       
    58 
       
    59         public override Image Icon
       
    60         {
       
    61             get { return Properties.Resources.Icon; }
       
    62         }
       
    63 
       
    64         public override DbgEntityDescriptor.TFileSystemBrowserType FileSystemBrowserType
       
    65         {
       
    66             get { return TFileSystemBrowserType.EFiles; }
       
    67         }
       
    68 
       
    69         public override string CategoryName
       
    70         {
       
    71             get { return "Code"; }
       
    72         }
       
    73 
       
    74         public override int DisplayOrder
       
    75         {
       
    76             get { return int.MaxValue - 40; }
       
    77         }
       
    78 
       
    79         public override TUnderlyingType UnderlyingType
       
    80         {
       
    81             get { return TUnderlyingType.ETypeCode; }
       
    82         }
       
    83         #endregion
       
    84 
       
    85         #region Properties
       
    86         #endregion
       
    87 
       
    88         #region Data members
       
    89         #endregion
       
    90     }
       
    91 }