/* Layout */
private void createLayoutBar() {
/* Toggle Layout */
final ImageDescriptor horizontalImg = OwlUI.getImageDescriptor("icons/etool16/horizontal.gif");
final ImageDescriptor verticalImg = OwlUI.getImageDescriptor("icons/etool16/vertical.gif");
/* Toggle Layout */
IAction toggleLayout = new Action("Toggle Layout", IAction.AS_PUSH_BUTTON) {
@Override
public void run() {
fFeedView.toggleLayout();
fLayoutVertical = !fLayoutVertical;
fSecondToolBarManager.find(TOGGLE_LAYOUT_ACTION).update(IAction.IMAGE);
}
@Override
public ImageDescriptor getImageDescriptor() {
if (fLayoutVertical)
return horizontalImg;
return verticalImg;
}
};
toggleLayout.setImageDescriptor(OwlUI.getImageDescriptor("icons/etool16/vertical.gif"));
toggleLayout.setId(TOGGLE_LAYOUT_ACTION);
fSecondToolBarManager.add(toggleLayout);
/* Maximize / Minimize Browser */
final ImageDescriptor img = OwlUI.getImageDescriptor("icons/etool16/browsermaximized.gif");
IAction toggleMaximized = new Action("", IAction.AS_CHECK_BOX) {
@Override
public void run() {