博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于Eclipse生成和导入Patch文件.
阅读量:7001 次
发布时间:2019-06-27

本文共 3199 字,大约阅读时间需要 10 分钟。

&

生成的文件如下:

如果系统对这个patch文件有识别的话是一个带有问号的icon文件.

 

1 diff --git a/main/plugins/org.talend.designer.core/src/main/java/org/talend/designer/core/model/metadata/MetadataEmfFactory.java b/main/plugins/org.talend.designer.core/src/main/java/org/talend/designer/core/model/metadata/MetadataEmfFactory.java 2 index a5f97fd..8e7cb2f 100644 3 --- a/main/plugins/org.talend.designer.core/src/main/java/org/talend/designer/core/model/metadata/MetadataEmfFactory.java 4 +++ b/main/plugins/org.talend.designer.core/src/main/java/org/talend/designer/core/model/metadata/MetadataEmfFactory.java 5 @@ -73,9 +73,9 @@ public class MetadataEmfFactory { 6                  colType.setComment(metaCol.getComment()); 7                  colType.setKey(metaCol.isKey()); 8                  colType.setNullable(metaCol.isNullable()); 9 -                if (metaCol.getLength() == null) {10 -                    // colType.setLength(-1);11 -                    colType.unsetLength();12 +                if (metaCol.getLength() == null || metaCol.getLength().intValue() < 0) {13 +                    colType.setLength(-1);14 +                    // colType.unsetLength();15                  } else {16                      colType.setLength(metaCol.getLength());17                  }18 @@ -90,9 +90,9 @@ public class MetadataEmfFactory {19                  }20  21                  colType.setName(metaCol.getLabel());22 -                if (metaCol.getPrecision() == null) {23 -                    // colType.setPrecision(-1);24 -                    colType.unsetPrecision();25 +                if (metaCol.getPrecision() == null || metaCol.getPrecision().intValue() < 0) {26 +                    colType.setPrecision(-1);27 +                    // colType.unsetPrecision();28                  } else {29                      colType.setPrecision(metaCol.getPrecision());30                  }31 @@ -144,12 +144,8 @@ public class MetadataEmfFactory {32              metaCol.setComment(colType.getComment());33              metaCol.setKey(colType.isKey());34              metaCol.setNullable(colType.isNullable());35 -            if (colType.isSetLength()) {36 -                if (colType.getLength() >= 0) {37 -                    metaCol.setLength(new Integer(colType.getLength()));38 -                } else {39 -                    metaCol.setLength(null);40 -                }41 +            if (colType.getLength() >= 0) {42 +                metaCol.setLength(new Integer(colType.getLength()));43              } else {44                  metaCol.setLength(null);45              }46 @@ -168,12 +164,8 @@ public class MetadataEmfFactory {47                  }48              }49              metaCol.setLabel(colType.getName());50 -            if (colType.isSetPrecision()) {51 -                if (colType.getPrecision() >= 0) {52 -                    metaCol.setPrecision(new Integer(colType.getPrecision()));53 -                } else {54 -                    metaCol.setPrecision(null);55 -                }56 +            if (colType.getPrecision() >= 0) {57 +                metaCol.setPrecision(new Integer(colType.getPrecision()));58              } else {59                  metaCol.setPrecision(null);60              }

 

转载地址:http://bsrvl.baihongyu.com/

你可能感兴趣的文章
gorose orm+dotweb框架快速构建go web网站实战(五)
查看>>
使用DOM Breakpoints找到修改属性的Javascript代码
查看>>
创建一个离线优先,数据驱动的渐进式 Web 应用程序
查看>>
使用机器学习预测天气(第二部分)
查看>>
解决使用jwt刷新token带来的问题
查看>>
浅谈分布式存储系统Pangu2.0——它让双11运维变得智能起来
查看>>
通过Apache Flume向HDFS存储数据
查看>>
像盖房子一样写代码:当我以测试驱动开发的时候,我在想些什么
查看>>
html5使用Drag事件编辑器拖拽上传图片
查看>>
FPB 2.0:免费的计算机编程类中文书籍 2.0
查看>>
Ueditor上传本地音频MP3
查看>>
Egg.js开发七牛云备份项目总结
查看>>
npm下取消已发布的版本package
查看>>
Promise是Monad吗?
查看>>
(转)Mongoose学习参考文档
查看>>
将多个文件压缩成zip文件进行下载
查看>>
iOS项目集成react native就这几步
查看>>
H5实例教学--3D全景(ThreeJs全景Demo)
查看>>
php 扩展安装(随笔)
查看>>
Tech UP——EGO北京分会成立啦
查看>>