Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.st.ui.internal » [javadoc | source]

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *    http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.geronimo.st.ui.internal;
   18   
   19   import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
   20   import org.eclipse.debug.ui.CommonTab;
   21   import org.eclipse.debug.ui.EnvironmentTab;
   22   import org.eclipse.debug.ui.ILaunchConfigurationDialog;
   23   import org.eclipse.debug.ui.ILaunchConfigurationTab;
   24   import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
   25   import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
   26   import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
   27   import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab;
   28   
   29   /**
   30    * @version $Rev: 471551 $ $Date: 2006-11-06 06:47:11 +0800 (Mon, 06 Nov 2006) $
   31    */
   32   public class GeronimoLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup {
   33   
   34   	/*
   35   	 * (non-Javadoc)
   36   	 * 
   37   	 * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog,
   38   	 *      java.lang.String)
   39   	 */
   40   	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
   41   		ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[6];
   42   		tabs[0] = new ServerLaunchConfigurationTab(new String[] { "org.apache.geronimo" });
   43   		tabs[0].setLaunchConfigurationDialog(dialog);
   44   		tabs[1] = new JavaArgumentsTab();
   45   		tabs[1].setLaunchConfigurationDialog(dialog);
   46   		tabs[2] = new JavaClasspathTab();
   47   		tabs[2].setLaunchConfigurationDialog(dialog);
   48   		tabs[3] = new SourceLookupTab();
   49   		tabs[3].setLaunchConfigurationDialog(dialog);
   50   		tabs[4] = new EnvironmentTab();
   51   		tabs[4].setLaunchConfigurationDialog(dialog);
   52   		tabs[5] = new CommonTab();
   53   		tabs[5].setLaunchConfigurationDialog(dialog);
   54   		setTabs(tabs);
   55   	}
   56   
   57   }

Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.st.ui.internal » [javadoc | source]