这是我的代码:
Toolbar toolbar = new ToolBar(this, SWT.NONE);
toolbar.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
ToolbarManager toolbarManager = new ToolBarManager(toolbar);
//... create an action...
toolbarManager.add(toolbarAction);
toolbarManager.add(new Separator());
//... create an action...
toolbarManager.add(toolbarAction);
//... create an action...
toolbarManager.add(toolbarAction);
//... create an action...
toolbarManager.add(toolbarAction);
toolbarManager.add(new Separator());
toolbarManager.update(false);
为什么在结果工具栏中只显示操作而不显示分隔符?谢谢!