當前位置: 首頁>>代碼示例>>Java>>正文


Java CCombo.removeAll方法代碼示例

本文整理匯總了Java中org.eclipse.swt.custom.CCombo.removeAll方法的典型用法代碼示例。如果您正苦於以下問題:Java CCombo.removeAll方法的具體用法?Java CCombo.removeAll怎麽用?Java CCombo.removeAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.swt.custom.CCombo的用法示例。


在下文中一共展示了CCombo.removeAll方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: PopulateFields

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void PopulateFields( CCombo cc ) {
  if ( cc.isDisposed() ) {
    return;
  }
  try {
    String initValue = cc.getText();
    cc.removeAll();
    RowMetaInterface r = transMeta.getPrevStepFields( stepname );
    if ( r != null ) {
      cc.setItems( r.getFieldNames() );
    }
    if ( !Const.isEmpty( initValue ) ) {
      cc.setText( initValue );
    }
  } catch ( KettleException ke ) {
    new ErrorDialog(
      shell, BaseMessages.getString( PKG, "XsltDialog.FailedToGetFields.DialogTitle" ), BaseMessages
        .getString( PKG, "XsltDialog.FailedToGetFields.DialogMessage" ), ke );
  }

}
 
開發者ID:griddynamics,項目名稱:xml-dom-kettle-etl-plugin,代碼行數:22,代碼來源:DOMXsltDialog.java

示例2: clearAll

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void clearAll(IElementParameter param,
		IElementParameter processTypeParameter) {
	Text jobName = (Text) hashCurControls.get(param.getName() + ":" + processTypeParameter.getName()); //$NON-NLS-1$
	CCombo contextCombo = (CCombo) hashCurControls.get(param.getChildParameters().get(EParameterName.PROCESS_TYPE_CONTEXT.getName()).getName());
	CCombo versionCombo = (CCombo) hashCurControls.get(param.getChildParameters().get(EParameterName.PROCESS_TYPE_VERSION.getName()).getName());
	jobName.setText("");
	contextCombo.removeAll();
	versionCombo.removeAll();
	param.setValue("");
	Map<String, IElementParameter> childParameters = param.getChildParameters();
	Iterator<String> iterator = childParameters.keySet().iterator();
	while(iterator.hasNext()){
		String next = iterator.next();
		IElementParameter nextPara = childParameters.get(next);
		nextPara.setValue("");
	}
}
 
開發者ID:Talend,項目名稱:tesb-studio-se,代碼行數:18,代碼來源:RouteInputProcessTypeController.java

示例3: setInfos

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void setInfos(CCombo combo){
	try{
        String field=  combo.getText();
        combo.removeAll();
			
		RowMetaInterface r =  transMeta.getPrevStepFields(stepname);
		if (combo.equals(wFeatureNameField) || combo.equals(wFeatureDescField))
			combo.add(Messages.getString("KMLFileOutputDialog.NoField.Text"));
		if (r!=null){
	    	r.getFieldNames();
		    for (int i=0;i<r.getFieldNames().length;i++){	
		    	combo.add(r.getFieldNames()[i]);									
			}
		}
		if(field!=null) 
			combo.setText(field);
	}catch(KettleException ke){
		new ErrorDialog(shell, Messages.getString("KMLFileOutputDialog.FailedToGetFields.DialogTitle"), Messages.getString("KMLFileOutputDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:21,代碼來源:KMLFileOutputDialog.java

示例4: PopulateFields

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void PopulateFields(CCombo cc)
{
 try{
          
		cc.removeAll();
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null)
		{
             r.getFieldNames();
             
             for (int i=0;i<r.getFieldNames().length;i++)
				{	
					cc.add(r.getFieldNames()[i]);					
					
				}
		}

 }catch(KettleException ke){
		new ErrorDialog(shell, Messages.getString("XsltDialog.FailedToGetFields.DialogTitle"), Messages.getString("XsltDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}

}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:23,代碼來源:XsltDialog.java

示例5: PopulateFields

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void PopulateFields(CCombo cc)
{
 try{
          
		cc.removeAll();
		RowMetaInterface r = transMeta.getPrevStepFields(stepname);
		if (r!=null)
		{
             r.getFieldNames();
             
             for (int i=0;i<r.getFieldNames().length;i++)
				{	
					cc.add(r.getFieldNames()[i]);					
					
				}
		}

 }catch(KettleException ke){
		new ErrorDialog(shell, Messages.getString("XsdValidatorDialog.FailedToGetFields.DialogTitle"), Messages.getString("XsdValidatorDialogMod.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
	


}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:25,代碼來源:XsdValidatorDialog.java

示例6: PopulateFields

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void PopulateFields(CCombo cc)
{
 if(cc.isDisposed()) return;
 try{
	String initValue=cc.getText();
	cc.removeAll();
	RowMetaInterface r = transMeta.getPrevStepFields(stepname);
	if (r!=null) {
            cc.setItems(r.getFieldNames());
	}
	if(!Const.isEmpty(initValue)) cc.setText(initValue);
 }catch(KettleException ke){
		new ErrorDialog(shell, BaseMessages.getString(PKG, "XsltDialog.FailedToGetFields.DialogTitle"), BaseMessages.getString(PKG, "XsltDialog.FailedToGetFields.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
	}
 
}
 
開發者ID:yintaoxue,項目名稱:read-open-source-code,代碼行數:17,代碼來源:XsltDialog.java

示例7: setComboFields

import org.eclipse.swt.custom.CCombo; //導入方法依賴的package包/類
private void setComboFields(CCombo c){
	c.removeAll();
	getPrevStepFields();
	if (prevStepFields!=null){
		prevStepFields.getFieldNames();
		for (int i=0;i<prevStepFields.getFieldNames().length;i++){	
			c.add(prevStepFields.getFieldNames()[i]);									
		}
	}	
}
 
開發者ID:icholy,項目名稱:geokettle-2.0,代碼行數:11,代碼來源:OGRFileOutputDialog.java


注:本文中的org.eclipse.swt.custom.CCombo.removeAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。