提交 664520d8 编写于 作者: S serge-rider

#2258 SQL content describer fix (BOM support)

上级 4a3e8568
......@@ -16,6 +16,7 @@
*/
package org.jkiss.dbeaver.ui.editors.sql;
import org.eclipse.core.internal.content.TextContentDescriber;
import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.core.runtime.content.IContentDescriber;
import org.eclipse.core.runtime.content.IContentDescription;
......@@ -27,17 +28,14 @@ import java.io.InputStream;
/**
* SQL content type describer
*/
public class SQLContentTypeDescriber implements IContentDescriber {
@Override
public int describe(InputStream contents, IContentDescription description) throws IOException
{
return INDETERMINATE;
}
public class SQLContentTypeDescriber extends TextContentDescriber {
@Override
public QualifiedName[] getSupportedOptions()
{
return new QualifiedName[] { EditorUtils.QN_DATA_SOURCE_ID};
return new QualifiedName[] {
IContentDescription.BYTE_ORDER_MARK,
IContentDescription.CHARSET,
EditorUtils.QN_DATA_SOURCE_ID};
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册