Time of Update: 2018-12-05
問題:下面一個簡單的類:public class MyTest { private static String className = String.class.getName(); //紅色部分是下面問題的關鍵 public static void main(String[] args){ System.out.println(className); }}經eclipse3.1.1編譯後(指定類相容性版本為1.4),再反編譯的結果是:public class MyTest{
Time of Update: 2018-12-05
一、Eclipse 基本 Editor 的設定使用空格替換 Tab Window -> Preferences -> General -> Editors -> Text Editors 二、對 Java/HTML/Ant 等擴充編輯器,還需要單獨去設定 1). For Java: sets java code style in eclipse Window -> Preferences -> java ->
Time of Update: 2018-12-05
有時候一些 eclipse 外掛程式安裝之後,開啟 eclipse 死活都不顯示,這時候可以: ① 把 eclipse/configuration/org.eclipse.update 刪除掉。出現這種情況的原因是在你安裝新的外掛程式以前你啟動過 eclipse ,在 org.eclipse.update 檔案夾下記錄了外掛程式的曆史更新情況,它只記憶了以前的外掛程式更新情況,而新安裝的外掛程式它並不記錄,所以刪除掉這個檔案夾就可以解決這個問題了,不過刪除掉這個檔案夾後, eclipse
Time of Update: 2018-12-05
<!ELEMENT (parameter*)><!ATTLIST keysequence CDATA #REQUIRED schemeId CDATA #REQUIRED contextId CDATA "org.eclipse.ui.contexts.window" commandId CDATA #IMPLIED platform CDATA #IMPLIED locale CDATA #IMPLIED> A binding between some
Time of Update: 2018-12-05
1、Eclipse 中外掛程式開發多語言的實現為了使用 .properties 檔案,需要在 META-INF/MANIFEST.MF 檔案中定義: Bundle-Localization: plugin這樣就會自動載入 plugin.properties 檔案(中文找 plugin_zh_CN.properties)然後在 plugin.xml 檔案中,將字串替換為 %key 就可以了建議先使用 Eclipse 的外部化字串目錄:Bundle-Localization:
Time of Update: 2018-12-05
由於在Android源碼中,很多方法、成員、類、包都被打上@hide標籤,這些成員在SDK中沒有公開,以至於在編譯Launcher源碼時最常遇到的類android.view.View的成員mScrollX無法訪問。下面說說如何解決這個問題。1,準備好編譯後的Android源碼。2,在該源碼的out目錄下尋找包含你所用隱藏類的jar檔案,通常檔案名稱為classes.jar。例如framework的jar檔案為out/target/common/obj/JAVA_LIBRARIES/framewo
Time of Update: 2018-12-05
public interface IIDEActionConstantsIdentifiers for IDE menus, toolbars and groups. This interface contains constants only; it is not intended to be implemented or extended. Note: want to move IDE-specific stuff out of IWorkbenchActionConstants.
Time of Update: 2018-12-05
Part NameRegistering ClassMenu IdWorkbench Part
Time of Update: 2018-12-05
我們知道,Title 是在 ApplicationWorkbenchWindowAdvisor 裡面通過public void preWindowOpen(){ IWorkbenchWindowConfigurer configurer = getWindowConfigurer(); configurer.setInitialSize(new Point(600, 500)); configurer.setShowCoolBar(false);
Time of Update: 2018-12-05
開發任何軟體都不得不處理 Exception 和 Log,Eclipse Plug-in 也是如此。不過幸運的是,Eclipse PDE 提供了記錄及顯示Exception和Log的機制:Error Log View。作為 Eclipse SDK 的一部分,PDE 的普及率很高,所以除非你是要做 RCP,不然的話用 Error Log View處理 Exception 和 Log 應該是你的最佳選擇。當然,這也帶來了對 PDE 的依賴性。使用 Error Log View實際上非常簡單,每個
Time of Update: 2018-12-05
Java 代碼:WorkbenchWindow window = (WorkbenchWindow)PlatformUI.getWorkbench().getActiveWorkbenchWindow();PerspectiveBarManager barManager = window.getPerspectiveBar();CoolBarManager manager =
Time of Update: 2018-12-05
1、Eclipse 的 undo/redo 的功能表命令標籤(edit -> Undo Typing)的原始碼位置:org.eclipse.text.undo.DocumentUndoManager.UndoableTextChange#UndoableTextChange// location: org.eclipse.text.undo.DocumentUndoManager 2、從 Workbench 擷取 IDocumentIWorkbenchPage page =
Time of Update: 2018-12-05
一、Android Apk簽名Apk簽名首先要有一個keystore的簽名用的檔案。keystore是由jdk內建的工具keytool產生的。具體產生方式參考:開始->運行->cmd->cd到你安裝的jdk的目錄裡,我的是C:/Program Files/Java/jdk1.6.0_10/bin然後輸入:keytool -genkey -alias asaiAndroid.keystore -keyalg RSA -validity 20000 -keystore
Time of Update: 2018-12-05
1、Eclipse 的啟動畫面 A、加啟動參數。如: eclipse.exe -showsplash C:/splash.bmp 更多可參考:http://www.cnblogs.com/sharewind/archive/2007/03/11/671270.html B、修改預設圖片。位於:plugins/org.eclipse.platform_3.3.2.R33x_v20071022(灰色為版本號碼) 2、Tomcat 的虛擬目錄配置 開啟
Time of Update: 2018-12-05
Srping IDEhttp://www.springsource.com/update/e3.5EasyShellhttp://pluginbox.sourceforge.netM2Eclipse http://m2eclipse.sonatype.org/sites/m2e/0.10.2.20100623-1649/ Log4E
Time of Update: 2018-12-05
maven常用命令常用命令為 : mvn archetype:create :建立 Maven 項目 mvn compile :編譯原始碼 mvn test-compile :編譯測試代碼 mvn test : 運行應用程式中的單元測試 mvn site : 產生項目相關資訊的網站 mvn clean :清除目標目錄中的產生結果 mvn package : 依據項目產生 jar 檔案 mvn install :在本地
Time of Update: 2018-12-05
1:設定eclipse自動產生的author等注釋indow->preference->java->codestyple->codetemplate->type:/** * @author larry * @email larry.lv.word@gmail.com * @version 建立時間 ${date} ${time} *
Time of Update: 2018-12-05
sudo apt-get install eclipse安裝後開啟eclipse,提示出錯An error has occurred. See the log file/home/pengeorge/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1342406790169.log.開啟log檔案,看到下面的錯誤!SESSION 2012-07-16 10:46:29.992 ------------------------
Time of Update: 2018-12-05
eclipse:預設的配置路徑不對,需要自己設定一下。參考eclipse下的Tomcat配置及jsp網頁調試中的3.4Myeclipse:如果使用Tomcat7,會出現這個問題,因為只支援到Tomcat6window-preferences-servers-Tomcat6.x-Path在Path裡面選擇Add
Time of Update: 2018-12-05
A screencast demonstrating roughly the same thing is available at: http://blip.tv/file/586651For iTunes users there's a videopodcast at: http://takis.blip.tv/rss/itunes/Download the Linux kernel sourcecode from http://www.kernel.org/. For example,