wProtocol = new Combo( wServerSettings, SWT.SINGLE | SWT.LEFT | SWT.BORDER ); wProtocol.setToolTipText( BaseMessages.getString( PKG, "JobFTPDelete.Protocol.Tooltip" ) ); wProtocol.add( JobEntryFTPDelete.PROTOCOL_FTP ); wProtocol.add( JobEntryFTPDelete.PROTOCOL_FTPS ); wProtocol.add( JobEntryFTPDelete.PROTOCOL_SFTP ); wProtocol.add( JobEntryFTPDelete.PROTOCOL_SSH ); props.setLook( wProtocol ); fdProtocol = new FormData();
private void fillStoredData() { if ( stepname != null ) { textStepName.setText( stepname ); } int index = addConnectionLine.indexOf( meta.getDatabaseMeta() != null ? meta.getDatabaseMeta().getName() : "" ); if ( index >= 0 ) { addConnectionLine.select( index ); } if ( meta.getDimension() != null ) { comboDimension.add( meta.getDimension() ); comboDimension.select( 0 ); } buttonBaseElementsOnly.setSelection( meta.getBaseElementsOnly() ); tableViewFields.table.removeAll(); if ( meta.getLevels().size() > 0 ) { for ( PaloDimensionLevel level : meta.getLevels() ) { tableViewFields.add( level.getLevelName(), String.valueOf( level.getLevelNumber() ), level.getFieldName(), level.getFieldType() ); } tableViewFields.setRowNums(); tableViewFields.optWidth( true ); } }
private void doSelectConnection( boolean clearCurrentData ) { try { if ( clearCurrentData ) { tableViewFields.table.removeAll(); comboDimension.removeAll(); } if ( addConnectionLine.getText() != null ) { DatabaseMeta dbMeta = transMeta.findDatabase( addConnectionLine.getText() ); if ( dbMeta != null ) { PaloDimInputData data = new PaloDimInputData( dbMeta ); data.helper.connect(); List<String> dimensions = data.helper.getDimensionsNames(); Collections.sort( dimensions, new PaloNameComparator() ); for ( String dimensionName : dimensions ) { if ( comboDimension.indexOf( dimensionName ) == -1 ) { comboDimension.add( dimensionName ); } } data.helper.disconnect(); } } } catch ( Exception ex ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "PaloDimInputDialog.RetreiveDimensionsErrorTitle" ), BaseMessages.getString( PKG, "PaloDimInputDialog.RetreiveDimensionsError" ), ex ); } }
private void doSelectConnection( boolean clearCurrentData ) { try { if ( clearCurrentData ) { tableViewFields.table.removeAll(); comboCube.removeAll(); } if ( addConnectionLine.getText() != null ) { DatabaseMeta dbMeta = transMeta.findDatabase( addConnectionLine.getText() ); if ( dbMeta != null ) { PaloCellOutputData data = new PaloCellOutputData( dbMeta ); data.helper.connect(); List<String> cubes = data.helper.getCubesNames(); Collections.sort( cubes, new PaloNameComparator() ); for ( String cubeName : cubes ) { if ( comboCube.indexOf( cubeName ) == -1 ) { comboCube.add( cubeName ); } } data.helper.disconnect(); } } } catch ( Exception ex ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "PaloCellOutputDialog.RetreiveCubesErrorTitle" ), BaseMessages.getString( PKG, "PaloCellOutputDialog.RetreiveCubesError" ), ex ); } }
private void doSelectConnection( boolean clearCurrentData ) { try { if ( clearCurrentData ) { tableViewFields.table.removeAll(); comboDimension.removeAll(); } if ( addConnectionLine.getText() != null ) { DatabaseMeta dbMeta = transMeta.findDatabase( addConnectionLine.getText() ); if ( dbMeta != null ) { PaloDimOutputData data = new PaloDimOutputData( dbMeta ); data.helper.connect(); List<String> dimensions = data.helper.getDimensionsNames(); Collections.sort( dimensions, new PaloNameComparator() ); for ( String dimensionName : dimensions ) { if ( comboDimension.indexOf( dimensionName ) == -1 ) { comboDimension.add( dimensionName ); } } data.helper.disconnect(); } } } catch ( Exception ex ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "PaloDimOutputDialog.RetreiveDimensionsErrorTitle" ), BaseMessages.getString( PKG, "PaloDimOutputDialog.RetreiveDimensionsError" ), ex ); } }
private void doSelectConnection( boolean clearCurrentData ) { try { if ( clearCurrentData ) { tableViewFields.table.removeAll(); comboCube.removeAll(); } if ( addConnectionLine.getText() != null ) { DatabaseMeta dbMeta = transMeta.findDatabase( addConnectionLine.getText() ); if ( dbMeta != null ) { PaloCellInputData data = new PaloCellInputData( dbMeta ); data.helper.connect(); List<String> cubes = data.helper.getCubesNames(); Collections.sort( cubes, new PaloNameComparator() ); for ( String cubeName : cubes ) { if ( comboCube.indexOf( cubeName ) == -1 ) { comboCube.add( cubeName ); } } data.helper.disconnect(); } } } catch ( Exception ex ) { new ErrorDialog( shell, BaseMessages.getString( PKG, "PaloCellInputDialog.RetreiveCubesErrorTitle" ), BaseMessages.getString( PKG, "PaloCellInputDialog.RetreiveCubesError" ), ex ); } }
comboCube.add( meta.getCube() ); comboCube.select( 0 );
/** * Add the passed value to self's destination widget's history * * @param value * java.lang.String */ protected void addDestinationItem(String value) { destinationNameField.add(value); }
public void add(String item, int index) { if (combo instanceof Combo) ((Combo) combo).add(item, index); else ((CCombo) combo).add(item, index); }
@Override protected void listAdd(String string, int index) { if (combo == null) { ccombo.add(string, index); } else { combo.add(string, index); } }
/** * Updates the given combo with the given content. * @param combo combo to be updated * @param content to be put into the combo */ private void updateCombo(Combo combo, List<String> content) { combo.removeAll(); for (int i= 0; i < content.size(); i++) { combo.add(content.get(i).toString()); } }
protected void initCertificate() { // Populate combo with certificate list int j=0; for (int i = 0; i < certChain.size(); i++) cmbCertW.add("" + certChain.get(i).get(SSL_CERT_ISSUED_TO), j++); cmbCertW.select(0); // populate table with details changeCertificate(); }
private void addEARNamesToList() { earList.add(ConsumptionUIMessages.LABEL_SHOW_ALL_STATELESS_SESSION_EJBS); if (earComponents != null && earComponents.length > 0) { for (int index = 0; index < earComponents.length; index++) { earList.add(earComponents[index].getName()); } earList.setText(earList.getItem(1)); } }
public void setClientProject(IProject clientProject) { IPath[] paths = ResourceUtils.getAllJavaSourceLocations(clientProject); for (int i = 0; i < paths.length ; i++) { outputFolderCombo_.add(paths[i].toString()); } if( paths.length > 0 ) { outputFolderCombo_.select(0); } }
private void refreshTags() { fTagsCombo.removeAll(); String[] tags = fTagManager.getTags(); for (String tag : tags) { fTagsCombo.add(tag); } }
protected void initializeTargetCombo() { IConfigurationElement[] elements = PDECore.getDefault().getTargetProfileManager().getSortedTargets(); fTargetIds = new String[elements.length]; for (int i = 0; i < elements.length; i++) { String name = elements[i].getAttribute("name"); //$NON-NLS-1$ if (fTargets.indexOf(name) == -1) fTargets.add(name); fTargetIds[i] = elements[i].getAttribute("id"); //$NON-NLS-1$ } if (elements.length > 0) fTargets.select(0); }
protected void initializeCombo(IDialogSettings settings, String key, Combo combo) { for (int i = 0; i < 6; i++) { String curr = settings.get(key + String.valueOf(i)); if (curr != null && combo.indexOf(curr) == -1) { combo.add(curr); } } if (combo.getItemCount() > 0) combo.setText(combo.getItem(0)); }