当前位置: 首页>>代码示例>>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;未经允许,请勿转载。