Skip to content

Commit 2d62a71

Browse files
committed
Update ExampleJavaPlugin.java
1 parent 9912707 commit 2d62a71

File tree

1 file changed

+24
-43
lines changed

1 file changed

+24
-43
lines changed

src/ExampleJavaPlugin.java

+24-43
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,30 @@
66
public class ExampleJavaPlugin extends Plugin {
77
public ExampleJavaPlugin(final PluginContext context) {
88
super(context);
9-
addAccount(new IAccount() {
10-
@Override
11-
public String toString() {
12-
return "ExampleAccount";
13-
}
14-
15-
@Override
16-
public IImage getIcon() {
17-
return FlashLauncher.ICON_SETTINGS;
18-
}
19-
20-
@Override
21-
public void open(final IEditorContext context) {
22-
context.add(
23-
UI.panel().size(context.width(), 48).add(
24-
UI.button(LANG_REMOVE).size(context.width() - 16, 32).pos(8, 8).onAction((s, e) -> {
25-
removeAccount(this);
26-
context.close();
27-
})
28-
)
29-
);
30-
}
31-
32-
@Override
33-
public void preLaunch(final RunProc configuration) {
34-
35-
}
36-
37-
@Override
38-
public void launch(final RunProc configuration) {
39-
40-
}
41-
});
9+
for (int i = 0; i < 1; i++)
10+
addAccount(new IAccount() {
11+
@Override
12+
public String toString() {
13+
return "ExampleAccount";
14+
}
15+
16+
@Override
17+
public IImage getIcon() {
18+
return FlashLauncher.ICON_SETTINGS;
19+
}
20+
21+
@Override
22+
public void open(final IEditorContext context) {
23+
context.add(
24+
UI.panel().size(context.width(), 48).add(
25+
UI.button(LANG_REMOVE).size(context.width() - 16, 32).pos(8, 8).onAction((s, e) -> {
26+
removeAccount(this);
27+
context.close();
28+
})
29+
)
30+
);
31+
}
32+
});
4233
addProfile(new IProfile() {
4334
@Override
4435
public String toString() {
@@ -61,16 +52,6 @@ public void open(final IEditorContext context) {
6152
)
6253
);
6354
}
64-
65-
@Override
66-
public void preLaunch(final RunProc configuration) {
67-
68-
}
69-
70-
@Override
71-
public void launch(final RunProc configuration) {
72-
73-
}
7455
});
7556
}
7657
}

0 commit comments

Comments
 (0)