会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
margo
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
下一页
2020年7月21日
JFace TableViewer 行拖动排序
摘要: http://codeandme.blogspot.com/2019/03/jface-tableviewer-sorting-via-drag-and.html 代码: https://github.com/Pontesegger/codeandme/tree/master/ui/TableVie
阅读全文
posted @ 2020-07-21 16:49 margo
阅读(134)
评论(0)
推荐(0)
2020年7月15日
JFace InputDialog
摘要: 运行效果如图: 代码如下: IAction updateOrder = new Action("设置顺序") { public void run() { InputDialog dlg = new InputDialog(Display.getCurrent().getActiveShell(),
阅读全文
posted @ 2020-07-15 11:54 margo
阅读(143)
评论(0)
推荐(0)
JFace dialog 禁用默认 Enter 按键
摘要: 重写 方法 createButtonsForButtonBar @Override protected void createButtonsForButtonBar(Composite parent) { Button button = createButton(parent, IDialogCon
阅读全文
posted @ 2020-07-15 11:12 margo
阅读(99)
评论(0)
推荐(0)
2020年7月13日
vue 界面显示保留\n \r 换行效果
摘要: 如图显示,-- 注释与后面SQL语句之间有\n\r ,如何在页面上最终显示换行,只需要如下代码: <template slot-scope="{row}" slot="sqlText"> <p v-html="row.sqlText" style="white-space: pre-line;"><
阅读全文
posted @ 2020-07-13 18:18 margo
阅读(3306)
评论(0)
推荐(0)
2020年7月3日
eclipse rcp command 定义 enabledWhen
摘要: 实现效果如下图: 在还未登录时,右上角注销按钮不可点 一旦登录成功,右上角注销可点 右上角注销是一个command,plugin.xml 定义如下: <extension point="org.eclipse.ui.commands"> <command description="%command.
阅读全文
posted @ 2020-07-03 16:49 margo
阅读(429)
评论(0)
推荐(0)
eclipse rcp 使用页面外部按钮控制页面切换
摘要: 界面最终效果如下: 由于公司电脑不便安装录屏软件,因此按顺序截图展示了: 由于点击2 所指按钮需要判断是否已经登录系统,如果没有登录系统则需要跳转到登录页。并且箭头2 所指按钮与下方界面是独立分开的,因此,需要先获取到下方界面的实例。 在eclipse rcp中,获取一个视图的实例方法如下: @No
阅读全文
posted @ 2020-07-03 11:19 margo
阅读(350)
评论(0)
推荐(0)
2020年7月2日
Eclipse rcp 动态更新Label控件中文字
摘要: 如图,红框圈出的内容,需要根据输入的用户名与密码登录之后,动态提示消息,红框使用控件为Label。 如上图代码,修改label中文字是使用setText 方法,但是如果调用setText 方法后没有对Label父控件调用layout 方法,那么label控件文字所占空间不会自动计算,需要调用父控件的
阅读全文
posted @ 2020-07-02 18:20 margo
阅读(290)
评论(0)
推荐(0)
2020年6月19日
spring cloud server 加密测试
摘要: 1. 引入spring cloud server 依赖: <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-config-server --><dependency> <groupId>org
阅读全文
posted @ 2020-06-19 09:57 margo
阅读(161)
评论(0)
推荐(0)
spring cloud 使用TextEncryptor 加密数据
摘要: org.springframework.security.crypto.encrypt.TextEncryptor 完整类路径 步骤: 1. 使用keytool生产秘匙对,jdk 自带,命令如下: keytool -genkeypair -alias margokk -keyalg RSA -dna
阅读全文
posted @ 2020-06-19 09:45 margo
阅读(1820)
评论(0)
推荐(0)
2020年6月16日
js 箭头函数 (state) => (id) => {}
摘要: 在查看Vue官方文档时,看到如下js: getters: { // ... getTodoById: (state) => (id) => { return state.todos.find(todo => todo.id id) } } 刚开始看这段代码(state) => (id) => {}
阅读全文
posted @ 2020-06-16 15:59 margo
阅读(1660)
评论(0)
推荐(1)
2020年6月12日
对lambda一个代码的思考
摘要: class Try { public void test() { Comparator<Integer> comparator = (o1,o2) -> Integer.compare(o1,o2); Comparator<Integer> comparator1 = new Comparator<
阅读全文
posted @ 2020-06-12 09:30 margo
阅读(52)
评论(0)
推荐(0)
2020年6月11日
docker 安装 Nacos
摘要: docker run --name centos7-nacos-standalone -e MODE=standalone -d -p 8848:8848 nacos/nacos-server
阅读全文
posted @ 2020-06-11 10:30 margo
阅读(166)
评论(0)
推荐(0)
docker 安装 postgres
摘要: $ docker run -d \ --name centos7-postgres \ -e POSTGRES_PASSWORD=123456 \ -e PGDATA=/var/lib/postgresql/data/pgdata \ -v /home/manage/docker/volume/po
阅读全文
posted @ 2020-06-11 10:16 margo
阅读(55)
评论(0)
推荐(0)
docker 安装Redis
摘要: >docker run --name centos7-redis -p 6780:6379 -v /home/manage/docker/volume/redis:/data -d redis redis-server --appendonly yes >docker run --name redi
阅读全文
posted @ 2020-06-11 10:15 margo
阅读(45)
评论(0)
推荐(0)
2020年6月2日
eclipse 找不到或无法加载主类
摘要: 导入了一个maven项目,src源码编译没有错误,build path中也没有引用jar包错误 但是运行时就是提示 找不到或无法加载主类 最后实在没办法,把项目的pom.xml中得第一行错误解决好了之后,再次运行项目就没有错误了 图示中没有错误提示是因为我已经解决问题之后的截图 这个问题真的困扰我好
阅读全文
posted @ 2020-06-02 11:36 margo
阅读(140)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告