Commit 64b4b210 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix IT with gtk3

parent ad1f7769
......@@ -88,9 +88,9 @@ public class CoolbarToolControl
private Font biggerFont;
@PostConstruct
public void createControls(final Composite parent, final IEclipseContext context,
final IWorkbenchActivitySupport activitySupport) {
if (isRendered(context) && toolbarContainer == null) {
public void createControls(final Composite parent, final IEclipseContext context) {
if (isRendered(context) && toolbarContainer == null && context.get(IWorkbenchPage.class) != null) {
IWorkbenchPage page = context.get(IWorkbenchPage.class);
size = getCoolBarPreferredSize();
final Composite parentShell = parent.getParent();
final TrimmedPartLayout layout = (TrimmedPartLayout) parentShell.getLayout();
......@@ -113,7 +113,6 @@ public class CoolbarToolControl
rightTrim.setVisible(false);
rightTrim.setSize(0, 0);
}
final IWorkbenchPage page = context.get(IWorkbenchPage.class);
createToolbar(toolbarContainer, page);
final IEventBroker eventBroker = context.get(IEventBroker.class);
eventBroker.subscribe(UIElement.TOPIC_ALL, new EventHandler() {
......
......@@ -214,7 +214,7 @@ public class ActorFilterImplementationTest implements SWTBotConstants {
});
bot.table().select(id + " (1.0.0) -- " + packageName + "." + className);
bot.button(Messages.Edit).click();
selectDefinition(definition);
bot.button(IDialogConstants.NEXT_LABEL).click();
assertEquals("Implementation id should be " + id,
bot.textWithLabel("Implementation id *").getText(), id);
assertEquals("Version should be 1.0.0", bot.textWithLabel("Version *")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment