使用国际化
This commit is contained in:
parent
7d7e50c25d
commit
6053b23fce
@ -12,6 +12,9 @@ public class TextConstants {
|
||||
public static final String SAVE = "SAVE";
|
||||
public static final String FILE = "FILE";
|
||||
|
||||
public static final String BUILD = "BUILD";
|
||||
public static final String TERMINAL = "TERMINAL";
|
||||
|
||||
public static final String RUN = "RUN";
|
||||
public static final String DE_BUG = "DE_BUG";
|
||||
public static final String NEW = "NEW";
|
||||
|
||||
@ -2,10 +2,12 @@ package org.jcnc.jnotepad.component.module.vbox;
|
||||
|
||||
import javafx.scene.control.Tab;
|
||||
import javafx.scene.control.TabPane;
|
||||
import org.jcnc.jnotepad.component.module.vbox.components.DebugBox;
|
||||
import org.jcnc.jnotepad.component.module.vbox.components.CmdTerminalBox;
|
||||
import org.jcnc.jnotepad.component.module.vbox.components.DebugBox;
|
||||
import org.jcnc.jnotepad.component.module.vbox.components.RunBox;
|
||||
|
||||
import static org.jcnc.jnotepad.common.constants.TextConstants.*;
|
||||
|
||||
/**
|
||||
* 底部Run,Debug,Cmd面板
|
||||
*
|
||||
@ -33,13 +35,13 @@ public class BuildPanel extends TabPane {
|
||||
runBox = new RunBox();
|
||||
debugBox = new DebugBox();
|
||||
|
||||
Tab runTab = new Tab("运行",runBox);
|
||||
Tab runTab = new Tab(RUN,runBox);
|
||||
runTab.setClosable(false);
|
||||
|
||||
Tab buildTab = new Tab("构建", debugBox);
|
||||
Tab buildTab = new Tab(BUILD, debugBox);
|
||||
buildTab.setClosable(false);
|
||||
|
||||
Tab cmdTab = new Tab("控制台",cmdTerminalBox);
|
||||
Tab cmdTab = new Tab(TERMINAL,cmdTerminalBox);
|
||||
cmdTab.setClosable(false);
|
||||
this.getTabs().addAll(runTab,buildTab,cmdTab);
|
||||
}
|
||||
|
||||
@ -70,9 +70,6 @@ public class RunTopMenu extends AbstractTopMenu {
|
||||
|
||||
String code = centerTab.getLineNumberTextArea().getText();
|
||||
|
||||
// TextCodeArea的当前文本内容
|
||||
System.out.println("TextCodeArea的当前文本内容:" + code);
|
||||
|
||||
String fileName = centerTab.getText();
|
||||
|
||||
// 将C代码写入临时文件
|
||||
|
||||
@ -10,6 +10,8 @@ CHINESE=中文
|
||||
title=JNotepad
|
||||
OPEN=打开
|
||||
OPEN_DIRECTORY=打开文件夹
|
||||
BUILD=构建
|
||||
TERMINAL=控制台
|
||||
ABOUT=关于
|
||||
DEVELOPER=开发者
|
||||
HELP=帮助
|
||||
|
||||
@ -14,6 +14,8 @@ OPEN=Open
|
||||
OPEN_DIRECTORY=Open Directory
|
||||
HELP=Help
|
||||
RUN=Run
|
||||
BUILD=Build
|
||||
TERMINAL=Terminal
|
||||
DE_BUG=Debug
|
||||
OPEN_CONFIGURATION_FILE=Open Configuration File
|
||||
RENAME=Rename
|
||||
|
||||
@ -13,6 +13,8 @@ OPEN_DIRECTORY=打开文件夹
|
||||
HELP=帮助
|
||||
RUN=运行
|
||||
DE_BUG=调试
|
||||
BUILD=构建
|
||||
TERMINAL=控制台
|
||||
ABOUT=关于
|
||||
DEVELOPER=开发者
|
||||
OPEN_CONFIGURATION_FILE=打开配置文件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user