Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.debug.ui.launchConfigurations
Class JavaMainTab


java.lang.Object
  extended by 

org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended by 

org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchTab
          extended by org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
              extended by org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
                  extended by 
org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab
All Implemented Interfaces:
ILaunchConfigurationTab

public class JavaMainTab
extends org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab

A launch configuration tab that displays and edits project and main type name launch configuration attributes.

This class may be instantiated.

Since:
3.2
Restriction:
This class is not intended to be subclassed by clients.

Field Summary
static  String ATTR_CONSIDER_INHERITED_MAIN
          Boolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type.
static  String ATTR_INCLUDE_EXTERNAL_JARS
          Boolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type.
 
Fields inherited from class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
fMainText
 
Fields inherited from class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
EMPTY_STRING, fProjText
 
Constructor Summary
JavaMainTab ()
           
 
Method Summary
 void createControl ( Composite parent)
           
protected  void createMainTypeExtensions ( Composite parent)
          This method allows the group for main type to be extended with custom controls.
  String getId ()
           
  Image getImage ()
           
  String getName ()
           
protected  void handleSearchButtonSelected ()
          Show a dialog that lists all main types
 void initializeFrom ( ILaunchConfiguration config)
           
 boolean isValid ( ILaunchConfiguration config)
           
 void performApply ( ILaunchConfigurationWorkingCopy config)
           
 void setDefaults ( ILaunchConfigurationWorkingCopy config)
           
 
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
createMainTypeEditor, initializeMainTypeAndName, updateMainTypeFromConfig
 
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab
createProjectEditor, getDefaultListener, getJavaProject, getWorkspaceRoot, handleProjectButtonSelected, mapResources
 
Methods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations. JavaLaunchTab
getContext, getCurrentLaunchConfiguration, initializeJavaProject
 
Methods inherited from class org.eclipse.debug.ui. AbstractLaunchConfigurationTab
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, deactivated, dispose, getControl, getErrorMessage, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, isDirty, launched, setAttribute, setControl, setDirty, setErrorMessage, setLaunchConfigurationDialog, setMessage, updateLaunchConfigurationDialog
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_INCLUDE_EXTERNAL_JARS

public static final 
String ATTR_INCLUDE_EXTERNAL_JARS
Boolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type. Default value is false.

Since:
2.1

ATTR_CONSIDER_INHERITED_MAIN

public static final 
String ATTR_CONSIDER_INHERITED_MAIN
Boolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type. Default value is false.

Since:
3.0
Constructor Detail

JavaMainTab

public JavaMainTab()
Method Detail

createControl

public void createControl(
Composite parent)

createMainTypeExtensions

protected void createMainTypeExtensions(
Composite parent)
Description copied from class: org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
This method allows the group for main type to be extended with custom controls. All control added via this method come after the main type text editor and search button in the order they are added to the parent composite

Overrides:
createMainTypeExtensions in class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
Parameters:
parent - the parent to add to
See Also:
SharedJavaMainTab.createMainTypeExtensions(org.eclipse.swt.widgets.Composite)

getImage

public 
Image getImage()
Specified by:
getImage in interface ILaunchConfigurationTab
Overrides:
getImage in class AbstractLaunchConfigurationTab

getName

public 
String getName()

getId

public 
String getId()
Overrides:
getId in class AbstractLaunchConfigurationTab
Since:
3.3
See Also:
AbstractLaunchConfigurationTab.getId()

handleSearchButtonSelected

protected void handleSearchButtonSelected()
Show a dialog that lists all main types

Specified by:
handleSearchButtonSelected in class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab

initializeFrom

public void initializeFrom(
ILaunchConfiguration config)
Specified by:
initializeFrom in interface ILaunchConfigurationTab
Overrides:
initializeFrom in class org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaMainTab

isValid

public boolean isValid(
ILaunchConfiguration config)
Specified by:
isValid in interface ILaunchConfigurationTab
Overrides:
isValid in class AbstractLaunchConfigurationTab

performApply

public void performApply(
ILaunchConfigurationWorkingCopy config)

setDefaults

public void setDefaults(
ILaunchConfigurationWorkingCopy config)

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire