1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: DefaultActionBarContributor.java
13 * Created: 2007-02-05
14 * Author: cast
15 * $Id: DefaultFlayoutPreferences.java 2774 2009-04-22 13:56:23Z tmilos $
16 */
17
18 package pl.edu.agh.cast.backward.editor;
19
20 import org.eclipse.draw2d.PositionConstants;
21 import org.eclipse.gef.ui.palette.FlyoutPaletteComposite;
22 import org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences;
23
24 /**
25 * Default {@link FlyoutPreferences}.
26 *
27 * @author AGH CAST Team
28 */
29 public class DefaultFlayoutPreferences implements FlyoutPreferences {
30
31 /**
32 * {@inheritDoc}
33 *
34 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#getDockLocation()
35 */
36 public int getDockLocation() {
37 return PositionConstants.EAST;
38 }
39
40 /**
41 * {@inheritDoc}
42 *
43 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#getPaletteState()
44 */
45 public int getPaletteState() {
46 return FlyoutPaletteComposite.STATE_PINNED_OPEN;
47 }
48
49 /**
50 * {@inheritDoc}
51 *
52 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#getPaletteWidth()
53 */
54 public int getPaletteWidth() {
55 return 150;
56 }
57
58 /**
59 * {@inheritDoc}
60 *
61 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#setDockLocation(int)
62 */
63 public void setDockLocation(int location) {
64 }
65
66 /**
67 * {@inheritDoc}
68 *
69 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#setPaletteState(int)
70 */
71 public void setPaletteState(int state) {
72 }
73
74 /**
75 * {@inheritDoc}
76 *
77 * @see org.eclipse.gef.ui.palette.FlyoutPaletteComposite.FlyoutPreferences#setPaletteWidth(int)
78 */
79 public void setPaletteWidth(int width) {
80 }
81
82 }