1 11 package org.eclipse.debug.ui; 12 13 14 import org.eclipse.debug.core.ILaunch; 15 import org.eclipse.debug.core.ILaunchConfiguration; 16 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; 17 18 29 public abstract class AbstractLaunchConfigurationTabGroup implements ILaunchConfigurationTabGroup { 30 31 34 protected ILaunchConfigurationTab[] fTabs = null; 35 36 39 public ILaunchConfigurationTab[] getTabs() { 40 return fTabs; 41 } 42 43 48 protected void setTabs(ILaunchConfigurationTab[] tabs) { 49 fTabs = tabs; 50 } 51 52 57 public void dispose() { 58 ILaunchConfigurationTab[] tabs = getTabs(); 59 if (tabs != null) { 60 for (int i = 0; i < tabs.length; i++) { 61 tabs[i].dispose(); 62 } 63 } 64 } 65 66 71 public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { 72 ILaunchConfigurationTab[] tabs = getTabs(); 73 for (int i = 0; i < tabs.length; i++) { 74 tabs[i].setDefaults(configuration); 75 } 76 } 77 78 83 public void initializeFrom(ILaunchConfiguration configuration) { 84 ILaunchConfigurationTab[] tabs = getTabs(); 85 for (int i = 0; i < tabs.length; i++) { 86 tabs[i].initializeFrom(configuration); 87 } 88 } 89 90 95 public void performApply(ILaunchConfigurationWorkingCopy configuration) { 96 ILaunchConfigurationTab[] tabs = getTabs(); 97 for (int i = 0; i < tabs.length; i++) { 98 tabs[i].performApply(configuration); 99 } 100 } 101 102 108 public void launched(ILaunch launch) { 109 ILaunchConfigurationTab[] tabs = getTabs(); 110 for (int i = 0; i < tabs.length; i++) { 111 tabs[i].launched(launch); 112 } 113 } 114 115 } 116 | Popular Tags |