Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
suliangchun
dbeaver
提交
adb48728
D
dbeaver
项目概览
suliangchun
/
dbeaver
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dbeaver
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
adb48728
编写于
12月 27, 2017
作者:
S
serge-rider
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#2458 Platform language model. Locale selection persistence.
Former-commit-id:
3ee1ea54
上级
5be16185
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
330 addition
and
19 deletion
+330
-19
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
...ns/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
+7
-0
plugins/org.jkiss.dbeaver.core/plugin.xml
plugins/org.jkiss.dbeaver.core/plugin.xml
+9
-0
plugins/org.jkiss.dbeaver.core/schema/org.jkiss.dbeaver.language.exsd
...jkiss.dbeaver.core/schema/org.jkiss.dbeaver.language.exsd
+92
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java
....dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java
+21
-15
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/RegistryConstants.java
...ore/src/org/jkiss/dbeaver/registry/RegistryConstants.java
+1
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/language/PlatformLanguageDescriptor.java
...dbeaver/registry/language/PlatformLanguageDescriptor.java
+64
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/language/PlatformLanguageRegistry.java
...s/dbeaver/registry/language/PlatformLanguageRegistry.java
+78
-0
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageDatabaseGeneral.java
...jkiss/dbeaver/ui/preferences/PrefPageDatabaseGeneral.java
+28
-3
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/app/DBPPlatform.java
...er.model/src/org/jkiss/dbeaver/model/app/DBPPlatform.java
+1
-1
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/app/DBPPlatformLanguage.java
.../src/org/jkiss/dbeaver/model/app/DBPPlatformLanguage.java
+29
-0
未找到文件。
plugins/org.jkiss.dbeaver.core/OSGI-INF/l10n/bundle.properties
浏览文件 @
adb48728
...
...
@@ -22,6 +22,7 @@ extension-point.org.jkiss.dbeaver.sql.covertname = SQL text conversions
extension-point.org.jkiss.dbeaver.tools.name
=
Tools
extension-point.org.jkiss.dbeaver.product.bundles.name
=
Product bundles
extension-point.org.jkiss.dbeaver.workbenchHandler.name
=
Workbench handlers
extension-point.org.jkiss.dbeaver.language.name
=
Language
content-type.org.jkiss.dbeaver.sql.name
=
SQL Script
content-type.org.jkiss.dbeaver.bookmark.name
=
Bookmark
...
...
@@ -36,6 +37,12 @@ view.database.output.title=Output
menu.navigate
=
Navigate
language.en.label
=
English
language.zh.label
=
Chinese
language.ru.label
=
Russian
language.it.label
=
Italian
language.de.label
=
German
editor.sql.name
=
SQL Editor
editor.folder.name
=
Folder Editor
editor.entity.name
=
Entity Editor
...
...
plugins/org.jkiss.dbeaver.core/plugin.xml
浏览文件 @
adb48728
...
...
@@ -39,6 +39,7 @@
<extension-point
id=
"org.jkiss.dbeaver.tools"
name=
"%extension-point.org.jkiss.dbeaver.tools.name"
schema=
"schema/org.jkiss.dbeaver.tools.exsd"
/>
<extension-point
id=
"org.jkiss.dbeaver.product.bundles"
name=
"%extension-point.org.jkiss.dbeaver.product.bundles.name"
schema=
"schema/org.jkiss.dbeaver.product.bundles.exsd"
/>
<extension-point
id=
"org.jkiss.dbeaver.workbenchHandler"
name=
"%extension-point.org.jkiss.dbeaver.workbenchHandler.name"
schema=
"schema/org.jkiss.dbeaver.workbenchHandler.exsd"
/>
<extension-point
id=
"org.jkiss.dbeaver.language"
name=
"%extension-point.org.jkiss.dbeaver.language.name"
schema=
"schema/org.jkiss.dbeaver.language.exsd"
/>
<extension
point=
"org.eclipse.core.contenttype.contentTypes"
>
<content-type
...
...
@@ -3611,6 +3612,14 @@
class=
"org.jkiss.dbeaver.ui.editors.sql.convert.impl.HTMLSQLConverter"
/>
</extension>
<extension
point=
"org.jkiss.dbeaver.language"
>
<language
code=
"en"
label=
"%language.en.label"
/>
<language
code=
"zh"
label=
"%language.zh.label"
/>
<language
code=
"ru"
label=
"%language.ru.label"
/>
<language
code=
"it"
label=
"%language.it.label"
/>
<language
code=
"de"
label=
"%language.de.label"
/>
</extension>
<extension
point=
"org.eclipse.search.searchPages"
>
<page
...
...
plugins/org.jkiss.dbeaver.core/schema/org.jkiss.dbeaver.language.exsd
0 → 100644
浏览文件 @
adb48728
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema
targetNamespace=
"org.jkiss.dbeaver.core"
xmlns=
"http://www.w3.org/2001/XMLSchema"
>
<annotation>
<appInfo>
<meta.schema
plugin=
"org.jkiss.dbeaver.core"
id=
"org.jkiss.dbeaver.language"
name=
"Language description"
/>
</appInfo>
<documentation>
Plugin Service
</documentation>
</annotation>
<element
name=
"extension"
>
<annotation>
<appInfo>
<meta.element
/>
</appInfo>
</annotation>
<complexType>
<sequence>
<element
ref=
"language"
minOccurs=
"0"
maxOccurs=
"unbounded"
/>
</sequence>
<attribute
name=
"point"
type=
"string"
use=
"required"
>
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute
name=
"class"
type=
"string"
>
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element
name=
"language"
>
<complexType>
<attribute
name=
"class"
type=
"string"
>
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute
kind=
"java"
basedOn=
":org.jkiss.dbeaver.runtime.IPluginService"
/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section
type=
"since"
/>
</appInfo>
<documentation>
[Enter the first release in which this extension point appears.]
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section
type=
"examples"
/>
</appInfo>
<documentation>
[Enter extension point usage example here.]
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section
type=
"apiinfo"
/>
</appInfo>
<documentation>
[Enter API information here.]
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section
type=
"implementation"
/>
</appInfo>
<documentation>
[Enter information about supplied implementation of this extension point.]
</documentation>
</annotation>
</schema>
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java
浏览文件 @
adb48728
...
...
@@ -47,6 +47,7 @@ import org.jkiss.dbeaver.registry.PluginServiceRegistry;
import
org.jkiss.dbeaver.registry.ProjectRegistry
;
import
org.jkiss.dbeaver.registry.datatype.DataTypeProviderRegistry
;
import
org.jkiss.dbeaver.registry.editor.EntityEditorsRegistry
;
import
org.jkiss.dbeaver.registry.language.PlatformLanguageRegistry
;
import
org.jkiss.dbeaver.registry.sql.SQLFormatterConfigurationRegistry
;
import
org.jkiss.dbeaver.runtime.IPluginService
;
import
org.jkiss.dbeaver.runtime.jobs.KeepAliveJob
;
...
...
@@ -79,7 +80,7 @@ public class DBeaverCore implements DBPPlatform {
private
static
final
Log
log
=
Log
.
getLog
(
DBeaverCore
.
class
);
public
static
final
String
TEMP_PROJECT_NAME
=
".dbeaver-temp"
;
//$NON-NLS-1$
public
static
final
String
RUNTIME_LOCALE_PROP
=
"runtime-local
e"
;
//$NON-NLS-1$
public
static
final
String
PLATFORM_LANGUAGE_PROP
=
"platform-languag
e"
;
//$NON-NLS-1$
private
static
final
DBPApplication
DEFAULT_APPLICATION
=
new
EclipseApplication
();
...
...
@@ -91,7 +92,7 @@ public class DBeaverCore implements DBPPlatform {
private
File
tempFolder
;
private
IWorkspace
workspace
;
private
Locale
runtimeLocale
=
Locale
.
getDefault
()
;
private
DBPPlatformLanguage
language
;
private
OSDescriptor
localSystem
;
private
DBNModel
navigatorModel
;
...
...
@@ -192,16 +193,18 @@ public class DBeaverCore implements DBPPlatform {
this
.
localSystem
=
new
OSDescriptor
(
Platform
.
getOS
(),
Platform
.
getOSArch
());
{
String
runtimeLocaleString
=
prefsStore
.
getString
(
RUNTIME_LOCAL
E_PROP
);
String
runtimeLocaleString
=
prefsStore
.
getString
(
PLATFORM_LANGUAG
E_PROP
);
if
(!
CommonUtils
.
isEmpty
(
runtimeLocaleString
))
{
this
.
runtimeLocale
=
Locale
.
forLanguageTag
(
runtimeLocaleString
);
if
(
this
.
runtimeLocal
e
==
null
)
{
this
.
language
=
PlatformLanguageRegistry
.
getInstance
().
getLanguage
(
Locale
.
forLanguageTag
(
runtimeLocaleString
)
);
if
(
this
.
languag
e
==
null
)
{
log
.
warn
(
"Runtime locale '"
+
runtimeLocaleString
+
"' not found"
);
this
.
runtimeLocale
=
Locale
.
getDefault
();
}
else
{
changeRuntimeLocale
(
runtimeLocal
e
);
changeRuntimeLocale
(
this
.
languag
e
);
}
}
if
(
this
.
language
==
null
)
{
this
.
language
=
PlatformLanguageRegistry
.
getInstance
().
getLanguage
(
Locale
.
ENGLISH
);
}
}
QMUtils
.
initApplication
(
this
);
...
...
@@ -346,21 +349,24 @@ public class DBeaverCore implements DBPPlatform {
@NotNull
@Override
public
Locale
getRuntimeLocal
e
()
{
return
runtimeLocal
e
;
public
DBPPlatformLanguage
getLanguag
e
()
{
return
languag
e
;
}
public
void
setRuntimeLocale
(
@NotNull
Locale
runtimeLocale
)
{
changeRuntimeLocale
(
runtimeLocale
);
this
.
runtimeLocale
=
runtimeLocale
;
getGlobalPreferenceStore
().
setValue
(
RUNTIME_LOCALE_PROP
,
runtimeLocale
.
toString
());
public
void
setPlatformLanguage
(
@NotNull
DBPPlatformLanguage
language
)
{
if
(
CommonUtils
.
equalObjects
(
language
,
this
.
language
))
{
return
;
}
changeRuntimeLocale
(
language
);
this
.
language
=
language
;
getGlobalPreferenceStore
().
setValue
(
PLATFORM_LANGUAGE_PROP
,
language
.
getCode
());
}
private
void
changeRuntimeLocale
(
@NotNull
Local
e
runtimeLocale
)
{
private
void
changeRuntimeLocale
(
@NotNull
DBPPlatformLanguag
e
runtimeLocale
)
{
// Check locale
ILocaleChangeService
localeService
=
PlatformUI
.
getWorkbench
().
getService
(
ILocaleChangeService
.
class
);
if
(
localeService
!=
null
)
{
localeService
.
changeApplicationLocale
(
runtimeLocale
);
localeService
.
changeApplicationLocale
(
runtimeLocale
.
getCode
()
);
}
else
{
log
.
warn
(
"Can't resolve locale change service"
);
}
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/RegistryConstants.java
浏览文件 @
adb48728
...
...
@@ -77,6 +77,7 @@ public class RegistryConstants {
public
static
final
String
ATTR_DRIVER
=
"driver"
;
//$NON-NLS-1$
public
static
final
String
ATTR_BUNDLE
=
"bundle"
;
//$NON-NLS-1$
public
static
final
String
ATTR_CODE
=
"code"
;
//$NON-NLS-1$
public
static
final
String
ATTR_LABEL
=
"label"
;
//$NON-NLS-1$
public
static
final
String
ATTR_DEFAULT_PORT
=
"defaultPort"
;
//$NON-NLS-1$
public
static
final
String
ATTR_SAMPLE_URL
=
"sampleURL"
;
//$NON-NLS-1$
...
...
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/language/PlatformLanguageDescriptor.java
0 → 100644
浏览文件 @
adb48728
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.registry.language
;
import
org.eclipse.core.runtime.IConfigurationElement
;
import
org.jkiss.code.NotNull
;
import
org.jkiss.dbeaver.model.app.DBPPlatformLanguage
;
import
org.jkiss.dbeaver.registry.AbstractContextDescriptor
;
import
org.jkiss.dbeaver.registry.RegistryConstants
;
/**
* PlatformLanguageDescriptor
*/
public
class
PlatformLanguageDescriptor
extends
AbstractContextDescriptor
implements
DBPPlatformLanguage
{
public
static
final
String
EXTENSION_ID
=
"org.jkiss.dbeaver.language"
;
//$NON-NLS-1$
private
final
String
code
;
private
final
String
label
;
private
final
String
description
;
public
PlatformLanguageDescriptor
(
IConfigurationElement
config
)
{
super
(
config
);
this
.
code
=
config
.
getAttribute
(
RegistryConstants
.
ATTR_CODE
);
this
.
label
=
config
.
getAttribute
(
RegistryConstants
.
ATTR_LABEL
);
this
.
description
=
config
.
getAttribute
(
RegistryConstants
.
ATTR_DESCRIPTION
);
}
@NotNull
@Override
public
String
getCode
()
{
return
code
;
}
@NotNull
@Override
public
String
getLabel
()
{
return
label
;
}
public
String
getDescription
()
{
return
description
;
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/language/PlatformLanguageRegistry.java
0 → 100644
浏览文件 @
adb48728
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.registry.language
;
import
org.eclipse.core.runtime.IConfigurationElement
;
import
org.eclipse.core.runtime.IExtensionRegistry
;
import
org.eclipse.core.runtime.Platform
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Locale
;
public
class
PlatformLanguageRegistry
{
private
static
PlatformLanguageRegistry
instance
=
null
;
public
synchronized
static
PlatformLanguageRegistry
getInstance
()
{
if
(
instance
==
null
)
{
instance
=
new
PlatformLanguageRegistry
(
Platform
.
getExtensionRegistry
());
}
return
instance
;
}
private
final
List
<
PlatformLanguageDescriptor
>
descriptors
=
new
ArrayList
<>();
private
PlatformLanguageRegistry
(
IExtensionRegistry
registry
)
{
// Load data descriptors from external plugins
{
IConfigurationElement
[]
extElements
=
registry
.
getConfigurationElementsFor
(
PlatformLanguageDescriptor
.
EXTENSION_ID
);
for
(
IConfigurationElement
ext
:
extElements
)
{
PlatformLanguageDescriptor
formatterDescriptor
=
new
PlatformLanguageDescriptor
(
ext
);
descriptors
.
add
(
formatterDescriptor
);
}
}
}
public
List
<
PlatformLanguageDescriptor
>
getLanguages
()
{
return
descriptors
;
}
public
PlatformLanguageDescriptor
getLanguage
(
String
id
)
{
for
(
PlatformLanguageDescriptor
descriptor
:
descriptors
)
{
if
(
descriptor
.
getCode
().
equals
(
id
))
{
return
descriptor
;
}
}
return
null
;
}
public
PlatformLanguageDescriptor
getLanguage
(
Locale
locale
)
{
for
(
PlatformLanguageDescriptor
descriptor
:
descriptors
)
{
if
(
descriptor
.
getCode
().
equals
(
locale
.
getLanguage
()))
{
return
descriptor
;
}
}
return
null
;
}
}
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageDatabaseGeneral.java
浏览文件 @
adb48728
...
...
@@ -33,13 +33,19 @@ import org.jkiss.code.Nullable;
import
org.jkiss.dbeaver.DBeaverPreferences
;
import
org.jkiss.dbeaver.core.CoreMessages
;
import
org.jkiss.dbeaver.core.DBeaverCore
;
import
org.jkiss.dbeaver.model.app.DBPPlatformLanguage
;
import
org.jkiss.dbeaver.model.preferences.DBPPreferenceStore
;
import
org.jkiss.dbeaver.registry.language.PlatformLanguageDescriptor
;
import
org.jkiss.dbeaver.registry.language.PlatformLanguageRegistry
;
import
org.jkiss.dbeaver.ui.UIUtils
;
import
org.jkiss.dbeaver.ui.controls.TextWithOpenFile
;
import
org.jkiss.dbeaver.utils.GeneralUtils
;
import
org.jkiss.dbeaver.utils.PrefUtils
;
import
org.jkiss.dbeaver.utils.RuntimeUtils
;
import
org.jkiss.dbeaver.utils.SystemVariablesResolver
;
import
org.jkiss.utils.CommonUtils
;
import
java.util.List
;
/**
* PrefPageDatabaseGeneral
...
...
@@ -49,6 +55,7 @@ public class PrefPageDatabaseGeneral extends AbstractPrefPage implements IWorkbe
public
static
final
String
PAGE_ID
=
"org.jkiss.dbeaver.preferences.main.common"
;
//$NON-NLS-1$
private
Button
automaticUpdateCheck
;
private
Combo
workspaceLanguage
;
private
Button
longOperationsCheck
;
private
Spinner
longOperationsTimeout
;
...
...
@@ -76,9 +83,23 @@ public class PrefPageDatabaseGeneral extends AbstractPrefPage implements IWorkbe
Composite
composite
=
UIUtils
.
createPlaceholder
(
parent
,
1
,
5
);
{
Group
groupObjects
=
UIUtils
.
createControlGroup
(
composite
,
CoreMessages
.
pref_page_ui_general_group_general
,
1
,
GridData
.
VERTICAL_ALIGN_BEGINNING
,
300
);
automaticUpdateCheck
=
UIUtils
.
createCheckbox
(
groupObjects
,
CoreMessages
.
pref_page_ui_general_checkbox_automatic_updates
,
false
);
automaticUpdateCheck
.
setLayoutData
(
new
GridData
(
GridData
.
BEGINNING
,
GridData
.
BEGINNING
,
true
,
false
,
2
,
1
));
Group
groupObjects
=
UIUtils
.
createControlGroup
(
composite
,
CoreMessages
.
pref_page_ui_general_group_general
,
2
,
GridData
.
VERTICAL_ALIGN_BEGINNING
,
300
);
automaticUpdateCheck
=
UIUtils
.
createCheckbox
(
groupObjects
,
CoreMessages
.
pref_page_ui_general_checkbox_automatic_updates
,
null
,
false
,
2
);
//automaticUpdateCheck.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false, 2, 1));
workspaceLanguage
=
UIUtils
.
createLabelCombo
(
groupObjects
,
"Language"
,
"Application language - used for UI localization"
,
SWT
.
READ_ONLY
|
SWT
.
DROP_DOWN
);
List
<
PlatformLanguageDescriptor
>
languages
=
PlatformLanguageRegistry
.
getInstance
().
getLanguages
();
DBPPlatformLanguage
pLanguage
=
DBeaverCore
.
getInstance
().
getLanguage
();
for
(
int
i
=
0
;
i
<
languages
.
size
();
i
++)
{
PlatformLanguageDescriptor
lang
=
languages
.
get
(
i
);
workspaceLanguage
.
add
(
lang
.
getLabel
());
if
(
CommonUtils
.
equalObjects
(
pLanguage
,
lang
))
{
workspaceLanguage
.
select
(
i
);
}
}
if
(
workspaceLanguage
.
getSelectionIndex
()
<
0
)
{
workspaceLanguage
.
select
(
0
);
}
}
// Agent settings
...
...
@@ -165,6 +186,10 @@ public class PrefPageDatabaseGeneral extends AbstractPrefPage implements IWorkbe
@Override
public
boolean
performOk
()
{
if
(
workspaceLanguage
.
getSelectionIndex
()
>=
0
)
{
PlatformLanguageDescriptor
language
=
PlatformLanguageRegistry
.
getInstance
().
getLanguages
().
get
(
workspaceLanguage
.
getSelectionIndex
());
DBeaverCore
.
getInstance
().
setPlatformLanguage
(
language
);
}
DBPPreferenceStore
store
=
DBeaverCore
.
getGlobalPreferenceStore
();
store
.
setValue
(
DBeaverPreferences
.
UI_AUTO_UPDATE_CHECK
,
automaticUpdateCheck
.
getSelection
());
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/app/DBPPlatform.java
浏览文件 @
adb48728
...
...
@@ -42,7 +42,7 @@ public interface DBPPlatform
DBPApplication
getApplication
();
@NotNull
Locale
getRuntimeLocal
e
();
DBPPlatformLanguage
getLanguag
e
();
@NotNull
DBNModel
getNavigatorModel
();
...
...
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/app/DBPPlatformLanguage.java
0 → 100644
浏览文件 @
adb48728
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.jkiss.dbeaver.model.app
;
/**
* DBPPlatformLanguage
*/
public
interface
DBPPlatformLanguage
{
String
getCode
();
String
getLabel
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录