From 5aa10c7fc02601960c78028ddc95b67ac5fddc79 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 17 Dec 2014 13:39:20 -0500 Subject: [PATCH] Bug 455537 - Allow to override LaunchVMProvider Change-Id: If74576fcf9764d08b76a968a5bf788445d294166 Signed-off-by: Marc Khouzam Reviewed-on: https://git.eclipse.org/r/38434 --- .../internal/ui/viewmodel/launch/LaunchVMProvider.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/viewmodel/launch/LaunchVMProvider.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/viewmodel/launch/LaunchVMProvider.java index 16a0d1d0f57..461cdba7ed0 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/viewmodel/launch/LaunchVMProvider.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/viewmodel/launch/LaunchVMProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2010 Wind River Systems and others. + * Copyright (c) 2006, 2014 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,7 +7,8 @@ * * Contributors: * Wind River Systems - initial API and implementation - * Ericsson - Modified for new functionality + * Ericsson - Modified for new functionality + * Marc Khouzam (Ericsson) - Allow to override this class (Bug 455537) *******************************************************************************/ package org.eclipse.cdt.dsf.gdb.internal.ui.viewmodel.launch; @@ -57,6 +58,10 @@ public class LaunchVMProvider extends AbstractLaunchVMProvider { super(adapter, presentationContext, session); + createNodes(); + } + + protected void createNodes() { IRootVMNode launchNode = new LaunchRootVMNode(this); setRootNode(launchNode);