1 11 package org.eclipse.pde.ui.launcher; 12 13 import org.eclipse.debug.core.ILaunchConfiguration; 14 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; 15 import org.eclipse.debug.ui.AbstractLaunchConfigurationTab; 16 import org.eclipse.swt.SWT; 17 import org.eclipse.swt.layout.GridData; 18 import org.eclipse.swt.widgets.Composite; 19 import org.eclipse.swt.widgets.Label; 20 21 28 public abstract class AbstractLauncherTab extends AbstractLaunchConfigurationTab { 29 30 37 protected void createStartingSpace(Composite parent, int span) { 38 Label label = new Label(parent, SWT.NULL); 39 GridData data = new GridData(); 40 data.horizontalSpan = span; 41 label.setLayoutData(data); 42 } 43 44 51 public boolean isValid(ILaunchConfiguration config) { 52 return getErrorMessage() == null; 53 } 54 55 58 public void activated(ILaunchConfigurationWorkingCopy workingCopy) { 59 } 60 61 64 public void deactivated(ILaunchConfigurationWorkingCopy workingCopy) { 65 } 66 67 72 public void updateLaunchConfigurationDialog() { 73 validateTab(); 74 super.updateLaunchConfigurationDialog(); 75 } 76 77 81 public abstract void validateTab(); 82 83 } 84 | Popular Tags |