| /******************************************************************************* |
| * Copyright (c) 2014, 2018 Willink Transformations and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v20.html |
| * |
| * Contributors: |
| * R.Dvorak and others - QVTo debugger framework |
| * E.D.Willink - revised API for OCL debugger framework |
| *******************************************************************************/ |
| package org.eclipse.ocl.examples.debug.ui.launching; |
| |
| import java.util.ArrayList; |
| |
| import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; |
| import org.eclipse.debug.ui.CommonTab; |
| import org.eclipse.debug.ui.ILaunchConfigurationDialog; |
| import org.eclipse.debug.ui.ILaunchConfigurationTab; |
| |
| public class LaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup |
| { |
| public void createTabs(ILaunchConfigurationDialog dialog, String mode) { |
| ArrayList<ILaunchConfigurationTab> tabList = new ArrayList<ILaunchConfigurationTab>(); |
| tabList.add(new MainTab()); |
| tabList.add(new CommonTab()); |
| ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[tabList.size()]; |
| int i = 0; |
| for (ILaunchConfigurationTab tab : tabList) { |
| tabs[i] = tab; |
| i++; |
| } |
| setTabs(tabs); |
| } |
| } |