Skip to content

Commit d54e73f

Browse files
convert RunnerView to Java, removing Xtend dependencies
1 parent 098a722 commit d54e73f

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed
Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/**
1+
/*
22
* Copyright 2019 Philipp Salvisberg <philipp.salvisberg@trivadis.com>
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,42 +16,39 @@
1616
package org.utplsql.sqldev.ui.runner;
1717

1818
import java.awt.Component;
19+
1920
import javax.swing.Icon;
21+
22+
import org.utplsql.sqldev.resources.UtplsqlResources;
23+
2024
import oracle.ide.docking.DockableWindow;
2125
import oracle.ide.layout.ViewId;
22-
import org.utplsql.sqldev.resources.UtplsqlResources;
23-
import org.utplsql.sqldev.ui.runner.RunnerFactory;
24-
import org.utplsql.sqldev.ui.runner.RunnerPanel;
2526

26-
@SuppressWarnings("all")
2727
public class RunnerView extends DockableWindow {
28-
private static final String VIEW_NAME = "UTPLSQL_RUNNER_VIEW";
29-
30-
public static final ViewId VIEW_ID = new ViewId(RunnerFactory.FACTORY_NAME, RunnerView.VIEW_NAME);
31-
32-
private RunnerPanel panel;
33-
34-
@Override
35-
public String getTitleName() {
36-
return UtplsqlResources.getString("RUNNER_VIEW_TITLE");
37-
}
38-
39-
@Override
40-
public Component getGUI() {
41-
if ((this.panel == null)) {
42-
RunnerPanel _runnerPanel = new RunnerPanel();
43-
this.panel = _runnerPanel;
28+
private static final String VIEW_NAME = "UTPLSQL_RUNNER_VIEW";
29+
public static final ViewId VIEW_ID = new ViewId(RunnerFactory.FACTORY_NAME, VIEW_NAME);
30+
private RunnerPanel panel;
31+
32+
@Override
33+
public String getTitleName() {
34+
return UtplsqlResources.getString("RUNNER_VIEW_TITLE");
35+
}
36+
37+
@Override
38+
public Component getGUI() {
39+
if (panel == null) {
40+
panel = new RunnerPanel();
41+
}
42+
return panel.getGUI();
43+
}
44+
45+
@Override
46+
public Icon getTabIcon() {
47+
return UtplsqlResources.getIcon("UTPLSQL_ICON");
48+
}
49+
50+
public RunnerPanel getRunnerPanel() {
51+
getGUI();
52+
return panel;
4453
}
45-
return this.panel.getGUI();
46-
}
47-
48-
@Override
49-
public Icon getTabIcon() {
50-
return UtplsqlResources.getIcon("UTPLSQL_ICON");
51-
}
52-
53-
public RunnerPanel getRunnerPanel() {
54-
this.getGUI();
55-
return this.panel;
56-
}
5754
}

0 commit comments

Comments
 (0)