@Override public void tabSelected( TabItem item ) { sashform.setWeights( item.getSashWeights() ); delegates.tabs.tabSelected( item ); if ( ExpandedContentManager.isVisible() ) { sashform.setWeights( new int[] {0, 1000} ); } enableMenus(); }
/** * doToExpandedContent( TransGraph graph ) * * @param graph * the TransGraph whose web browser will be hidden * @param browserAction Consumer for acting on the browser */ private static void doToExpandedContent( TransGraph graph, Consumer<Browser> browserAction ) { Browser browser = getExpandedContentForTransGraph( graph ); if ( browser == null ) { return; } SashForm sash = (SashForm) spoonInstance().getDesignParent(); sash.setWeights( spoonInstance().getTabSet().getSelected().getSashWeights() ); browserAction.accept( browser ); }
tblclmnNewColumn_2.setWidth(100); tblclmnNewColumn_2.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE)); sashForm_2.setWeights(new int[] {1, 2});
private void disposeExtraView() { extraViewComposite.dispose(); sashForm.layout(); sashForm.setWeights( new int[] { 100, } ); XulToolbarbutton button = (XulToolbarbutton) toolbar.getElementById( "job-show-results" ); button.setTooltiptext( BaseMessages.getString( PKG, "Spoon.Tooltip.ShowExecutionResults" ) ); ToolItem swtToolItem = (ToolItem) button.getManagedObject(); swtToolItem.setImage( GUIResource.getInstance().getImageShowResults() ); }
private void disposeExtraView() { extraViewComposite.dispose(); sashForm.layout(); sashForm.setWeights( new int[] { 100, } ); XulToolbarbutton button = (XulToolbarbutton) toolbar.getElementById( "trans-show-results" ); button.setTooltiptext( BaseMessages.getString( PKG, "Spoon.Tooltip.ShowExecutionResults" ) ); ToolItem toolItem = (ToolItem) button.getManagedObject(); toolItem.setImage( GUIResource.getInstance().getImageShowResults() ); }
SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT)); sashForm_1.setWeights(new int[] { 1, 1 }); sashForm.setWeights(new int[] { 1, 4 });
logDisplayText.setLayoutData( fdText ); sash.setWeights( new int[] { 70, 30, } ); } else { logDisplayText = null; sash.setWeights( new int[] { 100, } );
logDisplayText.setLayoutData( fdText ); sash.setWeights( new int[] { 70, 30, } ); } else { logDisplayText = null; sash.setWeights( new int[] { 100, } );
inputCmd.setFocus(); sashForm3.setWeights(new int[] { 1, 1 });
message.setLayoutData( fdMessage ); rightSash.setWeights( new int[] { 10, 80, } ); sashForm.setWeights( new int[] { 15, 85, } );
public void open() { shell = new Shell( display ); shell.setLayout( new FillLayout() ); shell.setText( APP_NAME ); try { readFiles( ROOT ); } catch ( Exception e ) { new ErrorDialog( shell, "Error reading translations", "There was an unexpected error reading the translations", e ); } // Put something on the screen sashform = new SashForm( shell, SWT.HORIZONTAL ); sashform.setLayout( new FillLayout() ); addList(); addGrid(); addListeners(); sashform.setWeights( new int[] { 30, 70 } ); sashform.setVisible( true ); refresh(); BaseStepDialog.setSize( shell ); shell.open(); }
wListDest.setLayoutData( fdListDest ); sashform.setWeights( new int[] { 40, 16, 40 } );
wListDest.setLayoutData( fdListDest ); sashform.setWeights( new int[] { 45, 10, 45 } );
extraViewTabFolder.setLayoutData( fdTabFolder ); sashForm.setWeights( new int[] { 60, 40, } );
extraViewTabFolder.setLayoutData( fdTabFolder ); sashForm.setWeights( new int[] { 60, 40, } );
/** * maximizeBrowser * * @param browser * the browser object to maximize. We try to take up as much of the Spoon window as possible. */ private static void maximizeExpandedContent( Browser browser ) { SashForm sash = (SashForm) spoonInstance().getDesignParent(); int[] weights = sash.getWeights(); int[] savedSashWeights = new int[weights.length]; System.arraycopy( weights, 0, savedSashWeights, 0, weights.length ); spoonInstance().getTabSet().getSelected().setSashWeights( savedSashWeights ); weights[0] = 0; weights[1] = 1000; sash.setWeights( weights ); FormData formData = new FormData(); formData.top = new FormAttachment( 0, 0 ); formData.left = new FormAttachment( 0, 0 ); formData.bottom = new FormAttachment( 100, 0 ); formData.right = new FormAttachment( 100, 0 ); browser.setLayoutData( formData ); browser.getParent().layout( true ); browser.getParent().redraw(); } }
sashform.setWeights( weights ); sashform.setVisible( true );
public void open() { shell = new Shell( display ); shell.setLayout( new FillLayout() ); shell.setText( APP_NAME ); shell.setImage( GUIResource.getInstance().getImageLogoSmall() ); try { readFiles(); } catch ( Exception e ) { new ErrorDialog( shell, "Error reading translations", "There was an unexpected error reading the translations", e ); } // Put something on the screen sashform = new SashForm( shell, SWT.HORIZONTAL ); sashform.setLayout( new FormLayout() ); addLists(); addGrid(); addListeners(); sashform.setWeights( new int[] { 40, 60 } ); sashform.setVisible( true ); shell.pack(); refresh(); shell.setSize( 1024, 768 ); shell.open(); }
sashForm.setWeights( new int[] { 100, } );
sashForm.setWeights( new int[] { 100, } );