* initial proposal for injectible target data provider Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * improved selection of first entity in grid Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * introduced constructor to explicitely set DataCommunicator for a Grid Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * made data communicator for target grid injectable Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * adapted size page request to load only one entity for getting total elements, fixed grid duplicates in case lastModified property is the same for targets and rollouts Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * DeleteSupport rethrows the exception to be intercepted by error handlers Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * minor grid refactoring Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * adapted docu for base data providers Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * added custom filter data provider, made filter effectively immutable by cloning before data refresh Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * grid returns size directly from data provider instead of data communicator Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * restructured data provider/communicator dependency injection, added injectable data supplier for target filter view grid Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * do not remove confirmation dialog window from UI explicitely Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io> * fixed sonar, added docs Signed-off-by: Bogdan Bondar <Bogdan.Bondar@bosch.io>
hawkBit User Interface
The hawkBit user interface is based on the Vaadin and Vaadin-Spring framework and allows to manage software updates and large scale roll-outs via a user interface.
Debugging client-side code
Debug using SuperDevMode
The SuperDevMode can be used to debug client side code without any browser plugin.
Using SuperDevMode with chrome :
- Add required maven dependencies
- Add vaadin-client-compiler dependency
- Add jetty dependencies (version : 8.1x)
- Set redirect property in the AppWidgetSet.gwt.xml module descriptor as follows
- < set-configuration-property name="devModeRedirectEnabled" value="true" />
- Create launch configuration for the SuperDevMode
- The main class to execute should be com.google.gwt.dev.codeserver.CodeServer.
- Add fully-qualified class name of widgetset (org.eclipse.hawkbit.ui.AppWidgetSet) as parameter
- Enable debug in chrome
- Chrome inspector window ▸ Click on settings icon ▸ Scripts ▸ Enable source maps option
- Run the SuperDevMode Code Server with the launch configuration created above
- Open http://localhost:8080/UI/?debug .Click on "SuperDev" button in debug console (Alternatively can directly add ?superdevmode parameter to URL)
- Widgetset is compiled and you can see the java code files loaded in 'Chrome inspector window ▸ Source tab'
Using SuperDevMode with Eclipse :
- Install the plugin from http://sdbg.github.io/p2
- Start the server and Super Dev Mode as mentioned above
- Create a new launch configuration in Eclipse
- Type is "Launch Chrome"
- http://localhost:8080/UI/?superdevmode
- Launch the new configuration in debug mode
- Now breakpoints in eclipse can be set