debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/wizard/LaunchCategorySelectionPage.java
author john.dean.3@nokia.com
Thu, 05 Nov 2009 13:22:54 -0600
branchRCL_2_4
changeset 566 960058f9da89
parent 212 0e84cf0560e1
child 1384 10b788ab16fe
permissions -rw-r--r--
Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
212
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     1
/*
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     3
* All rights reserved.
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     4
* This component and the accompanying materials are made available
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     6
* which accompanies this distribution, and is available
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     8
*
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
     9
* Initial Contributors:
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    11
*
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    12
* Contributors:
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    13
*
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    14
* Description: 
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    15
*
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    16
*/
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    17
package com.nokia.cdt.internal.debug.launch.wizard;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    18
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    19
import java.util.ArrayList;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    20
import java.util.List;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    21
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    22
import org.eclipse.core.runtime.IConfigurationElement;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    23
import org.eclipse.core.runtime.IExtension;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    24
import org.eclipse.core.runtime.IExtensionPoint;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    25
import org.eclipse.core.runtime.IExtensionRegistry;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    26
import org.eclipse.core.runtime.IStatus;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    27
import org.eclipse.core.runtime.Platform;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    28
import org.eclipse.jface.dialogs.Dialog;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    29
import org.eclipse.jface.viewers.DoubleClickEvent;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    30
import org.eclipse.jface.viewers.IDoubleClickListener;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    31
import org.eclipse.jface.viewers.ISelectionChangedListener;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    32
import org.eclipse.jface.viewers.IStructuredContentProvider;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    33
import org.eclipse.jface.viewers.IStructuredSelection;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    34
import org.eclipse.jface.viewers.SelectionChangedEvent;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    35
import org.eclipse.jface.viewers.StructuredSelection;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    36
import org.eclipse.jface.viewers.TableViewer;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    37
import org.eclipse.jface.viewers.Viewer;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    38
import org.eclipse.jface.wizard.WizardPage;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    39
import org.eclipse.swt.SWT;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    40
import org.eclipse.swt.custom.SashForm;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    41
import org.eclipse.swt.layout.GridData;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    42
import org.eclipse.swt.layout.GridLayout;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    43
import org.eclipse.swt.widgets.Composite;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    44
import org.eclipse.swt.widgets.Control;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    45
import org.eclipse.swt.widgets.Label;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    46
import org.eclipse.ui.PlatformUI;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    47
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    48
import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    49
import com.nokia.cpp.internal.api.utils.core.Check;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    50
import com.nokia.cpp.internal.api.utils.core.Logging;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    51
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    52
class LaunchCategorySelectionPage extends WizardPage implements ISelectionChangedListener, IStructuredContentProvider {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    53
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    54
	private LaunchCreationWizard wizard;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    55
	private FormBrowser descriptionBrowser;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    56
	private TableViewer categorySelectionTableViewer = null;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    57
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    58
	private class LaunchCategory {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    59
		private String id;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    60
		private String name;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    61
		private String description;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    62
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    63
		LaunchCategory(String id, String name, String description) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    64
			this.id = id;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    65
			this.name = name;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    66
			this.description = description;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    67
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    68
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    69
		public String getId() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    70
			return id;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    71
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    72
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    73
		public String getName() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    74
			return name;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    75
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    76
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    77
		public String getDescription() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    78
			return description;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    79
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    80
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    81
		@Override
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    82
		public boolean equals(Object obj) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    83
			if (obj instanceof LaunchCategory) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    84
				LaunchCategory category = (LaunchCategory)obj;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    85
				
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    86
				// just compare the id and name to check for uniqueness
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    87
				return category.getId().equals(id) && category.getName().equals(name);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    88
			}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    89
			return false;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    90
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    91
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    92
		@Override
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    93
		public String toString() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    94
			return name;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    95
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    96
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    97
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    98
	private List<LaunchCategory> categories = new ArrayList<LaunchCategory>();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
    99
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   100
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   101
	public LaunchCategorySelectionPage(LaunchCreationWizard wizard) throws Exception {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   102
		super(Messages.getString("LaunchCategorySelectionPage.title")); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   103
		setTitle(Messages.getString("LaunchCategorySelectionPage.title")); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   104
		setDescription(Messages.getString("LaunchCategorySelectionPage.description")); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   105
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   106
		this.wizard = wizard;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   107
		descriptionBrowser = new FormBrowser();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   108
		descriptionBrowser.setText(""); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   109
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   110
		// add the built in categories
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   111
		if (wizard.getWizardsForCategory(AbstractLaunchWizard.PHONE_CATEGORY_ID).size() > 0) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   112
			categories.add(new LaunchCategory(AbstractLaunchWizard.PHONE_CATEGORY_ID,
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   113
					Messages.getString("LaunchCategorySelectionPage.phone"), //$NON-NLS-1$));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   114
					Messages.getString("LaunchCategorySelectionPage.phoneDesc"))); //$NON-NLS-1$));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   115
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   116
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   117
		if (wizard.getWizardsForCategory(AbstractLaunchWizard.BOARD_CATEGORY_ID).size() > 0) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   118
			categories.add(new LaunchCategory(AbstractLaunchWizard.BOARD_CATEGORY_ID,
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   119
					Messages.getString("LaunchCategorySelectionPage.board"), //$NON-NLS-1$));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   120
					Messages.getString("LaunchCategorySelectionPage.boardDesc"))); //$NON-NLS-1$));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   121
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   122
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   123
		loadCategoryExtensions();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   124
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   125
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   126
	public void createDescriptionIn(Composite composite) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   127
		descriptionBrowser.createControl(composite);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   128
		Control c = descriptionBrowser.getControl();
566
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   129
		c.setData(".uid", "LaunchCatagorySelection.descriptionBrowser");
212
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   130
		GridData gd = new GridData(GridData.FILL_BOTH);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   131
		gd.widthHint = 200;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   132
		c.setLayoutData(gd);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   133
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   134
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   135
	public void setDescriptionText(String text) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   136
		descriptionBrowser.setText(text);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   137
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   138
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   139
	public void moveToNextPage() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   140
		getContainer().showPage(getNextPage());
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   141
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   142
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   143
	public void createControl(Composite parent) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   144
		Composite container = new Composite(parent, SWT.NONE);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   145
		GridLayout layout = new GridLayout();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   146
		layout.verticalSpacing = 10;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   147
		container.setLayout(layout);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   148
		container.setLayoutData(new GridData(GridData.FILL_BOTH));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   149
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   150
		Label label = new Label(container, SWT.NONE);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   151
		label.setText(Messages.getString("LaunchCategorySelectionPage.categoryLabel")); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   152
		GridData gd = new GridData();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   153
		label.setLayoutData(gd);
566
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   154
		label.setData(".uid", "LaunchCategorySelectionPage.label");
212
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   155
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   156
		SashForm sashForm = new SashForm(container, SWT.VERTICAL);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   157
		gd = new GridData(GridData.FILL_BOTH);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   158
		gd.widthHint = 300;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   159
		gd.heightHint = 300;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   160
		gd.minimumHeight = 230;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   161
		sashForm.setLayoutData(gd);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   162
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   163
		categorySelectionTableViewer = new TableViewer(sashForm, SWT.BORDER);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   164
		categorySelectionTableViewer.setContentProvider(this);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   165
		categorySelectionTableViewer.addDoubleClickListener(new IDoubleClickListener() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   166
			public void doubleClick(DoubleClickEvent event) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   167
				selectionChanged(new SelectionChangedEvent(categorySelectionTableViewer, categorySelectionTableViewer.getSelection()));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   168
				moveToNextPage();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   169
			}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   170
		});
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   171
		categorySelectionTableViewer.setInput(categories);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   172
		categorySelectionTableViewer.addSelectionChangedListener(this);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   173
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   174
		createDescriptionIn(sashForm);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   175
		sashForm.setWeights(new int[] {75, 25});
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   176
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   177
		Dialog.applyDialogFont(container);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   178
		setControl(container);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   179
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   180
		// select the first element by default
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   181
		categorySelectionTableViewer.setSelection(new StructuredSelection(categorySelectionTableViewer.getElementAt(0)), true);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   182
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   183
		PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), LaunchWizardHelpIds.CATEGORY_SELECTION_PAGE);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   184
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   185
	
