我试图在 Eclipse IDE Photon Release Candidate 3 (4.8.0RC3) 中安装 WildFly/JBoss Server,但出现错误。我已附上相同的屏幕截图。
有人会帮我解决这个问题吗?
或者这可能只是手动安装.
我在Ganymede中遇到了很多关于JSEclipse的问题,但我找不到与Ganymede兼容的替代品(eclipse 3.4).
所有我真正想要的是代码突出显示.任何人都有任何好的选择,或者我只需要吸吮它并继续使用它?
标题说明了一切.请建议.
我开发了一个eclipse插件,我想在工作台窗口的底部创建一个进度条作为eclipse视图.我有一个例子,但这只是片刻.请给我一些想法,谢谢
ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
dialog.run(true, true, new IRunnableWithProgress(){
public void run(IProgressMonitor monitor) {
monitor.beginTask("Some nice progress message here ...", 100);
// execute the task ...
monitor.done();
}
});
Run Code Online (Sandbox Code Playgroud) 我正在尝试在对话框中创建一个垂直滚动表,但没有成功.当我创建表格时,无论屏幕大小/分辨率如何,它都会自动扩展到需要的任何高度.大量数据创建的表格远远低于屏幕底部.
我的代码是这样的(不是逐字的,可能是一个类型-o或两个):
final Table table = new Table(parent, SWT.SINGLE |
SWT.FULL_SELECTION | SWT.SCROLL_LINE | borderStyle | orientation );
table.setHeaderVisible(true);
table.setLinesVisible(true);
TableViewer tableView = new TableViewer(table);
// code yanked to set up the columns (movable == false,
// resiable == true, with set text, widths, and toolTipText)
tableView.setContentProvider(new ArrayContentProvider());
// BeanLabelProvider's getColumnText returns the beanDescriptor's
// getReadMethod.invoke().toString()
tableView.setLabelProvider(new BeanLableProvider(MyClass.class));
tableView.setInput(anArrayOfMyClass);
Run Code Online (Sandbox Code Playgroud)
所有这些代码都存在于我的对话框类的createDialogArea()中.
无论如何,我尝试过以下方法:
treeView.setItemCount() 修剪数据,它不会限制显示的数据量.table.getVerticalBar()返回一个有效的ScrollBar,那个scrollbar.getVisible() == true;?!真?证明给我看.不这么认为. setVisible(true)什么也没做.table.setBounds()?不.即使我打电话layout()和/或redraw().我正在为Eclipse创建一个小插件来(重新)以编程方式启动LaunchConfigurations.
我可以启动配置,但是我希望增强以下代码,以便在启动之前首先关闭具有给定名称的所有正在运行的配置.
public void restartLaunchConfiguration(String configurationName) throws Exception {
final ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
for(final ILaunchConfiguration cfg : manager.getLaunchConfigurations()){
final String cfgName = cfg.getName();
if(!configurationName.equals(cfgName)) continue;
cfg.launch("debug", null);
break;
}
}
Run Code Online (Sandbox Code Playgroud)
如何获取所有正在运行的配置?
如何停止正在运行的配置?
我收到一个错误:
NameError:未定义名称"barley_amount"
这是我的代码:
from ctypes import *
class barley_amount(Union):
_fields_ = [
("barley_long", c_long),
("barley_int", c_int),
("barley_char", c_char)
]
value = raw_input("Enter the amount of Barley to put into the beer vat: ")
my_barley = barley_amount(int(value))
print "Barley amount as a long: %ld" % my_barley.barley_long
print "Barley amount as an int: %d" % my_barley.barley_long
print "Barley amount as a char: %s" % my_barley.barley_char`from ctypes import *
my_barley = barley_amount(int(value))
print "Barley amount as a long: %ld" % my_barley.barley_long
print "Barley …Run Code Online (Sandbox Code Playgroud) 当用户到达我的JFace向导的最后一页时,我想禁用取消按钮(因为那时你不能真正'取消').
怎么办?
eclipse-plugin ×10
eclipse ×7
java ×2
swt ×2
cvs ×1
eclipse-3.4 ×1
eclipse-pde ×1
eclipse-rcp ×1
javascript ×1
jboss ×1
jface ×1
plugins ×1
progress-bar ×1
pydev ×1
python ×1
uml ×1
wildfly ×1
wildfly-8 ×1