Commit 1898a662 authored by andrei's avatar andrei

Fixed toolbar layout problems on 3.2

parent efb1104d
......@@ -91,7 +91,7 @@ public class BytecodeCompare extends CompareEditorInput {
}
}
});
hideStackMapAction = new DefaultToggleAction(BCOConstants.SHOW_STACKMAP,
new IPropertyChangeListener(){
public void propertyChange(PropertyChangeEvent event) {
......@@ -205,7 +205,7 @@ public class BytecodeCompare extends CompareEditorInput {
toolBarManager2.insertBefore("bco", hideLocalsAction); //$NON-NLS-1$
toolBarManager2.update(true);
}
if (toolBarManager2.find(hideStackMapAction.getId()) == null) {
if(!separatorExist) {
separatorExist = true;
......@@ -231,6 +231,13 @@ public class BytecodeCompare extends CompareEditorInput {
toolBarManager2.insertBefore("bco", toggleAsmifierModeAction); //$NON-NLS-1$
toolBarManager2.update(true);
}
try {
toolBarManager2.getControl().getParent().layout(true);
toolBarManager2.getControl().getParent().update();
} catch (NullPointerException e) {
// ignore, i'm just curios why we need this code in 3.2 and expect
// some unwanted side effects...
}
}
}
......
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