本文整理汇总了Java中org.eclipse.debug.ui.ILaunchConfigurationTab类的典型用法代码示例。如果您正苦于以下问题:Java ILaunchConfigurationTab类的具体用法?Java ILaunchConfigurationTab怎么用?Java ILaunchConfigurationTab使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ILaunchConfigurationTab类属于org.eclipse.debug.ui包,在下文中一共展示了ILaunchConfigurationTab类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String arg1) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
// A launch configuration tab that displays end edits GraphWalker offline command argument
new GW4ELaunchConfigurationTab(),
// A launch configuration tab that displays and edits program
// arguments, VM arguments, and working directory launch
// configuration attributes.
new JavaArgumentsTab(),
// A launch configuration tab that displays and edits the user
// and bootstrap classes comprising the classpath launch
// configuration attribute.
new JavaClasspathTab(),
// A launch configuration tab that displays and edits the VM
// install launch configuration attributes.
new JavaJRETab(),
// Launch configuration tab for configuring the environment
// passed into Runtime.exec(...) when a config is launched.
new EnvironmentTab(),
// Launch configuration tab used to specify the location a
// launch configuration is stored in, whether it should appear
// in the favorites listViewer, and perspective switching behavior for
// an associated launch.
new CommonTab() };
setTabs(tabs);
}
示例2: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
// TODO Auto-generated method stub
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new GaugeParametersTab(),
new WorkingDirectoryBlock(Constants.WORKING_DIRECTORY) {
@Override
protected IProject getProject(ILaunchConfiguration configuration)
throws CoreException {
// TODO Auto-generated method stub
return null;
}
},
new EnvironmentTab(),
new CommonTab()
};
setTabs(tabs);
}
示例3: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
launchConfigurationDialog = dialog;
WebAppArgumentsTab argsTab = new WebAppArgumentsTab();
GwtCompilerSettingsTab gwtSettingsTab = new GwtCompilerSettingsTab(argsTab);
WebAppMainTab webAppMainTab = new WebAppMainTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
webAppMainTab,
gwtSettingsTab,
argsTab,
new JavaJRETab(),
new JavaClasspathTab(),
new SourceLookupTab(),
new EnvironmentTab(),
new CommonTab()};
setTabs(tabs);
}
示例4: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
launchConfigurationDialog = dialog;
WebAppArgumentsTab argsTab = new WebAppArgumentsTab();
GWTSettingsTab gwtSettingsTab = null;
ExtensionQuery<IGWTSettingsTabFactory> extQuery = new ExtensionQuery<IGWTSettingsTabFactory>(GWTPlugin.PLUGIN_ID,
"gwtSettingsTabFactory", "class");
List<ExtensionQuery.Data<IGWTSettingsTabFactory>> gwtSettingsTabFactories = extQuery.getData();
for (ExtensionQuery.Data<IGWTSettingsTabFactory> factory : gwtSettingsTabFactories) {
IGWTSettingsTabFactory tabFactory = factory.getExtensionPointData();
gwtSettingsTab = tabFactory.newInstance(argsTab);
break;
}
if (gwtSettingsTab == null) {
gwtSettingsTab = new GWTSettingsTab(argsTab);
}
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new WebAppMainTab(),
new WebAppServerTab(argsTab, true, true), gwtSettingsTab, argsTab, new JavaJRETab(),
new JavaClasspathTab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
示例5: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
public void createTabs(ILaunchConfigurationDialog dialog, String mode)
{
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[6];
tabs[0] = new ServerLaunchConfigurationTab(__SERVER_TYPE_IDS);
tabs[0].setLaunchConfigurationDialog(dialog);
tabs[1] = new JavaArgumentsTab();
tabs[1].setLaunchConfigurationDialog(dialog);
tabs[2] = new JavaClasspathTab();
tabs[2].setLaunchConfigurationDialog(dialog);
tabs[3] = new SourceLookupTab();
tabs[3].setLaunchConfigurationDialog(dialog);
tabs[4] = new EnvironmentTab();
tabs[4].setLaunchConfigurationDialog(dialog);
tabs[5] = new CommonTab();
tabs[5].setLaunchConfigurationDialog(dialog);
setTabs(tabs);
}
示例6: testCreateTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Test
public void testCreateTabs() {
RunTestsLaunchConfigurationTabGroup tabGroup = new RunTestsLaunchConfigurationTabGroup();
ILaunchConfigurationDialog mockDialog = mock(ILaunchConfigurationDialog.class);
String mockMode = "";
tabGroup.createTabs(mockDialog, mockMode);
ILaunchConfigurationTab[] tabs = tabGroup.getTabs();
assertNotNull(tabs);
assertEquals(3, tabs.length);
assertTrue(tabs[0] instanceof ProjectConfigurationTab);
assertTrue(tabs[1] instanceof TestConfigurationTab);
assertTrue(tabs[2] instanceof CommonTab);
ProjectConfigurationTab projectTab = (ProjectConfigurationTab) tabs[0];
assertNotNull(projectTab.getSiblingTab());
TestConfigurationTab testTab = (TestConfigurationTab) tabs[1];
assertNotNull(testTab.getSiblingTab());
}
示例7: widgetSelected
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void widgetSelected(SelectionEvent e) {
if (e.getSource() == fButtonSeeResultingCommandLine) {
try {
// ok, show the command-line to the user
ILaunchConfigurationDialog launchConfigurationDialog = getLaunchConfigurationDialog();
for (ILaunchConfigurationTab launchConfigurationTab : launchConfigurationDialog.getTabs()) {
launchConfigurationTab.performApply(fWorkingCopyForCommandLineGeneration);
}
PythonRunnerConfig config = getConfig(fWorkingCopyForCommandLineGeneration,
launchConfigurationDialog);
if (config == null) {
fCommandLineText
.setText("Unable to make the command-line. \n\nReason:Interpreter not available for current project.");
} else {
String commandLineAsString = config.getCommandLineAsString();
commandLineAsString = WrapAndCaseUtils.wrap(commandLineAsString, 80);
commandLineAsString += "\n\nThe PYTHONPATH that will be used is:\n\n";
commandLineAsString += config.pythonpathUsed;
fCommandLineText.setText(commandLineAsString);
}
} catch (Exception e1) {
fCommandLineText.setText("Unable to make the command-line. \n\nReason:\n\n" + e1.getMessage());
}
}
}
示例8: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
// This code is copied from the method on JavaLaunchConfigurationTabGroup,
// with the sole exception of inserting "new SplunkTab()," right before
// "new CommonTab()". This set of tabs changes very rarely, so it is
// cleaner to copy this one statement than to try to dig into the
// JDT dynamically to get the tab list.
//
// If you are adding additional tabs, they should go after SplunkTab
// but before CommonTab. Eclipse's UI guidelines specify that CommonTab
// should always be last.
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new JavaMainTab(),
new JavaArgumentsTab(),
new SourceLookupTab(),
new EnvironmentTab(),
new SplunkTab(),
new CommonTab()
};
setTabs(tabs);
}
示例9: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(final ILaunchConfigurationDialog dialog, final String mode) {
final RConsoleMainTab mainTab = new CustomRConsoleMainTab();
final REnvTab renvTab = new REnvTab(true, false);
final boolean jdt = true;
final ILaunchConfigurationTab[] tabs = jdt ? new ILaunchConfigurationTab[] {
mainTab,
renvTab,
new RConsoleOptionsTab(),
new EnvironmentTabForR(),
new ExtJavaJRETab(mainTab, renvTab),
new ExtJavaClasspathTab(),
new SourceLookupTab(),
new CommonTabForConsole()
} : new ILaunchConfigurationTab[] {
mainTab,
renvTab,
new EnvironmentTabForR(),
new CommonTabForConsole()
};
setTabs(tabs);
}
示例10: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new LaunchConfigurationMainTab(),
};
setTabs(tabs);
}
示例11: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new LaunchConfigurationMainTab(),
new LaunchConfigurationBackendsTab(),
new CommonTab()
};
setTabs(tabs);
}
示例12: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs ( final ILaunchConfigurationDialog dialog, final String mode )
{
ILaunchConfigurationTab[] tabs;
tabs = new ILaunchConfigurationTab[] { new HiveTab () };
setTabs ( tabs );
}
示例13: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String arg1) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
// A launch configuration tab that displays end edits GraphWalker Manual Runner command argument
new GW4ELaunchConfigurationTab( ),
};
setTabs(tabs);
}
示例14: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String arg1) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
// A launch configuration tab that displays end edits GraphWalker offline command argument
new GW4ELaunchConfigurationTab( ),
// A launch configuration tab that displays and edits program
// arguments, VM arguments, and working directory launch
// configuration attributes.
new JavaArgumentsTab(),
// A launch configuration tab that displays and edits the user
// and bootstrap classes comprising the classpath launch
// configuration attribute.
new JavaClasspathTab(),
// A launch configuration tab that displays and edits the VM
// install launch configuration attributes.
new JavaJRETab(),
// Source lookup configuration tab
new SourceLookupTab (),
// Launch configuration tab for configuring the environment
// passed into Runtime.exec(...) when a config is launched.
new EnvironmentTab(),
// Launch configuration tab used to specify the location a
// launch configuration is stored in, whether it should appear
// in the favorites listViewer, and perspective switching behavior for
// an associated launch.
new CommonTab() };
setTabs(tabs);
}
示例15: createTabs
import org.eclipse.debug.ui.ILaunchConfigurationTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
setTabs(new ILaunchConfigurationTab[] {configTab,
new JavaMainTab(),
new JavaArgumentsTab(),
new JavaJRETab(),
new JavaClasspathTab(),
new SourceLookupTab(),
new EnvironmentTab(),
new CommonTab() });
}