/* (non-Javadoc)
* @see org.eclipse.ui.forms.MasterDetailsBlock#createToolBarActions(org.eclipse.ui.forms.IManagedForm)
*/
protected void createToolBarActions( IManagedForm managedForm )
{
final ScrolledForm form = managedForm.getForm();
// Horizontal layout Action
Action horizontalAction = new Action( "Horizontal layout", Action.AS_RADIO_BUTTON ) { //$NON-NLS-1$
public void run()
{
sashForm.setOrientation( SWT.HORIZONTAL );
form.reflow( true );
}
};
horizontalAction.setChecked( true );
horizontalAction.setToolTipText( "Horizontal Orientation" ); //$NON-NLS-1$
horizontalAction.setImageDescriptor( ApacheDSConfigurationPlugin.getDefault().getImageDescriptor(
ApacheDSConfigurationPluginConstants.IMG_HORIZONTAL_ORIENTATION ) );
// Vertical layout Action
Action verticalAction = new Action( "Vertical Orientation", Action.AS_RADIO_BUTTON ) { //$NON-NLS-1$
public void run()
{
sashForm.setOrientation( SWT.VERTICAL );
form.reflow( true );
}
};
verticalAction.setChecked( false );
verticalAction.setToolTipText( "Vertical Orientation" ); //$NON-NLS-1$
verticalAction.setImageDescriptor( ApacheDSConfigurationPlugin.getDefault().getImageDescriptor(
ApacheDSConfigurationPluginConstants.IMG_VERTICAL_ORIENTATION ) );
form.getToolBarManager().add( horizontalAction );
form.getToolBarManager().add( verticalAction );
}