@Override public void widgetSelected( SelectionEvent selectionEvent ) { wcLocal.setVisible( wbLocal.getSelection() ); wcPentaho.setVisible( wbPentaho.getSelection() ); wcRemote.setVisible( wbRemote.getSelection() ); defaultRunConfiguration.setLocal( false ); defaultRunConfiguration.setPentaho( true ); defaultRunConfiguration.setRemote( false ); defaultRunConfiguration.setClustered( false ); checkOKEnabled(); } } );
@Override public void widgetSelected( SelectionEvent selectionEvent ) { wcLocal.setVisible( wbLocal.getSelection() ); wcPentaho.setVisible( wbPentaho.getSelection() ); wcRemote.setVisible( wbRemote.getSelection() ); defaultRunConfiguration.setLocal( true ); defaultRunConfiguration.setPentaho( false ); defaultRunConfiguration.setRemote( false ); defaultRunConfiguration.setClustered( false ); checkOKEnabled(); } } );
@Override public void widgetSelected( SelectionEvent selectionEvent ) { for ( Control control : contentArea.getChildren() ) { control.setVisible( false ); } content.setVisible( true ); } } );
public void openSpoon() { shell = getShell(); shell.setText( APP_TITLE ); mainComposite.setRedraw( true ); mainComposite.setVisible( false ); mainComposite.setVisible( true ); mainComposite.redraw(); // Perhaps the transformation contains elements at startup? refreshTree(); // Do a complete refresh then... setShellText(); }
@Override public void mouseUp( MouseEvent mouseEvent ) { MappingIODefinition definition = new MappingIODefinition(); definition.setMainDataPath( true ); definitions.add( definition ); wInputList.add( tabTitle + ( definitions.size() > 1 ? String.valueOf( definitions.size() ) : "" ) ); wInputList.select( definitions.size() - 1 ); updateFields( definitions.get( wInputList.getSelectionIndex() ), input, wMainPath, wlInputStep, wInputStep, wbInputStep, wlOutputStep, wOutputStep, wbOutputStep, wlDescription, wDescription, wFieldMappings, wRenameOutput ); wlNoItems.setVisible( false ); wFieldsComposite.setVisible( true ); wRemoveButton.setEnabled( true ); } } );
public Composite createContent( String radioText ) { Control[] existingButtons = radioGroup.getChildren(); Button button = new Button( radioGroup, SWT.RADIO ); button.setText( radioText ); props.setLook( button ); FormData fdButton = new FormData(); fdButton.top = new FormAttachment( 0 ); fdButton.left = existingButtons.length == 0 ? new FormAttachment( 0 ) : new FormAttachment( existingButtons[existingButtons.length - 1], 40 ); button.setLayoutData( fdButton ); button.setSelection( existingButtons.length == 0 ); Composite content = new Composite( contentArea, SWT.NONE ); content.setVisible( existingButtons.length == 0 ); props.setLook( content ); content.setLayout( noMarginLayout ); content.setLayoutData( fdMaximize ); button.addSelectionListener( new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent selectionEvent ) { for ( Control control : contentArea.getChildren() ) { control.setVisible( false ); } content.setVisible( true ); } } ); return content; }
@Override public void setVisible( boolean visible ) { super.setVisible( visible ); wAuthGroup.setVisible( visible ); wlUsername.setVisible( visible ); wUsername.setVisible( visible ); wlPassword.setVisible( visible ); wPassword.setVisible( visible ); } }
wFieldsComposite.setVisible( false ); wRemoveButton.setEnabled( false );
@Override public void widgetSelected( SelectionEvent selectionEvent ) { wcLocal.setVisible( wbLocal.getSelection() ); wcPentaho.setVisible( wbPentaho.getSelection() ); wcRemote.setVisible( wbRemote.getSelection() ); defaultRunConfiguration.setLocal( false ); defaultRunConfiguration.setPentaho( false );
/** * hideExpandedContent( TransGraph graph ) * * @param graph * the TransGraph whose web browser will be hidden */ public static void hideExpandedContent( TransGraph graph ) { doToExpandedContent( graph, browser -> { if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) { graph.extraViewComposite.setVisible( true ); } browser.moveBelow( null ); browser.getParent().layout( true, true ); browser.getParent().redraw(); } ); }
wcLocal.setVisible( defaultRunConfiguration.isLocal() ); wcPentaho.setVisible( defaultRunConfiguration.isPentaho() ); wcRemote.setVisible( defaultRunConfiguration.isRemote() || defaultRunConfiguration.isClustered() );
/** * showExpandedContent( TransGraph graph ) * * @param graph * TransGraph to create the web browser for. If the wev browser hasn't been created this will create one. * Else it will just bring the web browser associated to this TransGraph to the top. */ public static void showExpandedContent( TransGraph graph ) { if ( graph == null ) { return; } Browser browser = getExpandedContentForTransGraph( graph ); if ( browser == null ) { return; } if ( !isVisible( graph ) ) { maximizeExpandedContent( browser ); } if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) { graph.extraViewComposite.setVisible( false ); } browser.moveAbove( null ); browser.getParent().layout( true ); browser.getParent().redraw(); }
} else { wlNoItems.setVisible( true ); wFieldsComposite.setVisible( false ); wRemoveButton.setEnabled( false );
content.setVisible(!data.exclude); content.getParent().pack();
private void updateDetails(ColorTheme theme) { if (theme == null) themeDetails.setVisible(false); else { authorLabel.setText("Created by " + theme.getAuthor()); String website = theme.getWebsite(); if (website == null || website.length() == 0) websiteLink.setVisible(false); else { websiteLink.setText("<a>" + website + "</a>"); for (Listener listener : websiteLink.getListeners( SWT.Selection)) websiteLink.removeListener(SWT.Selection, listener); setLinkTarget(websiteLink, website); websiteLink.setVisible(true); } String id = theme.getId(); Browser browser = getBrowser(); if (browser != null) browser.setUrl( "http://www.eclipsecolorthemes.org/static/themes/java/" + id + ".html"); themeDetails.setVisible(true); authorLabel.pack(); websiteLink.pack(); } }
@Override public void focusLost(FocusEvent e) { fModifyAllPanel.setVisible(false); } });
/** * Show and enable the widgets in the message region */ private void showRegion() { messageComposite.setVisible(true); }
/** * Enable the title and disable the message text and image. */ public void restoreTitle() { titleLabel.setVisible(true); messageComposite.setVisible(false); lastMessageText = null; lastMessageType = IMessageProvider.NONE; }
@Override public void handleEvent(Event arg0) { COConfigurationManager.setParameter("subscriptions.view.showhelp", false); composite.setVisible(false); FormData data = (FormData) view.getComposite().getLayoutData(); data.bottom = new FormAttachment(100,0); viewComposite.layout(true); } });
@Override public void widgetSelected(SelectionEvent e) { fModifyAllPanel.setVisible(!fModifyAllPanel.isVisible()); if (fModifyAllPanel.isVisible()) { excomposite.setFocus(); // force preview update prepareControl(); fControl.requestLayout(); fControl.setFocus(); } } });