Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 314653
Collapse All | Expand All

(-)src/org/eclipse/rap/internal/design/example/builder/StackPresentationBuider.java (-2 / +2 lines)
Lines 142-148 Link Here
142
    left.setBackgroundImage( borderLeft );
142
    left.setBackgroundImage( borderLeft );
143
    FormData fdLeft = new FormData();
143
    FormData fdLeft = new FormData();
144
    left.setLayoutData( fdLeft );
144
    left.setLayoutData( fdLeft );
145
    fdLeft.top = new FormAttachment( 0, borderTop.getBounds().height - 1 );
145
    fdLeft.top = new FormAttachment( 0, borderTop.getBounds().height );
146
    fdLeft.bottom 
146
    fdLeft.bottom 
147
      = new FormAttachment( 100, - borderBottom.getBounds().height + 1 );
147
      = new FormAttachment( 100, - borderBottom.getBounds().height + 1 );
148
    fdLeft.left = new FormAttachment( 0 );
148
    fdLeft.left = new FormAttachment( 0 );
Lines 154-160 Link Here
154
    right.setBackgroundImage( borderRight );
154
    right.setBackgroundImage( borderRight );
155
    FormData fdRight = new FormData();
155
    FormData fdRight = new FormData();
156
    right.setLayoutData( fdRight );
156
    right.setLayoutData( fdRight );
157
    fdRight.top = new FormAttachment( 0, borderTop.getBounds().height - 1 );
157
    fdRight.top = new FormAttachment( 0, borderTop.getBounds().height );
158
    fdRight.bottom 
158
    fdRight.bottom 
159
      = new FormAttachment( 100, - borderBottom.getBounds().height + 1 );
159
      = new FormAttachment( 100, - borderBottom.getBounds().height + 1 );
160
    fdRight.right = new FormAttachment( 100 );
160
    fdRight.right = new FormAttachment( 100 );
(-)src/org/eclipse/rap/internal/design/example/fancy/FancyWindowComposer.java (-1 / +1 lines)
Lines 96-102 Link Here
96
    FormData fdPage = new FormData();
96
    FormData fdPage = new FormData();
97
    page.setLayoutData( fdPage );
97
    page.setLayoutData( fdPage );
98
    fdPage.left = new FormAttachment( 0, 7 );
98
    fdPage.left = new FormAttachment( 0, 7 );
99
    fdPage.top = new FormAttachment( 0, -7 );
99
    fdPage.top = new FormAttachment( 0, -5 );
100
    fdPage.right = new FormAttachment( 100, -7 );
100
    fdPage.right = new FormAttachment( 100, -7 );
101
        
101
        
102
    // create Footer and attach the page
102
    // create Footer and attach the page
(-)src/org/eclipse/rap/internal/design/example/stacks/ViewStackPresentation.java (-8 / +15 lines)
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 );

Return to bug 314653