48 } |
48 } |
49 |
49 |
50 @Override |
50 @Override |
51 public String getDisplayString() { |
51 public String getDisplayString() { |
52 // TODO We will need to cobble up proper display names |
52 // TODO We will need to cobble up proper display names |
53 return "(" + sbsv2Alias + ") " + "[" + sdk.getUniqueId() + "]" ; |
53 //return "(" + sbsv2Alias + ") " + "[" + sdk.getUniqueId() + "]" ; |
|
54 |
|
55 // TODO: This is temporary to support the old configs where |
|
56 // The display name and id were the same thing. Need to work on supporting both |
|
57 // as we migrate the display name to the settings and use a truly unique ID for configs. |
|
58 |
|
59 String EMULATOR_DISPLAY_TEXT = "Emulator"; //$NON-NLS-1$ |
|
60 String PHONE_DISPLAY_TEXT = "Phone"; //$NON-NLS-1$ |
|
61 String DEBUG_DISPLAY_TEXT = "Debug"; //$NON-NLS-1$ |
|
62 String RELEASE_DISPLAY_TEXT = "Release"; //$NON-NLS-1$ |
|
63 String SPACE_DISPLAY_TEXT = " "; //$NON-NLS-1$ |
|
64 String SDK_NOT_INSTALLED = "SDK not installed"; //$NON-NLS-1$ |
|
65 String displayString = null; |
|
66 if (displayString == null) { |
|
67 // in the form Emulation Debug (WINSCW) [S60_3rd_MR] or |
|
68 // Phone Release (GCCE) [S60_3rd_MR] |
|
69 if (platform.compareTo(ISymbianBuildContext.EMULATOR_PLATFORM) == 0) { |
|
70 displayString = EMULATOR_DISPLAY_TEXT; |
|
71 } else { |
|
72 displayString = PHONE_DISPLAY_TEXT; |
|
73 } |
|
74 |
|
75 if (target.compareTo(ISymbianBuildContext.DEBUG_TARGET) == 0) { |
|
76 displayString = displayString + SPACE_DISPLAY_TEXT + DEBUG_DISPLAY_TEXT; |
|
77 } else { |
|
78 displayString = displayString + SPACE_DISPLAY_TEXT + RELEASE_DISPLAY_TEXT; |
|
79 } |
|
80 |
|
81 String basePlatform = sbsv2Alias; |
|
82 |
|
83 displayString = displayString + " (" + basePlatform + ") [" + getSDK().getUniqueId() + "]"; //$NON-NLS-1$ |
|
84 } |
|
85 return displayString; |
54 } |
86 } |
55 |
87 |
56 @Override |
88 @Override |
57 public String getDefaultDefFileDirectoryName(boolean isASSP) { |
89 public String getDefaultDefFileDirectoryName(boolean isASSP) { |
58 // TOOD: THIS IS ABLD STUFF. isASSP does not belong with Raptor |
90 // TOOD: THIS IS ABLD STUFF. isASSP does not belong with Raptor |