566
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   186
	public TableViewer getViewer() {
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   187
		return categorySelectionTableViewer;
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   188
	}
960058f9da89 Created access to all runtime LaunchCreationWizard, pages and widgets. Added getTableViewer() to the pages with a TableViewer. LaunchCreationWizard itself is now generated by a factory class whose factory is replacable at runtime allowing the ATF to inject it own LaunchCreationWizard and maintain a runtime instance for testing purposes. Resolves bug 10117.
john.dean.3@nokia.com
parents: 212
diff changeset
   189
	
212
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   190
	public void selectionChanged(SelectionChangedEvent event) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   191
		String description = null;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   192
		IStructuredSelection selection = (IStructuredSelection) event.getSelection();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   193
		if (!selection.isEmpty()) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   194
			LaunchCategory selectedCategory = (LaunchCategory)selection.getFirstElement();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   195
			description = selectedCategory.getDescription();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   196
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   197
		setDescriptionText(description);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   198
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   199
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   200
	public void setVisible(boolean visible) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   201
		super.setVisible(visible);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   202
		if (visible && categorySelectionTableViewer != null) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   203
			categorySelectionTableViewer.getTable().setFocus();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   204
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   205
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   206
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   207
	public Object[] getElements(Object inputElement) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   208
		return categories.toArray();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   209
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   210
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   211
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   212
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   213
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   214
	public String getSelectedCategoryId() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   215
		IStructuredSelection selection = (IStructuredSelection)categorySelectionTableViewer.getSelection();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   216
		LaunchCategory selectedCategory = (LaunchCategory)selection.getFirstElement();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   217
		return selectedCategory.getId();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   218
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   219
	
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   220
	private void loadCategoryExtensions() {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   221
		// load any category extensions
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   222
		IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   223
		IExtensionPoint extensionPoint = extensionRegistry.getExtensionPoint(LaunchPlugin.PLUGIN_ID + ".launchCategoryExtension"); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   224
		IExtension[] extensions = extensionPoint.getExtensions();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   225
		
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   226
		for (int i = 0; i < extensions.length; i++) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   227
			IExtension extension = extensions[i];
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   228
			IConfigurationElement[] elements = extension.getConfigurationElements();
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   229
			Check.checkContract(elements.length == 1);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   230
			IConfigurationElement element = elements[0];
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   231
			
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   232
			boolean failed = false;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   233
			try {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   234
				String id = element.getAttribute("id"); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   235
				String name = element.getAttribute("name"); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   236
				String description = element.getAttribute("description"); //$NON-NLS-1$
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   237
				if (id == null || name == null || description == null) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   238
					failed = true;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   239
				} else {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   240
					if (wizard.getWizardsForCategory(id).size() > 0) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   241
						LaunchCategory category = new LaunchCategory(id, name, description);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   242
						if (!categories.contains(category)) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   243
							categories.add(category);
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   244
						} else {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   245
							failed = true;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   246
						}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   247
					}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   248
				}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   249
			} 
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   250
			catch (Exception e) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   251
				failed = true;
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   252
			}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   253
			
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   254
			if (failed) {
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   255
				LaunchPlugin.log(Logging.newStatus(LaunchPlugin.getDefault(), 
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   256
						IStatus.ERROR,
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   257
						"Unable to load launchCategoryExtension extension from " + extension.getContributor().getName()));
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   258
			}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   259
		}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   260
	}
0e84cf0560e1 added the new launch wizard UI and updated existing wizards to match. fixed bug where the launch wizard wasn't taking into account if a launch type supported the given mode (run/debug). fixed some problems with the refactor of the t32 and platsim into their own plugins.
wpaul
parents:
diff changeset
   261
}