/******************************************************************************* * Copyright (c) 2009, 2012 EclipseSource and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * EclipseSource - initial API and implementation ******************************************************************************/ package org.eclipse.rap.internal.design.example.business.layoutsets; import org.eclipse.rap.internal.design.example.ILayoutSetConstants; import org.eclipse.rap.ui.interactiondesign.layout.model.ILayoutSetInitializer; import org.eclipse.rap.ui.interactiondesign.layout.model.LayoutSet; import org.eclipse.swt.layout.FormAttachment; import org.eclipse.swt.layout.FormData; public class CoolbarOverflowInitializer implements ILayoutSetInitializer { public void initializeLayoutSet( final LayoutSet layoutSet ) { String path = ILayoutSetConstants.IMAGE_PATH_BUSINESS; layoutSet.addImagePath( ILayoutSetConstants.OVERFLOW_BG, path + "toolbar_overflow_layer_bg.png" ); //$NON-NLS-1$ layoutSet.addImagePath( ILayoutSetConstants.OVERFLOW_RIGHT, path + "toolbar_overflow_layer_right.png" ); //$NON-NLS-1$ layoutSet.addImagePath( ILayoutSetConstants.OVERFLOW_WAVE, path + "header_wave_layer.png" ); //$NON-NLS-1$ layoutSet.addImagePath( ILayoutSetConstants.OVERFLOW_ARROW, path + "toolbar_overflow_arrow.png" ); //$NON-NLS-1$ FormData fdItemTable = new FormData(); fdItemTable.top = new FormAttachment( 0, 4 ); fdItemTable.left = new FormAttachment( 0, 103 ); fdItemTable.bottom = new FormAttachment( 100, -2 ); fdItemTable.right = new FormAttachment( 100 ); layoutSet.addPosition( ILayoutSetConstants.OVERFLOW_POS, fdItemTable ); } }