org.eclipse.debug.ui.CommonTab Java Examples

The following examples show how to use org.eclipse.debug.ui.CommonTab. 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: SARLApplicationLaunchConfigurationTabGroup.java    From sarl with Apache License 2.0 6 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	final SARLApplicationMainLaunchConfigurationTab mainTab = new SARLApplicationMainLaunchConfigurationTab();
	final SARLRuntimeEnvironmentTab sreTab = new SARLRuntimeEnvironmentTab(false);
	sreTab.addSreChangeListener(mainTab);
	final ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
		mainTab,
		new JavaArgumentsTab(),
		sreTab,
		getClasspathTab(dialog),
		new SourceLookupTab(),
		new EnvironmentTab(),
		new CommonTab(),
	};
	setTabs(tabs);
}
 
Example #2
Source File: SARLAgentLaunchConfigurationTabGroup.java    From sarl with Apache License 2.0 6 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	final SARLAgentMainLaunchConfigurationTab mainTab = new SARLAgentMainLaunchConfigurationTab();
	final SARLRuntimeEnvironmentTab sreTab = new SARLRuntimeEnvironmentTab(true);
	sreTab.addSreChangeListener(mainTab);
	final ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
		mainTab,
		new SARLArgumentsTab(),
		sreTab,
		getClasspathTab(dialog),
		new SourceLookupTab(),
		new EnvironmentTab(),
		new CommonTab(),
	};
	setTabs(tabs);
}
 
Example #3
Source File: AnalysisEngineTabGroup.java    From uima-uimaj with Apache License 2.0 6 votes vote down vote up
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {

    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
            new AnalysisEngineMainTab(),
            new JavaArgumentsTab(),
            new JavaJRETab(),  // Java Runtime Environment
            new JavaClasspathTab(),
            // TODO: Error launch configuration does not support source lookup, why not?
            // It should be on the tab.
            new SourceLookupTab(),
            new EnvironmentTab(),
            new CommonTab()
            };
    
    setTabs(tabs);
  }
 
Example #4
Source File: JythonUnittestTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new UnittestArgumentsTab(mainModuleTab), new InterpreterTab(InterpreterManagersAPI.getJythonInterpreterManager()),
            new RefreshTab(), new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #5
Source File: DataflowPipelineLaunchConfigurationTabGroup.java    From google-cloud-eclipse with Apache License 2.0 5 votes vote down vote up
@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 #6
Source File: LauncherTabGroup.java    From xds-ide with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
			new LauncherTabMain(),
               new LauncherTabArguments(),
               new LauncherTabSettings(false),
			new EnvironmentTab(),
			new CommonTab()
		};
		setTabs(tabs);		
}
 
Example #7
Source File: JythonTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new ArgumentsTab(mainModuleTab), new InterpreterTab(InterpreterManagersAPI.getJythonInterpreterManager()),
            new RefreshTab(), new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #8
Source File: IronpythonTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new ArgumentsTab(mainModuleTab), new InterpreterTab(InterpreterManagersAPI.getIronpythonInterpreterManager()),
            new RefreshTab(), new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #9
