Révision 815
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 815) | ||
---|---|---|
180 | 180 |
|
181 | 181 |
// create the top tool bar |
182 | 182 |
this.topToolBarContainer = new Composite(firstLineComposite, SWT.NONE); |
183 |
this.topToolBarContainer.setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));
|
|
183 |
this.topToolBarContainer.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
|
|
184 | 184 |
RowLayout rl = new RowLayout(SWT.HORIZONTAL); |
185 | 185 |
rl = new RowLayout(SWT.HORIZONTAL); |
186 | 186 |
rl.marginTop = rl.marginHeight = rl.marginWidth = rl.marginBottom = 0; |
... | ... | |
190 | 190 |
|
191 | 191 |
this.extendedParametersGroupsComposite = new GLComposite(parent, SWT.NONE); |
192 | 192 |
if (parent.getLayout() instanceof GridLayout) { |
193 |
this.extendedParametersGroupsComposite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
|
|
193 |
this.extendedParametersGroupsComposite.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
|
|
194 | 194 |
} |
195 | 195 |
|
196 | 196 |
this.topToolBar = new TXMEditorToolBar(this, this.topToolBarContainer, this.extendedParametersGroupsComposite, SWT.FLAT | SWT.RIGHT, TOP_TOOLBAR_ID); |
... | ... | |
950 | 950 |
* @param selectionProvider |
951 | 951 |
* @return |
952 | 952 |
*/ |
953 |
public static Menu initContextMenu(Composite composite, String menuId, IWorkbenchPartSite partSite, ISelectionProvider selectionProvider) {
|
|
953 |
private static Menu initContextMenu(Composite composite, String menuId, IWorkbenchPartSite partSite, ISelectionProvider selectionProvider) {
|
|
954 | 954 |
MenuManager menuManager = new MenuManager(menuId, menuId); |
955 | 955 |
|
956 | 956 |
Menu menu = menuManager.createContextMenu(composite); |
957 | 957 |
composite.setMenu(menu); |
958 |
|
|
958 |
|
|
959 | 959 |
if(partSite != null && selectionProvider != null) { |
960 | 960 |
partSite.registerContextMenu(menuManager, selectionProvider); |
961 | 961 |
} |
Formats disponibles : Unified diff