private void getSteps() { Cursor busy = new Cursor( shell.getDisplay(), SWT.CURSOR_WAIT ); shell.setCursor( busy ); String fieldStep = wSourceStep.getText(); wSourceStep.removeAll(); wSourceStep.setItems( transMeta.getPrevStepNames( stepMeta ) ); wSourceStep.setText( fieldStep ); shell.setCursor( null ); busy.dispose(); }
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 ); } }
public void modifyText(ModifyEvent e) { if (_comboDbName != null) { _comboDbName.removeAll(); } } }
/** * 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 listRemoveAll() { if (combo == null) { ccombo.removeAll(); } else { combo.removeAll(); } }
/** * 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 content) { combo.removeAll(); for (int i= 0; i < content.size(); i++) { combo.add(content.get(i).toString()); } }
@Override protected void listRemoveAll() { if (combo == null) { ccombo.removeAll(); } else { combo.removeAll(); } }
/** * 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()); } }
/** * Adds as many entries to the combo as there are entries in the * ArrayList <tt>lstValues_</tt>. */ private void domain2UI () { combo_.removeAll(); outOfDomainKey_ = null; for (int i=0; i<lstValues_.size(); i++) { DomValue dv = (DomValue) lstValues_.get(i); combo_.add(domVal2ComboLine(dv)); } }
private void updateAll () { cbGroup.removeAll(); setSurfaceData(); updateLanguageRuleList(); }
private void refreshTags() { fTagsCombo.removeAll(); String[] tags = fTagManager.getTags(); for (String tag : tags) { fTagsCombo.add(tag); } }
public static void removeAll(Control ccombo){ if(ccombo instanceof CCombo){ ((CCombo) ccombo).removeAll(); }else if(ccombo instanceof Combo){ ((Combo) ccombo).removeAll(); }else if(ccombo instanceof org.eclipse.swt.widgets.List){ ((org.eclipse.swt.widgets.List) ccombo).removeAll(); } }
/** * Populate combo box with user defined simple types */ public void populateUserSimpleType(XSDSchema xsdSchema) { getTypeList().removeAll(); List items = getUserSimpleTypeNamesList(xsdSchema); for (int i = 0; i < items.size(); i++) { getTypeList().add(items.get(i).toString()); } }
private void doPopulateDialog(Combo combo, ListViewer viewer, String[] labels, int selectionIdx, IMemoryBlock currentBlock) { // clean up combo.removeAll(); for (int i = 0; i < labels.length; i++) { combo.add(labels[i]); } combo.select(selectionIdx); fSelectedMemoryBlock = currentBlock; viewer.setInput(currentBlock); }
private void updateBranchItems() { String branchTextBefore = branchText.getText(); branchText.removeAll(); addBranchItems(); branchText.setText(branchTextBefore); }
private void updateLanguageRuleList () { cbGroup.removeAll(); LinkedHashMap<String, ArrayList<Rule>> langRules = srxDoc.getAllLanguageRules(); for ( String ruleName : langRules.keySet() ) { cbGroup.add(ruleName); } if ( cbGroup.getItemCount() > 0 ) { cbGroup.select(0); } updateRules(0, true); }
private void populateEARCombos() { earProject_.removeAll(); setEarProjectItems(); String earName = DefaultingUtils.getDefaultEARProjectName(moduleProject_.getText()); earProject_.setText(earName); }