Skip to content
Permalink
Browse files

Merge pull request #68 from mattcasters/master

Small fix for WebSpoon
  • Loading branch information...
mattcasters committed Nov 17, 2018
2 parents 44b3901 + 754fb94 commit a4e41b043d57f7261b89e60dda07b44328d5d726
Showing with 7 additions and 6 deletions.
  1. +1 −1 pom.xml
  2. +6 −5 src/main/java/bi/know/kettle/neo4j/shared/NeoConnectionDialog.java
@@ -4,7 +4,7 @@

<groupId>bi.know.kettle.neo4j.output</groupId>
<artifactId>Neo4JOutput</artifactId>
<version>3.15.0-SNAPSHOT</version>
<version>3.15.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Neo4JOutput</name>
@@ -34,11 +34,12 @@
* @see NeoConnection
*/

public class NeoConnectionDialog extends Dialog {
public class NeoConnectionDialog {
private static Class<?> PKG = NeoConnectionDialog.class; // for i18n purposes, needed by Translator2!!

private NeoConnection neoConnection;

private Shell parent;
private Shell shell;

// Connection properties
@@ -62,15 +63,15 @@
private boolean ok;
private Label wlPolicy;

public NeoConnectionDialog( Shell par, NeoConnection neoConnection ) {
super( par, SWT.NONE );
public NeoConnectionDialog( Shell parent, NeoConnection neoConnection ) {
this.parent = parent;
this.neoConnection = neoConnection;
props = PropsUI.getInstance();
ok = false;
}

public boolean open() {
Shell parent = getParent();
Display display = parent.getDisplay();
shell = new Shell( parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN );
props.setLook( shell );
shell.setImage( GUIResource.getInstance().getImageSlave() );
@@ -129,7 +130,7 @@ public void shellClosed( ShellEvent e ) {
BaseStepDialog.setSize( shell );

shell.open();
Display display = parent.getDisplay();

while ( !shell.isDisposed() ) {
if ( !display.readAndDispatch() ) {
display.sleep();

0 comments on commit a4e41b0

Please sign in to comment.
You can’t perform that action at this time.