Source File: JReFrameworkerTabGroup.java    From JReFrameworker with MIT License 5 votes vote down vote up
/**
 * 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 #10
Source File: GWTJUnitTabGroup.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {

  ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
      new JUnitLaunchConfigurationTabDecorator(), new GWTJUnitSettingsTab(),
      new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(),
      new SourceLookupTab(), new EnvironmentTab(), new CommonTab()};
  setTabs(tabs);
}
 
Example #11
Source File: DefaultLaunchConfigurationTabGroup.java    From txtUML with Eclipse Public License 1.0 5 votes vote down vote up
@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);
}
 
Example #12
Source File: WinLaunchConfigurationTabGroup.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	WinOptionsTab winTab = new WinOptionsTab();
	EnvironmentTab env = new EnvironmentTab();
	CommonTab common = new CommonTab();
	ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { winTab,
			env, common };
	setTabs(tabs);
}
 
Example #13
Source File: AndroidLaunchConfigurationTabGroup.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
	EnvironmentTab env = new EnvironmentTab();
	CommonTab common = new CommonTab();
	ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
		new AndroidSimOptionsTab(),
		env,
		common
	};
	setTabs(tabs);
}
 
Example #14
Source File: IOSSimLaunchConfigurationTabGroup.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	EnvironmentTab env = new EnvironmentTab();
	CommonTab common = new CommonTab();
	ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
			new IOSSimOptionsTab(),
		env,
		common
	};
	setTabs(tabs);


}
 
Example #15
Source File: WPLaunchConfigurationTabGroup.java    From thym with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	WPOptionsTab wpTab = new WPOptionsTab();
	EnvironmentTab env = new EnvironmentTab();
	CommonTab common = new CommonTab();
	ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { wpTab,
			env, common };
	setTabs(tabs);
}
 
Example #16
Source File: ScriptTabGroup.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
public void createTabs( ILaunchConfigurationDialog dialog, String mode )
{
	ILaunchConfigurationTab tabs[] = null;
	tabs = ( new ILaunchConfigurationTab[]{
			new ScriptMainTab( ),
			new JavaJRETab( ),
			new ScriptClasspathTab( ),
			new SourceLookupTab( ),
			new CommonTab( )
	} );
	setTabs( tabs );
}
 
Example #17
Source File: PythonUnittestTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new UnittestArgumentsTab(mainModuleTab), new InterpreterTab(InterpreterManagersAPI.getPythonInterpreterManager()),
            new RefreshTab(), new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #18
Source File: PydevdServerLaunchShortcut.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public ILaunchConfiguration createDefaultLaunchConfiguration(FileOrResource[] resources) {
    ILaunchManager manager = org.eclipse.debug.core.DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType type = manager.getLaunchConfigurationType(getLaunchConfigurationType());
    if (type == null) {
        reportError("Python launch configuration not found", null);
        return null;
    }

    StringBuffer buffer = new StringBuffer("Debug Server");
    String name = buffer.toString().trim();

    try {

        ILaunchConfigurationWorkingCopy workingCopy = type.newInstance(null, name);

        // Common Tab Arguments
        CommonTab tab = new CommonTab();
        tab.setDefaults(workingCopy);
        tab.dispose();

        // Python Main Tab Arguments
        workingCopy.setAttribute(Constants.ATTR_PROJECT, "PyDevd Debug Server");
        workingCopy.setAttribute(Constants.ATTR_RESOURCE_TYPE, 1);

        workingCopy.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, false);
        workingCopy.setAttribute(IDebugUIConstants.ATTR_PRIVATE, true);

        ILaunchConfiguration ret = workingCopy.doSave();
        return ret;
    } catch (CoreException e) {
        reportError(null, e);
        return null;
    }
}
 
Example #19
Source File: ProjectDependentTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new ArgumentsTab(mainModuleTab), new InterpreterTab(), new RefreshTab(), new EnvironmentTab(),
            new CommonTab() };
    setTabs(tabs);
}
 
Example #20
Source File: PythonTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new ArgumentsTab(mainModuleTab), new InterpreterTab(InterpreterManagersAPI.getPythonInterpreterManager()),
            new RefreshTab(), new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #21
Source File: IronpythonUnittestTabGroup.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
    MainModuleTab mainModuleTab = new MainModuleTab();
    ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
            new UnittestArgumentsTab(mainModuleTab),
            new InterpreterTab(InterpreterManagersAPI.getIronpythonInterpreterManager()), new RefreshTab(),
            new EnvironmentTab(), new CommonTab() };
    setTabs(tabs);
}
 
Example #22
Source File: AbstractLangTabGroup.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		createMainLaunchConfigTab(),
		new LangArgumentsTab(),
		new EnvironmentTab(),
		new CommonTab()
	});
}
 
Example #23
Source File: GoLaunchTabGroup.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		createMainLaunchConfigTab(),
		new LangArgumentsTab(),
		new EnvironmentTab(),
		new CommonTab()
	});
}
 
Example #24
Source File: AbstractLangDebugTabGroup.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
			createMainLaunchConfigTab(),
			new LangArgumentsTab(),
			new EnvironmentTab(),
			new Lang_LocalApplicationCDebuggerTab(),
			new SourceLookupTab(),
			new CommonTab(),
	});
}
 
Example #25
Source File: NodeRunDebugTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new RunProgramTab(),
		new EnvironmentTab(),
		new DSPOverrideSettingsTab(),
		new CommonTab()
	});
}
 
Example #26
Source File: NodeAttachDebugTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new NodeAttachDebugTab(),
		new DSPOverrideSettingsTab(),
		new CommonTab()
	});
}
 
Example #27
Source File: NpmLaunchTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new NpmLaunchTab(),
		new EnvironmentTab(),
		new CommonTab()
	});
}
 
Example #28
Source File: ChromeRunDebugTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new RunChromeDebugTab(),
		new EnvironmentTab(),
		new ChromeExecutableTab(),
		new DSPOverrideSettingsTab(),
		new CommonTab()
	});
}
 
Example #29
Source File: ChromeAttachDebugTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new ChromeAttachTab(),
		new ChromeExecutableTab(),
		new DSPOverrideSettingsTab(),
		new CommonTab()
	});
}
 
Example #30
Source File: FirefoxAttachDebugTabGroup.java    From wildwebdeveloper with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
	setTabs(new ILaunchConfigurationTab[] {
		new FirefoxAttachTab(),
		new DSPOverrideSettingsTab(),
		new CommonTab()
	});
}