|
Lines 242-256
Link Here
|
| 242 |
Label title = new Label( tabBg, SWT.NONE ); |
242 |
Label title = new Label( tabBg, SWT.NONE ); |
| 243 |
title.setData( WidgetUtil.CUSTOM_VARIANT, "standaloneView" ); |
243 |
title.setData( WidgetUtil.CUSTOM_VARIANT, "standaloneView" ); |
| 244 |
title.setText( newPart.getName() ); |
244 |
title.setText( newPart.getName() ); |
|
|
245 |
hideFrameLabel( StackPresentationBuider.TOP_BORDER ); |
| 245 |
} else { |
246 |
} else { |
| 246 |
getTabBar().setVisible( false ); |
247 |
getTabBar().setVisible( false ); |
| 247 |
Object labelMap = stackBuilder.getAdapter( Map.class ); |
248 |
hideFrameLabel( StackPresentationBuider.LEFT ); |
| 248 |
if( labelMap != null && ( labelMap instanceof Map ) ) { |
249 |
hideFrameLabel( StackPresentationBuider.RIGHT ); |
| 249 |
Map map = ( Map ) labelMap; |
250 |
} |
| 250 |
Label left = ( Label ) map.get( StackPresentationBuider.LEFT ); |
251 |
} |
| 251 |
Label right = ( Label ) map.get( StackPresentationBuider.RIGHT ); |
252 |
|
| 252 |
left.setVisible( false ); |
253 |
private void hideFrameLabel( final String id ) { |
| 253 |
right.setVisible( false ); |
254 |
Object labelMap = stackBuilder.getAdapter( Map.class ); |
|
|
255 |
if( labelMap != null && ( labelMap instanceof Map ) ) { |
| 256 |
Map map = ( Map ) labelMap; |
| 257 |
Object object = map.get( id ); |
| 258 |
if( object != null ) { |
| 259 |
Label frameLabel = ( Label)object; |
| 260 |
frameLabel.setVisible( false ); |
| 254 |
} |
261 |
} |
| 255 |
} |
262 |
} |
| 256 |
} |
263 |
} |
|
Lines 1143-1149
Link Here
|
| 1143 |
int height = topBorderImg.getBounds().height; |
1150 |
int height = topBorderImg.getBounds().height; |
| 1144 |
FormData fdTopBorder = ( FormData ) topBorder.getLayoutData(); |
1151 |
FormData fdTopBorder = ( FormData ) topBorder.getLayoutData(); |
| 1145 |
fdTopBorder.height = height; |
1152 |
fdTopBorder.height = height; |
| 1146 |
fdTopBorder.top = new FormAttachment( 0, 5 ); |
1153 |
fdTopBorder.top = new FormAttachment( 0, 7 ); |
| 1147 |
FormData fdLeftBorder = ( FormData ) leftBorder.getLayoutData(); |
1154 |
FormData fdLeftBorder = ( FormData ) leftBorder.getLayoutData(); |
| 1148 |
FormData fdRightBorder = ( FormData ) rightBorder.getLayoutData(); |
1155 |
FormData fdRightBorder = ( FormData ) rightBorder.getLayoutData(); |
| 1149 |
fdLeftBorder.top = new FormAttachment( 0, height + 6 ); |
1156 |
fdLeftBorder.top = new FormAttachment( 0, height + 6 ); |