|
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 */ |
|
17 |
|
18 package com.nokia.s60tools.crashanalyser.ui.wizards; |
|
19 |
|
20 import com.nokia.s60tools.ui.wizards.DebugMetadataWizardPage; |
|
21 import com.nokia.s60tools.crashanalyser.model.*; |
|
22 import com.nokia.s60tools.crashanalyser.resources.HelpContextIDs; |
|
23 import com.nokia.s60tools.sdk.SdkUtils; |
|
24 import java.util.HashMap; |
|
25 |
|
26 /** |
|
27 * This 3rd wizard page will query the user for locations of symbol files, |
|
28 * map files and image files. |
|
29 * |
|
30 */ |
|
31 public class ParameterFilesPage extends DebugMetadataWizardPage { |
|
32 DecoderEngine engine; |
|
33 boolean decodingWizard; |
|
34 |
|
35 public ParameterFilesPage(DecoderEngine decEng, boolean decodeWizard){ |
|
36 super("", |
|
37 "Define Decoding Preferences.", |
|
38 true, |
|
39 UserEnteredData.getParameterFilesSection(), |
|
40 UserEnteredData.MAX_SAVED_VALUES); |
|
41 |
|
42 engine = decEng; |
|
43 decodingWizard = decodeWizard; |
|
44 } |
|
45 |
|
46 public boolean folderContainsMapFiles(String folder) { |
|
47 return SdkUtils.folderContainsMapFiles(folder); |
|
48 } |
|
49 |
|
50 public boolean zipContainsMapFiles(String path) { |
|
51 return SdkUtils.zipContainsMapFiles(path); |
|
52 } |
|
53 |
|
54 public String getHelpContext() { |
|
55 if (decodingWizard) |
|
56 return HelpContextIDs.CRASH_ANALYSER_HELP_DECODE_CRASH_FILES; |
|
57 else |
|
58 return HelpContextIDs.CRASH_ANALYSER_HELP_IMPORT_CRASH_FILES; |
|
59 } |
|
60 |
|
61 public boolean canFinish() { |
|
62 return canProceed(); |
|
63 } |
|
64 |
|
65 public HashMap<String, String> getSdkMapFolders() { |
|
66 return SdkUtils.getSdkMapFileFolders(true); |
|
67 } |
|
68 |
|
69 public boolean canFlipToNextPage() { |
|
70 return false; |
|
71 } |
|
72 } |