LaunchConfigurationSelectionDialog.java :  » IDE-Eclipse » debug » org » eclipse » debug » internal » ui » launchConfigurations » Java Open Source

Java Open Source » IDE Eclipse » debug 
debug » org » eclipse » debug » internal » ui » launchConfigurations » LaunchConfigurationSelectionDialog.java
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.debug.internal.ui.launchConfigurations;

import org.eclipse.debug.internal.ui.AbstractDebugListSelectionDialog;
import org.eclipse.debug.internal.ui.IDebugHelpContextIds;
import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.swt.widgets.Shell;

/**
 * This class provides a dialog for selecting a given launch configuration from a listing
 * 
 * @since 3.3.0
 * CONTEXTLAUNCHING
 */
public class LaunchConfigurationSelectionDialog extends AbstractDebugListSelectionDialog {

  private static final String DIALOG_SETTINGS = IDebugUIConstants.PLUGIN_ID + ".SELECT_LAUNCH_CONFIGURATION_DIALOG"; //$NON-NLS-1$;
  private Object fInput;
  
  /**
   * Constructor
   * @param parent
   */
  public LaunchConfigurationSelectionDialog(Shell parent, Object input) {
    super(parent);
    fInput = input;
    setTitle(LaunchConfigurationsMessages.LaunchConfigurationSelectionDialog_0);
  }

  /* (non-Javadoc)
   * @see org.eclipse.debug.internal.ui.launchConfigurations.AbstractDebugSelectionDialog#getDialogSettingsId()
   */
  protected String getDialogSettingsId() {
    return DIALOG_SETTINGS;
  }

  /* (non-Javadoc)
   * @see org.eclipse.debug.internal.ui.launchConfigurations.AbstractDebugSelectionDialog#getHelpContextId()
   */
  protected String getHelpContextId() {
    return IDebugHelpContextIds.SELECT_LAUNCH_CONFIGURATION_DIALOG;
  }

  /* (non-Javadoc)
   * @see org.eclipse.debug.internal.ui.launchConfigurations.AbstractDebugSelectionDialog#getViewerInput()
   */
  protected Object getViewerInput() {
    return fInput;
  }

  /* (non-Javadoc)
   * @see org.eclipse.debug.internal.ui.launchConfigurations.AbstractDebugSelectionDialog#getViewerLabel()
   */
  protected String getViewerLabel() {
    return LaunchConfigurationsMessages.LaunchConfigurationSelectionDialog_1;
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.