標籤:blog http java 檔案 io 2014
本來是想漢化eclipse那個建立java類,本來想通過swt的方式擷取子控制項修改名字。
結果跟著原始碼就看到了它的屬性檔案。所以做法就是直接更改裡面的英文。再扔到jar包裡。
複製一點著檔案的內容:
################################################################################ Copyright (c) 2000, 2011 IBM Corporation and others.# All rights reserved. This program and the accompanying materials# are made available under the terms of the Eclipse Public License v1.0# which accompanies this distribution, and is available at# http://www.eclipse.org/legal/epl-v10.html## Contributors:# IBM Corporation - initial API and implementation################################################################################ ------- AbstractOpenWizardAction -------AbstractOpenWizardAction_noproject_title=New ElementAbstractOpenWizardAction_noproject_message=In order to create this element a project needs to be created first.\n\nDo you want to open the 'New Project' wizard now?AbstractOpenWizardAction_createerror_title=Open WizardAbstractOpenWizardAction_createerror_message=The wizard could not be opened. See log for details.# ------- NewElementWizard -------NewElementWizard_op_error_title=NewNewElementWizard_op_error_message=Creation of element failed.NewElementWizard_typecomment_deprecated_title=Type CreationNewElementWizard_typecomment_deprecated_message=You can configure the default layout of newly created files and types on the 'code generation' preference page. This was previously implemented on the template page in the templates 'filecomment' and 'typecomment'.# ------- NewContainerWizardPage -------NewContainerWi
此檔案地址:package org.eclipse.jdt.internal.ui.wizards.---------------------org.eclipse.jdt.ui.jar包裡。。