Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #68 from mattcasters/master
Browse files Browse the repository at this point in the history
Small fix for WebSpoon
  • Loading branch information
mattcasters committed Nov 17, 2018
2 parents 44b3901 + 754fb94 commit a4e41b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -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>
Expand Down
Expand Up @@ -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
Expand All @@ -62,15 +63,15 @@ public class NeoConnectionDialog extends Dialog {
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() );
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a4e41b0

Please sign in to comment.