本文整理汇总了Java中org.eclipse.debug.ui.RefreshTab类的典型用法代码示例。如果您正苦于以下问题:Java RefreshTab类的具体用法?Java RefreshTab怎么用?Java RefreshTab使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RefreshTab类属于org.eclipse.debug.ui包,在下文中一共展示了RefreshTab类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: run
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public IStatus run(final IProgressMonitor monitor) {
IStatus _xblockexpression = null;
{
try {
RefreshTab.refreshResources(this.configuration, monitor);
} catch (final Throwable _t) {
if (_t instanceof CoreException) {
final CoreException e = (CoreException)_t;
String _message = e.getMessage();
RefreshJob.logger.error(_message, e);
return e.getStatus();
} else {
throw Exceptions.sneakyThrow(_t);
}
}
_xblockexpression = Status.OK_STATUS;
}
return _xblockexpression;
}
开发者ID:oehme,项目名称:xtext-maven-example,代码行数:20,代码来源:RefreshJob.java
示例2: createConfiguration
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public ILaunchConfiguration createConfiguration() {
try {
ILaunchConfiguration _xblockexpression = null;
{
DebugPlugin _default = DebugPlugin.getDefault();
final ILaunchManager launchManager = _default.getLaunchManager();
final ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType("org.xtext.builddsl.ui.BuildLaunchConfigurationType");
String _name = this.getName();
String _generateUniqueLaunchConfigurationNameFrom = launchManager.generateUniqueLaunchConfigurationNameFrom(_name);
final ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, _generateUniqueLaunchConfigurationNameFrom);
String _project = this.getProject();
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, _project);
String _clazz = this.getClazz();
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, _clazz);
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN, false);
String _task = this.getTask();
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, _task);
wc.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, "${workspace}");
wc.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, true);
_xblockexpression = wc.doSave();
}
return _xblockexpression;
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
}
开发者ID:oehme,项目名称:xtext-maven-example,代码行数:27,代码来源:LaunchConfigurationInfo.java
示例3: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public void createTabs(final ILaunchConfigurationDialog dialog, final String mode) {
JavaMainTab _javaMainTab = new JavaMainTab();
RefreshTab _refreshTab = new RefreshTab();
JavaArgumentsTab _javaArgumentsTab = new JavaArgumentsTab();
JavaJRETab _javaJRETab = new JavaJRETab();
JavaClasspathTab _javaClasspathTab = new JavaClasspathTab();
SourceLookupTab _sourceLookupTab = new SourceLookupTab();
EnvironmentTab _environmentTab = new EnvironmentTab();
CommonTab _commonTab = new CommonTab();
final ArrayList<AbstractLaunchConfigurationTab> tabs = CollectionLiterals.<AbstractLaunchConfigurationTab>newArrayList(_javaMainTab, _refreshTab, _javaArgumentsTab, _javaJRETab, _javaClasspathTab, _sourceLookupTab, _environmentTab, _commonTab);
this.setTabs(((ILaunchConfigurationTab[])Conversions.unwrapArray(tabs, ILaunchConfigurationTab.class)));
}
开发者ID:oehme,项目名称:xtext-maven-example,代码行数:13,代码来源:BuildDSLLaunchTabGroup.java
示例4: createLaunchConfiguration
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
private ILaunchConfiguration createLaunchConfiguration(IContainer basedir, String goal) {
try {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType launchConfigurationType = launchManager
.getLaunchConfigurationType(MavenLaunchConstants.LAUNCH_CONFIGURATION_TYPE_ID);
ILaunchConfigurationWorkingCopy workingCopy = launchConfigurationType.newInstance(basedir, //
"Updating Maven dependencies for '" + basedir.getName() + "'");
workingCopy.setAttribute(MavenLaunchConstants.ATTR_POM_DIR, basedir.getLocation().toOSString());
workingCopy.setAttribute(MavenLaunchConstants.ATTR_GOALS, goal);
workingCopy.setAttribute(MavenLaunchConstants.ATTR_WORKSPACE_RESOLUTION, true);
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, "${project}");
workingCopy.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, true);
String vmArguments = workingCopy.getAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "");
vmArguments += "-Declipse.workspace=\"${workspace_loc}\"";
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArguments);
IPath path = getJREContainerPath(basedir);
if (path != null) {
workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, path
.toPortableString());
}
return workingCopy;
}
catch (CoreException ex) {
Activator.getDefault().getLog().log(
new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Error occured", ex));
}
return null;
}
开发者ID:winture,项目名称:wt-studio,代码行数:34,代码来源:MavenClasspathUpdateJob.java
示例5: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new UnittestArgumentsTab(mainModuleTab), new InterpreterTab(PydevPlugin.getPythonInterpreterManager()),
new RefreshTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:PythonUnittestTabGroup.java
示例6: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new ArgumentsTab(mainModuleTab), new InterpreterTab(PydevPlugin.getIronpythonInterpreterManager()),
new RefreshTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:IronpythonTabGroup.java
示例7: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new ArgumentsTab(mainModuleTab), new InterpreterTab(PydevPlugin.getJythonInterpreterManager()),
new RefreshTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:JythonTabGroup.java
示例8: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new UnittestArgumentsTab(mainModuleTab), new InterpreterTab(PydevPlugin.getJythonInterpreterManager()),
new RefreshTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:JythonUnittestTabGroup.java
示例9: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@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);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:ProjectDependentTabGroup.java
示例10: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new ArgumentsTab(mainModuleTab), new InterpreterTab(PydevPlugin.getPythonInterpreterManager()),
new RefreshTab(), new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:9,代码来源:PythonTabGroup.java
示例11: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog arg0, String arg1) {
MainModuleTab mainModuleTab = new MainModuleTab();
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { mainModuleTab,
new UnittestArgumentsTab(mainModuleTab),
new InterpreterTab(PydevPlugin.getIronpythonInterpreterManager()), new RefreshTab(),
new EnvironmentTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:10,代码来源:IronpythonUnittestTabGroup.java
示例12: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public void createTabs(ILaunchConfigurationDialog dialog, String mode)
{
setTabs(new ILaunchConfigurationTab[]
{
new DLabProLaunchMainTab(),
new DLabProLaunchArgsTab(),
new RefreshTab()
});
}
开发者ID:matthias-wolff,项目名称:dLabPro-Plugin,代码行数:10,代码来源:DLabProLaunchConfigurationTabGroup.java
示例13: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new MainTab(), new RefreshTab(),
new CommonTab() };
setTabs(tabs);
}
开发者ID:angelozerr,项目名称:angular-eclipse,代码行数:7,代码来源:AngularCLILaunchTabGroup.java
示例14: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new JSBUildFileMainTab(), new GulpTasksTab(), new RefreshTab(),
new CommonTab() };
setTabs(tabs);
}
开发者ID:angelozerr,项目名称:jsbuild-eclipse,代码行数:7,代码来源:GulpLaunchTabGroup.java
示例15: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new JSBUildFileMainTab(), new GruntTasksTab(),
new RefreshTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:angelozerr,项目名称:jsbuild-eclipse,代码行数:7,代码来源:GruntLaunchTabGroup.java
示例16: createTabs
import org.eclipse.debug.ui.RefreshTab; //导入依赖的package包/类
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new MainTab(), new ProtractorTab(),
new RefreshTab(), new CommonTab() };
setTabs(tabs);
}
开发者ID:angelozerr,项目名称:angularjs-eclipse,代码行数:7,代码来源:ProtractorLaunchTabGroup.java
注:本文中的org.eclipse.debug.ui.RefreshTab类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论