commit | afce2ae599a87a710b46e385491f62c8eb8ab1ff | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Thu Oct 01 10:38:10 2015 -0700 |
committer | Simon Hunt <simon@onlab.us> | Thu Oct 01 10:38:10 2015 -0700 |
tree | 088417d926e4ecd75332902eee62611fc8d682fc | |
parent | 1ea57e14b4f9c77c62af13f0e38d314a737f9fcd [diff] [blame] |
GUI -- Minor refactor of sample UI components (archetypes). Change-Id: I80c8c699d9aff662bffd4c619f44e2079eddd1ce
diff --git a/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/java/AppUiComponent.java b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/java/AppUiComponent.java index 93003a1..e44b34d 100644 --- a/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/java/AppUiComponent.java +++ b/tools/package/archetypes/ui/src/main/resources/archetype-resources/src/main/java/AppUiComponent.java
@@ -39,6 +39,9 @@ @Component(immediate = true) public class AppUiComponent { + private static final String VIEW_ID = "sampleCustom"; + private static final String VIEW_TEXT = "Sample Custom"; + private final Logger log = LoggerFactory.getLogger(getClass()); @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) @@ -46,7 +49,7 @@ // List of application views private final List<UiView> uiViews = ImmutableList.of( - new UiView(UiView.Category.OTHER, "sampleCustom", "Sample Custom") + new UiView(UiView.Category.OTHER, VIEW_ID, VIEW_TEXT) ); // Factory for UI message handlers