Skip to content

Commit 098a722

Browse files
add RunnerView.java generated by Xtend 2.20.0
1 parent 429e3e5 commit 098a722

File tree

1 file changed

+40
-29
lines changed

1 file changed

+40
-29
lines changed
Lines changed: 40 additions & 29 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");
@@ -13,34 +13,45 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.utplsql.sqldev.ui.runner
16+
package org.utplsql.sqldev.ui.runner;
1717

18-
import oracle.ide.docking.DockableWindow
19-
import oracle.ide.layout.ViewId
20-
import org.utplsql.sqldev.resources.UtplsqlResources
18+
import java.awt.Component;
19+
import javax.swing.Icon;
20+
import oracle.ide.docking.DockableWindow;
21+
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;
2125

22-
class RunnerView extends DockableWindow {
23-
static val VIEW_NAME = "UTPLSQL_RUNNER_VIEW"
24-
public static val ViewId VIEW_ID = new ViewId(RunnerFactory.FACTORY_NAME, VIEW_NAME)
25-
var RunnerPanel panel
26-
27-
override getTitleName() {
28-
return UtplsqlResources.getString("RUNNER_VIEW_TITLE")
29-
}
30-
31-
override getGUI() {
32-
if (panel === null) {
33-
panel = new RunnerPanel
34-
}
35-
return panel.getGUI()
36-
}
37-
38-
override getTabIcon() {
39-
return UtplsqlResources.getIcon("UTPLSQL_ICON")
40-
}
41-
42-
def getRunnerPanel() {
43-
getGUI()
44-
return panel
45-
}
26+
@SuppressWarnings("all")
27+
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;
44+
}
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+
}
4657
}

0 commit comments

Comments
 (0)