原创 GIT 獲取當前git分支名的方法

1 git branch | grep "*" 2 git symbolic-ref --short -q HEAD

原创 常用算法-遍歷文件夾的非遞歸實現

public static List<File> scanFolder(File folder) { List<File> scanedFile = new ArrayList<File>(); if(!folder.isDirec

原创 Eclipse插件開發,與Properties視圖聯動

Eclipse的Properties視圖可以顯示和編輯對象的屬性。在SelectionListener被觸發後,Properties視圖會自動檢測工作臺選中的對象是否支持IPropertySource接口,被選中的對象可以直接實現IPro

原创 Eclipse RCP開發-handler command menu模型

HandledContributionItem.updateItemEnablement() org.eclipse.e4.ui.workbench.renderers.swt.ToolBarManagerRenderer  

原创 Eclipse插件開發,編輯器與大綱Outline視圖聯動

一,創建ContentOutlinePage private class FileTreeContentOutlinePage extends ContentOutlinePage { } 二,初始化編輯器時創建OutlinePage

原创 常用算法-求多個文件路徑的最大共同父路徑

public class 求多個文件路徑的最大共同父路徑 { public static void main(String[] args) { List<String > filePaths = new ArrayList<Str

原创 常用算法-將文件列表轉換爲文件樹

/** * 將文件列表轉換爲文件樹 * * @author guoenjing * */ public class FlatFilePathsToTreeNode { public static class Node ex

原创 計算時針分針秒針夾角的方法

將當前時間轉換爲秒(hour*60*60+minute*60+second)再除以錶盤總秒數(12*60*60)再乘以360度就等於當前時針的度數。 分針,秒針同理。 再將時針度數分針度數做減法取絕對值,即可得到夾角,注:以12點方向爲0

原创 將Spring Boot項目打包成可執行jar的配置

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL

原创 配置maven項目的java版本

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId

原创 Maven工程跳過測試

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</art

原创 openjdk源碼

http://hg.openjdk.java.net/

原创 常用下載地址

https://sourceforge.net python eclipse插件地址

原创 eclipse 修改默認編碼

在${launcher}.ini文件中修改,重點是Dfile.encoding參數是jvm的啓動參數,必須放在-vmargs後面 -vmargs -Dfile.encoding=UTF-8  

原创 eclipse rcp 使用tycho打包

https://www.vogella.com/tutorials/EclipseTycho/article.html#maventycho_overview