本文整理汇总了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 );
}
}
示例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("");
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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$
}
}
示例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]);
}
}
}