|
1 /* |
|
2 * Copyright (c) 2010 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 the License "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 |
|
19 package com.nokia.cdt.internal.debug.launch.newwizard; |
|
20 |
|
21 import org.eclipse.core.resources.IProject; |
|
22 import org.eclipse.core.runtime.CoreException; |
|
23 import org.eclipse.core.runtime.IStatus; |
|
24 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
|
25 |
|
26 /** |
|
27 * The main interface for the wizard data |
|
28 * (implementors will typically also implement section specific interfaces) |
|
29 */ |
|
30 public interface IWizardData { |
|
31 |
|
32 /** |
|
33 * @return the label for the launch mode (i.e., "Debug" or "Run") |
|
34 */ |
|
35 String getModeLabel(); |
|
36 |
|
37 /** |
|
38 * Create a launch configuration from the data |
|
39 * @return ILaunchConfigurationWorkingCopy |
|
40 * @throws CoreException |
|
41 */ |
|
42 ILaunchConfigurationWorkingCopy createConfiguration() throws CoreException; |
|
43 |
|
44 /** |
|
45 * Make and return a copy |
|
46 * @return IWizardData |
|
47 */ |
|
48 IWizardData copy(); |
|
49 |
|
50 /** |
|
51 * Set this data from another |
|
52 * @param launchWizardData IWizardData |
|
53 */ |
|
54 void apply(IWizardData launchWizardData); |
|
55 |
|
56 /** |
|
57 * Validate the data |
|
58 * @return IStatus |
|
59 */ |
|
60 IStatus validate(); |
|
61 |
|
62 /** |
|
63 * Return true if this launch is for debug |
|
64 * @return boolean |
|
65 */ |
|
66 boolean isDebug(); |
|
67 |
|
68 /** |
|
69 * Get the project for this launch |
|
70 * @return IProject |
|
71 */ |
|
72 IProject getProject(); |
|
73 |
|
74 } |