提交 17375793 编写于 作者: S Sebastian Drozdz
上级 7c420fb2
......@@ -2,14 +2,6 @@
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<dependencies>
<dependency>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>org.jkiss.dbeaver.model</artifactId>
<version>1.0.140-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<parent>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>plugins</artifactId>
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
*
* 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.ext.datavirtuality;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class DataVirtualityUIActivator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.jkiss.dbeaver.ext.datavirtuality.ui";
// The shared instance
private static DataVirtualityUIActivator plugin;
public DataVirtualityUIActivator() {
}
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
public static DataVirtualityUIActivator getDefault() {
return plugin;
}
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
}
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -21,6 +21,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
......@@ -40,7 +41,6 @@ import org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPageAbstract;
import org.jkiss.dbeaver.ui.dialogs.connection.DriverPropertiesDialogPage;
import org.jkiss.utils.CommonUtils;
import java.awt.*;
import java.util.Locale;
/**
......@@ -56,16 +56,25 @@ public class DataVirtualityConnectionPage extends ConnectionPageAbstract impleme
private Combo dbText;
private Text usernameText;
private static ImageDescriptor logoImage = DataVirtualityUIActivator.getImageDescriptor("icons/datavirtuality_logo.png"); //$NON-NLS-1$
private final Image logoImage;
public DataVirtualityConnectionPage() {
logoImage = createImage("icons/datavirtuality_logo.png"); //$NON-NLS-1$
}
@Override
public void dispose() {
super.dispose();
UIUtils.dispose(logoImage);
}
@Override
public Image getImage() {
return logoImage;
}
@Override
public void createControl(Composite composite) {
setImageDescriptor(logoImage);
Composite control = new Composite(composite, SWT.NONE);
control.setLayout(new GridLayout(1, false));
......
......@@ -35,7 +35,7 @@
description="Data Virtuality JDBC driver"
webURL="https://https://datavirtuality.com/docs/"
categories="sql,analytic">
<file type="jar" path="C:\Users\admin\Downloads\datavirtuality-jdbc.jar"/>
<file type="jar" path="http://{host}:8080/jdbc/datavirtuality-jdbc.jar"/>
</driver>
</drivers>
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -1384,18 +1384,6 @@
description="Snowflake JDBC driver"
webURL="https://docs.snowflake.net/manuals/user-guide/jdbc-configure.html">
<file type="jar" path="maven:/net.snowflake:snowflake-jdbc:RELEASE"/>
</driver>
<!-- DataVirtuality -->
<driver
id="datavirtuality_generic"
label="DataVirtuality"
class="com.datavirtuality.dv.jdbc.Driver"
sampleURL="jdbc:datavirtuality:{database}@mm://{host}:{port}"
defaultPort="31000"
description="DataVirtuality JDBC driver"
webURL="https://docs.snowflake.net/manuals/user-guide/jdbc-configure.html">
<file type="jar" path="maven:/com.datavirtuality.dv.jdbc.Driver-jdbc:RELEASE"/>
</driver>
</drivers>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册