本文整理匯總了Java中org.eclipse.jface.dialogs.MessageDialog.CONFIRM屬性的典型用法代碼示例。如果您正苦於以下問題:Java MessageDialog.CONFIRM屬性的具體用法?Java MessageDialog.CONFIRM怎麽用?Java MessageDialog.CONFIRM使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.eclipse.jface.dialogs.MessageDialog
的用法示例。
在下文中一共展示了MessageDialog.CONFIRM屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: compareSchemaFields
/**
* @param inputLinkSchema
* @param currentCompSchema
*/
private boolean compareSchemaFields(List<GridRow> inputLinkSchema, List<GridRow> currentCompSchema){
for(int index = 0; index < currentCompSchema.size() - 1; index++){
for(GridRow gridRow : inputLinkSchema){
if(StringUtils.equals(gridRow.getFieldName(), currentCompSchema.get(index).getFieldName())){
if(!StringUtils.equals(gridRow.getDataTypeValue(), currentCompSchema.get(index).getDataTypeValue())){
MessageDialog dialog = new MessageDialog(new Shell(),
"Warning", null,"Output Schema is updated,Do you want to continue with changes?", MessageDialog.CONFIRM,
new String[] {"Yes", "No"}, 0);
int dialogResult =dialog.open();
if(dialogResult == 0){
return true;
}else{
return false;
}
}
}
}
}
return true;
}
示例2: propagateInternalSchema
private void propagateInternalSchema() {
if (schemaGridRowList != null) {
if (SchemaSyncUtility.INSTANCE.isAutoSchemaSyncAllow(getComponent()
.getComponentName())) {
if (SchemaSyncUtility.INSTANCE.isAutoSyncRequiredInMappingWidget(getComponent(),
schemaGridRowList)) {
MessageDialog dialog = new MessageDialog(new Shell(), Constants.SYNC_WARNING, null, Constants.SCHEMA_NOT_SYNC_MESSAGE, MessageDialog.CONFIRM, new String[] { Messages.SYNC_NOW, Messages.MANUAL_SYNC }, 0);
if (dialog.open() == 0) {
if(isSchemaUpdated)
SchemaSyncUtility.INSTANCE.pushSchemaToMapping(
getComponent(), schemaGridRowList);
else
updateSchemaWithPropogatedSchema(true);
}
}
}
}
}
示例3: autoSyncSchema
public void autoSyncSchema(Schema SchemaForInternalPropagation,Component component,List<AbstractWidget> widgets) {
if (SchemaSyncUtility.INSTANCE.isAutoSyncRequiredInSchemaTab(
SchemaForInternalPropagation.getGridRow(),
(Schema) component.getProperties().get(Constants.SCHEMA_PROPERTY_NAME))) {
MessageDialog dialog = new MessageDialog(new Shell(),
Constants.SYNC_WARNING, null,
Constants.SCHEMA_NOT_SYNC_MESSAGE, MessageDialog.CONFIRM,
new String[] { Messages.SYNC_NOW, Messages.MANUAL_SYNC }, 0);
if (dialog.open() == 0) {
getSchemaGridWidget(widgets).updateSchemaWithPropogatedSchema(false);
}
}
}