org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab Java Examples
The following examples show how to use
org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GhidraLaunchTabGroup.java From ghidra with Apache License 2.0 | 6 votes |
/** * Gets the {@link JavaMainTab} to use, with Ghidra's main method pre-configured in. * * @return The {@link JavaMainTab} to use, with Ghidra's main method pre-configured in. */ private JavaMainTab getJavaMainTab() { return new JavaMainTab() { @Override public void initializeFrom(ILaunchConfiguration config) { try { ILaunchConfigurationWorkingCopy wc = config.getWorkingCopy(); GhidraLaunchUtils.setMainTypeName(wc); super.initializeFrom(wc.doSave()); } catch (CoreException e) { EclipseMessageUtils.error("Failed to initialize the java main tab.", e); } } }; }
Example #2
Source File: DataflowPipelineLaunchConfigurationTabGroup.java From google-cloud-eclipse with Apache License 2.0 | 5 votes |
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { // Use the same tab layout as the Java tabs, except with a custom Arguments tab List<ILaunchConfigurationTab> tabs = new ArrayList<>(); JavaMainTab javaMainTab = new JavaMainTab(); tabs.add(javaMainTab); PipelineArgumentsTab pipelineArgumentsTab = new PipelineArgumentsTab(); tabs.add(pipelineArgumentsTab); JavaArgumentsTab javaArgumentsTab = new JavaArgumentsTab(); tabs.add(javaArgumentsTab); JavaJRETab jreTab = new JavaJRETab(); tabs.add(jreTab); JavaClasspathTab classpathTab = new JavaClasspathTab(); tabs.add(classpathTab); SourceLookupTab sourceLookupTab = new SourceLookupTab(); tabs.add(sourceLookupTab); EnvironmentTab environmentTab = new EnvironmentTab(); tabs.add(environmentTab); CommonTab commonTab = new CommonTab(); tabs.add(commonTab); setTabs(tabs.toArray(new ILaunchConfigurationTab[0])); }
Example #3
Source File: JReFrameworkerTabGroup.java From JReFrameworker with MIT License | 5 votes |
/** * Creates the tabs contained in this tab group for the specified launch * mode. * * @author Ben Holland */ @Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaMainTab(), new JavaArgumentsTab(), new JavaJRETab(), new JavaClasspathTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }
Example #4
Source File: DefaultLaunchConfigurationTabGroup.java From txtUML with Eclipse Public License 1.0 | 5 votes |
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaMainTab(), new JavaArgumentsTab(), new JavaJRETab(), new JavaClasspathTab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }