Skip to content

Commit ce6ae6f

Browse files
paodbjavier-godoy
authored andcommitted
refactor(demo): update demo views to use commons demo annotations
1 parent 17221a8 commit ce6ae6f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@
2121

2222
package com.flowingcode.vaadin.addons.errorwindow;
2323

24+
import com.flowingcode.vaadin.addons.demo.DemoSource;
2425
import com.vaadin.flow.component.UI;
2526
import com.vaadin.flow.component.button.Button;
2627
import com.vaadin.flow.component.checkbox.Checkbox;
2728
import com.vaadin.flow.component.notification.Notification;
2829
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
30+
import com.vaadin.flow.router.PageTitle;
2931

32+
@PageTitle("Error Window Demo")
33+
@DemoSource
3034
@SuppressWarnings("serial")
3135
public class ErrorwindowDemo extends VerticalLayout {
3236

src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemoView.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@
3131
@GithubLink("https://github.com/FlowingCode/ErrorWindowAddon")
3232
public class ErrorwindowDemoView extends TabbedDemo {
3333

34-
private static final String ERROR_DEMO = "Error Window Demo";
35-
private static final String ERROR_SOURCE =
36-
"https://github.com/FlowingCode/ErrorWindowAddon/blob/master/src/test/java/com/flowingcode/vaadin/addons/errorwindow/ErrorwindowDemo.java";
37-
3834
public ErrorwindowDemoView() {
39-
addDemo(new ErrorwindowDemo(), ERROR_DEMO, ERROR_SOURCE);
35+
addDemo(new ErrorwindowDemo());
4036
setSizeFull();
4137
}
4238
}

0 commit comments

Comments
 (0)