<NME> SQLEditorPresentationPanel.java
<BEF> ADDFILE
<MSG> SQL registry refactoring. SQL presentation panels


Former-commit-id: 976adace9af72c3c18c25cea62402f45e482c94f
<DFF> @@ -0,0 +1,32 @@
+/*
+ * 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.ui.editors.sql;
+
+import org.eclipse.swt.widgets.Composite;
+
+/**
+ * Presentation panel. Displayed in the same tab folder as SQL results and other panels
+ */
+public interface SQLEditorPresentationPanel {
+
+    void createPanel(Composite parent, SQLEditor editor, SQLEditorPresentation presentation);
+
+    void activatePanel();
+
+    void deactivatePanel();
+
+}

{'commit': 'diff --git a/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF b/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF\nindex 7c480af4a7..f4068bf4e8 100644\n--- a/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF\n+++ b/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF\n@@ -82,6 +82,7 @@ Export-Package: org.jkiss.dbeaver,\n  org.jkiss.dbeaver.ui.editors.sql.handlers,\n  org.jkiss.dbeaver.ui.editors.sql.indent,\n  org.jkiss.dbeaver.ui.editors.sql.log,\n+ org.jkiss.dbeaver.ui.editors.sql.registry,\n  org.jkiss.dbeaver.ui.editors.sql.syntax,\n  org.jkiss.dbeaver.ui.editors.sql.syntax.rules,\n  org.jkiss.dbeaver.ui.editors.sql.syntax.tokens,\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java\nindex 06e4292d97..04f96f8a4d 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/DBeaverCore.java\n@@ -47,7 +47,7 @@ import org.jkiss.dbeaver.registry.*;\n import org.jkiss.dbeaver.registry.datatype.DataTypeProviderRegistry;\r\n import org.jkiss.dbeaver.registry.editor.EntityEditorsRegistry;\r\n import org.jkiss.dbeaver.registry.language.PlatformLanguageRegistry;\r\n-import org.jkiss.dbeaver.registry.sql.SQLFormatterConfigurationRegistry;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLFormatterConfigurationRegistry;\r\n import org.jkiss.dbeaver.runtime.IPluginService;\r\n import org.jkiss.dbeaver.runtime.jobs.KeepAliveJob;\r\n import org.jkiss.dbeaver.runtime.net.GlobalProxySelector;\r\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java\nindex 565b3737f9..00ecbfb2ac 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/runtime/sql/SQLQueryJob.java\n@@ -49,8 +49,8 @@ import org.jkiss.dbeaver.model.sql.*;\n import org.jkiss.dbeaver.model.sql.parser.SQLSemanticProcessor;\r\n import org.jkiss.dbeaver.model.struct.DBSDataContainer;\r\n import org.jkiss.dbeaver.registry.DataSourceProviderRegistry;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandHandlerDescriptor;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandsRegistry;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandHandlerDescriptor;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandsRegistry;\r\n import org.jkiss.dbeaver.runtime.jobs.DataSourceJob;\r\n import org.jkiss.dbeaver.ui.UIConfirmation;\r\n import org.jkiss.dbeaver.ui.UITask;\r\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java\nindex 6059d009ca..c18a9af08a 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditor.java\n@@ -83,8 +83,8 @@ import org.jkiss.dbeaver.model.sql.*;\n import org.jkiss.dbeaver.model.struct.DBSDataContainer;\n import org.jkiss.dbeaver.model.struct.DBSObject;\n import org.jkiss.dbeaver.model.struct.DBSObjectSelector;\n-import org.jkiss.dbeaver.registry.sql.SQLPresentationDescriptor;\n-import org.jkiss.dbeaver.registry.sql.SQLPresentationRegistry;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLPresentationDescriptor;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLPresentationRegistry;\n import org.jkiss.dbeaver.runtime.sql.SQLQueryJob;\n import org.jkiss.dbeaver.runtime.sql.SQLQueryListener;\n import org.jkiss.dbeaver.runtime.sql.SQLResultsConsumer;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditorPresentationPanel.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditorPresentationPanel.java\nnew file mode 100644\nindex 0000000000..96b70fdf79\n--- /dev/null\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditorPresentationPanel.java\n@@ -0,0 +1,32 @@\n+/*\n+ * DBeaver - Universal Database Manager\n+ * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the "License");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an "AS IS" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.jkiss.dbeaver.ui.editors.sql;\n+\n+import org.eclipse.swt.widgets.Composite;\n+\n+/**\n+ * Presentation panel. Displayed in the same tab folder as SQL results and other panels\n+ */\n+public interface SQLEditorPresentationPanel {\n+\n+    void createPanel(Composite parent, SQLEditor editor, SQLEditorPresentation presentation);\n+\n+    void activatePanel();\n+\n+    void deactivatePanel();\n+\n+}\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/convert/CopySourceCodeHandler.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/convert/CopySourceCodeHandler.java\nindex 7e6a9b03ce..1afe859520 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/convert/CopySourceCodeHandler.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/convert/CopySourceCodeHandler.java\n@@ -42,8 +42,8 @@ import org.jkiss.dbeaver.core.CoreMessages;\n import org.jkiss.dbeaver.model.exec.DBCExecutionContext;\n import org.jkiss.dbeaver.model.preferences.DBPPropertyDescriptor;\n import org.jkiss.dbeaver.model.sql.SQLScriptElement;\n-import org.jkiss.dbeaver.registry.sql.SQLConverterRegistry;\n-import org.jkiss.dbeaver.registry.sql.SQLTargetConverterDescriptor;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLConverterRegistry;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLTargetConverterDescriptor;\n import org.jkiss.dbeaver.runtime.properties.PropertySourceCustom;\n import org.jkiss.dbeaver.ui.UIUtils;\n import org.jkiss.dbeaver.ui.controls.StyledTextUtils;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/format/BaseFormatterConfigurationPage.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/format/BaseFormatterConfigurationPage.java\nindex 2f2928a0b3..df64e6fa5e 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/format/BaseFormatterConfigurationPage.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/format/BaseFormatterConfigurationPage.java\n@@ -24,7 +24,7 @@ import org.eclipse.swt.layout.GridLayout;\n import org.eclipse.swt.widgets.Composite;\n import org.jkiss.dbeaver.model.sql.format.SQLFormatter;\n import org.jkiss.dbeaver.model.sql.format.SQLFormatterConfiguration;\n-import org.jkiss.dbeaver.registry.sql.SQLFormatterConfigurer;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLFormatterConfigurer;\n import org.jkiss.dbeaver.ui.UIUtils;\n import org.jkiss.dbeaver.ui.dialogs.ActiveWizardPage;\n \ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandHandlerDescriptor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandHandlerDescriptor.java\nsimilarity index 97%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandHandlerDescriptor.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandHandlerDescriptor.java\nindex 73fd865df3..8e5fb068d7 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandHandlerDescriptor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandHandlerDescriptor.java\n@@ -15,7 +15,7 @@\n  * limitations under the License.\n  */\n \n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.jkiss.dbeaver.DBException;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandsRegistry.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandsRegistry.java\nsimilarity index 97%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandsRegistry.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandsRegistry.java\nindex f1a92a948f..acce3c1b61 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLCommandsRegistry.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLCommandsRegistry.java\n@@ -14,7 +14,7 @@\n  * See the License for the specific language governing permissions and\n  * limitations under the License.\n  */\n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.eclipse.core.runtime.IExtensionRegistry;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLConverterRegistry.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLConverterRegistry.java\nsimilarity index 97%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLConverterRegistry.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLConverterRegistry.java\nindex d03eedd64b..dac4717835 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLConverterRegistry.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLConverterRegistry.java\n@@ -15,7 +15,7 @@\n  * limitations under the License.\n  */\n \n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.eclipse.core.runtime.IExtensionRegistry;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurationRegistry.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurationRegistry.java\nsimilarity index 98%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurationRegistry.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurationRegistry.java\nindex 5ce0d04955..a73aa2caf7 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurationRegistry.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurationRegistry.java\n@@ -14,7 +14,7 @@\n  * See the License for the specific language governing permissions and\n  * limitations under the License.\n  */\n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.eclipse.core.runtime.IExtensionRegistry;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurer.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurer.java\nsimilarity index 95%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurer.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurer.java\nindex 0234aed346..a60e8c8648 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterConfigurer.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterConfigurer.java\n@@ -14,7 +14,7 @@\n  * See the License for the specific language governing permissions and\n  * limitations under the License.\n  */\n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.jkiss.dbeaver.model.sql.format.SQLFormatter;\n import org.jkiss.dbeaver.model.sql.format.SQLFormatterConfiguration;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterDescriptor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterDescriptor.java\nsimilarity index 96%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterDescriptor.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterDescriptor.java\nindex 7300a35b5c..2a91b72d11 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLFormatterDescriptor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLFormatterDescriptor.java\n@@ -15,7 +15,7 @@\n  * limitations under the License.\n  */\n \n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.jkiss.code.Nullable;\n@@ -24,7 +24,6 @@ import org.jkiss.dbeaver.DBException;\n import org.jkiss.dbeaver.model.impl.AbstractDescriptor;\n import org.jkiss.dbeaver.model.sql.format.SQLFormatter;\n import org.jkiss.dbeaver.registry.AbstractContextDescriptor;\n-import org.jkiss.dbeaver.registry.RegistryConstants;\n import org.jkiss.utils.CommonUtils;\n \n /**\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationDescriptor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationDescriptor.java\nsimilarity index 98%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationDescriptor.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationDescriptor.java\nindex a676b99c05..1739d1a95b 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationDescriptor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationDescriptor.java\n@@ -15,7 +15,7 @@\n  * limitations under the License.\n  */\n \n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.jkiss.dbeaver.DBException;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationRegistry.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationRegistry.java\nsimilarity index 97%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationRegistry.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationRegistry.java\nindex 085323ef1e..bdd096f047 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLPresentationRegistry.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLPresentationRegistry.java\n@@ -14,7 +14,7 @@\n  * See the License for the specific language governing permissions and\n  * limitations under the License.\n  */\n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.eclipse.core.runtime.IExtensionRegistry;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLTargetConverterDescriptor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLTargetConverterDescriptor.java\nsimilarity index 98%\nrename from plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLTargetConverterDescriptor.java\nrename to plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLTargetConverterDescriptor.java\nindex 21a6dd33fb..b8f24f4a10 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/registry/sql/SQLTargetConverterDescriptor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/registry/SQLTargetConverterDescriptor.java\n@@ -15,7 +15,7 @@\n  * limitations under the License.\n  */\n \n-package org.jkiss.dbeaver.registry.sql;\n+package org.jkiss.dbeaver.ui.editors.sql.registry;\n \n import org.eclipse.core.runtime.IConfigurationElement;\n import org.jkiss.dbeaver.DBException;\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCommandCompletionProposal.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCommandCompletionProposal.java\nindex ddff21fae2..45689a4341 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCommandCompletionProposal.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCommandCompletionProposal.java\n@@ -11,7 +11,7 @@\n package org.jkiss.dbeaver.ui.editors.sql.syntax;\n \n import org.jkiss.dbeaver.model.DBPKeywordType;\n-import org.jkiss.dbeaver.registry.sql.SQLCommandHandlerDescriptor;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandHandlerDescriptor;\n import org.jkiss.dbeaver.ui.DBeaverIcons;\n \n \ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCompletionProcessor.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCompletionProcessor.java\nindex 57b6eb0663..ea5fae0743 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCompletionProcessor.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLCompletionProcessor.java\n@@ -34,8 +34,8 @@ import org.jkiss.dbeaver.model.struct.DBSObject;\n import org.jkiss.dbeaver.model.struct.DBSObjectContainer;\r\n import org.jkiss.dbeaver.model.struct.DBSObjectFilter;\r\n import org.jkiss.dbeaver.model.struct.DBSObjectReference;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandHandlerDescriptor;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandsRegistry;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandHandlerDescriptor;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandsRegistry;\r\n import org.jkiss.dbeaver.ui.TextUtils;\r\n import org.jkiss.dbeaver.ui.UIUtils;\r\n import org.jkiss.dbeaver.ui.editors.sql.SQLEditorBase;\r\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLFormattingStrategy.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLFormattingStrategy.java\nindex 440e911b91..96a08c2f72 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLFormattingStrategy.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLFormattingStrategy.java\n@@ -19,11 +19,10 @@ package org.jkiss.dbeaver.ui.editors.sql.syntax;\n import org.eclipse.jface.text.IDocument;\r\n import org.eclipse.jface.text.formatter.ContextBasedFormattingStrategy;\r\n import org.eclipse.jface.text.source.ISourceViewer;\r\n-import org.jkiss.dbeaver.core.DBeaverUI;\r\n import org.jkiss.dbeaver.model.sql.SQLSyntaxManager;\r\n import org.jkiss.dbeaver.model.sql.format.SQLFormatter;\r\n import org.jkiss.dbeaver.model.sql.format.SQLFormatterConfiguration;\r\n-import org.jkiss.dbeaver.registry.sql.SQLFormatterConfigurationRegistry;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLFormatterConfigurationRegistry;\r\n import org.jkiss.dbeaver.ui.editors.sql.SQLEditorSourceViewerConfiguration;\r\n \r\n /**\r\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLRuleManager.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLRuleManager.java\nindex e7aea69a33..247574de00 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLRuleManager.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLRuleManager.java\n@@ -34,8 +34,8 @@ import org.jkiss.dbeaver.model.sql.SQLConstants;\n import org.jkiss.dbeaver.model.sql.SQLDialect;\r\n import org.jkiss.dbeaver.runtime.sql.SQLRuleProvider;\r\n import org.jkiss.dbeaver.model.sql.SQLSyntaxManager;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandHandlerDescriptor;\r\n-import org.jkiss.dbeaver.registry.sql.SQLCommandsRegistry;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandHandlerDescriptor;\r\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLCommandsRegistry;\r\n import org.jkiss.dbeaver.ui.editors.EditorUtils;\r\n import org.jkiss.dbeaver.ui.editors.sql.SQLPreferenceConstants;\r\n import org.jkiss.dbeaver.ui.editors.sql.syntax.rules.*;\r\ndiff --git a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageSQLFormat.java b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageSQLFormat.java\nindex b3d965d506..1d10a745bc 100644\n--- a/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageSQLFormat.java\n+++ b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/preferences/PrefPageSQLFormat.java\n@@ -38,8 +38,8 @@ import org.jkiss.dbeaver.model.DBPIdentifierCase;\n import org.jkiss.dbeaver.model.exec.DBCExecutionContext;\n import org.jkiss.dbeaver.model.preferences.DBPPreferenceStore;\n import org.jkiss.dbeaver.model.sql.format.external.SQLFormatterExternal;\n-import org.jkiss.dbeaver.registry.sql.SQLFormatterConfigurationRegistry;\n-import org.jkiss.dbeaver.registry.sql.SQLFormatterDescriptor;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLFormatterConfigurationRegistry;\n+import org.jkiss.dbeaver.ui.editors.sql.registry.SQLFormatterDescriptor;\n import org.jkiss.dbeaver.ui.UIUtils;\n import org.jkiss.dbeaver.ui.editors.StringEditorInput;\n import org.jkiss.dbeaver.ui.editors.SubEditorSite;\n', 'commit_subject': 'SQL registry refactoring. SQL presentation panels', 'repo_name': 'dbeaver/dbeaver', 'committer': {'name': 'serge-rider', 'email': 'c9ddb6c25a8f77bd31ba26bb8332c4e1aa2c6778@jkiss.org', 'time_sec': '1529963454', 'tz_offset': '180', 'date': {'seconds': '1529963454'}}, 'commit_tree': '3b8d4a6959655bbd555ca792dcc8333b057014e2', 'commit_message': 'SQL registry refactoring. SQL presentation panels\n\n\nFormer-commit-id: 976adace9af72c3c18c25cea62402f45e482c94f', 'language_name': 'JavaScript', 'license': 'apache-2.0', 'hunks': '@@ -0,0 +1,32 @@\n+/*\n+ * DBeaver - Universal Database Manager\n+ * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the "License");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an "AS IS" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.jkiss.dbeaver.ui.editors.sql;\n+\n+import org.eclipse.swt.widgets.Composite;\n+\n+/**\n+ * Presentation panel. Displayed in the same tab folder as SQL results and other panels\n+ */\n+public interface SQLEditorPresentationPanel {\n+\n+    void createPanel(Composite parent, SQLEditor editor, SQLEditorPresentation presentation);\n+\n+    void activatePanel();\n+\n+    void deactivatePanel();\n+\n+}\n', 'addition_count': 32, 'deletion_count': 0, 'src_file': '/dev/null', 'tgt_file': 'b/plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditorPresentationPanel.java', 'file_extension': '.java', 'before_file': 'ADDFILE', 'message': 'SQL registry refactoring. SQL presentation panels\n\n\nFormer-commit-id: 976adace9af72c3c18c25cea62402f45e482c94f', 'author_name': 'serge-rider', 'lang': 'jkiss'}