How to import paper ui?

433 views
Skip to first unread message

Joep Admiraal

unread,
Aug 2, 2015, 10:34:10 AM8/2/15
to openhab2
I have checked out paper ui from: https://github.com/openhab/smarthome.paperui
I imported that in a clean workspace in Eclipse which was installed with these instructions: https://github.com/openhab/openhab2/blob/master/docs/sources/development/ide.md

When I try to import the paper ui project as an existing maven project I get this error:
No marketplace entries found to handle /org.eclipse.smarthome.feature.runtime.paperui/pom.xml in Eclipse. 
Any ideas about what I am doing wrong?


Thanks,

Joep Admiraal


Kai Kreuzer

unread,
Aug 2, 2015, 10:37:52 AM8/2/15
to open...@googlegroups.com
Don’t import it as Maven project, simply import it as existing project.

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/b91a1b09-9228-43eb-89d3-2f328149d95d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joep Admiraal

unread,
Aug 2, 2015, 10:55:46 AM8/2/15
to openhab2
Thanks that works.
But how can I test this version of paper ui?
I imported the paperui project in a workspace that contains openbhab2, but when I change some things in the html or css of paper ui the changes do not seem to appear when running openhab2.

Op zondag 2 augustus 2015 16:37:52 UTC+2 schreef Kai Kreuzer:

Kai Kreuzer

unread,
Aug 3, 2015, 3:21:36 AM8/3/15
to open...@googlegroups.com
Did you adapt the launch configuration to use your local bundle instead of the one from the target platform?

Joep Admiraal

unread,
Aug 3, 2015, 3:56:55 AM8/3/15
to openhab2
I did not.
Now I disabled paperui in the plug-ins tab of the runtime configuration.
org.openhab.ui.paperui from my workspace is selected bus has auto-start set to false.
I cannot set it to true, probably due to this error I get when starting openhab or pressing the 'validate plug-ins' button:
Missing Constraint: Fragment-Host: org.eclipse.smarthome.ui.paperui; bundle-version="0.0.0"


Sorry for all the beginner questions :)



Op maandag 3 augustus 2015 09:21:36 UTC+2 schreef Kai Kreuzer:

Kai Kreuzer

unread,
Aug 7, 2015, 4:54:11 AM8/7/15
to open...@googlegroups.com
org.openhab.ui.paperui is only the theming fragment and fragments cannot be set to autostart=true, that’s normal.

What you are lacking is org.eclipse.smarthome.ui.paperui, which is the Paper UI project. I thought this is what you have imported in your workspace? Also make sure you have it selected in the launch config.

Regards,
Kai


Joep Admiraal

unread,
Aug 8, 2015, 3:05:06 AM8/8/15
to openhab2
Ok to be sure I did a reset of the paperui clone on my machine and created a new workspace.
I imported the paperui projects through "Existing Projects into Workspace"
It imported 4 projects.
I now have 2 run configs available.
When I start the SmartHome Runtime I now get a validation dialog with 2 problems.
Both stating: Missing Constraint: Require-Bundle: org.tukaani.xz; bundle-version="1.3.0"

When  I press ok I get a problem occurred dialog with:
Variable references non-existent resource : $ {workspace_loc_distribution/smarthome}

Any idea what this could be?

Thanks,
Joep

Op vrijdag 7 augustus 2015 10:54:11 UTC+2 schreef Kai Kreuzer:
Screen Shot 2015-08-08 at 08.51.09.png
Screen Shot 2015-08-08 at 08.51.23.png
Screen Shot 2015-08-08 at 09.04.13.png

Kai Kreuzer

unread,
Aug 8, 2015, 4:33:10 PM8/8/15
to open...@googlegroups.com
No idea, I have never heard of tukaani. Maybe you can compare what you do differently than I show in this screencast (with a different bundle of course): https://www.youtube.com/watch?v=xSi0-ZwDbTc&list=PLGlxCdrGUagyDLSdoOUAmwsf4RD7URP4u&index=4

Also note that you need to run bower in the Paper UI project in order to assemble all Javascript dependencies that are needed.

Regards
Kai


For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2015-08-08 at 08.51.09.png><Screen Shot 2015-08-08 at 08.51.23.png><Screen Shot 2015-08-08 at 09.04.13.png>

Joep Admiraal

unread,
Aug 9, 2015, 1:54:57 PM8/9/15
to openhab2
I got it working now.
Since I started a new workspace I did not have openhab in my workspace.
After starting again with the workspace that contains openhab and running bower install in the 

extensions/ui/org.eclipse.smarthome.ui.paperui directory I was able to run openhab with the paper ui project from the local repo.


Thanks for explaining everything.

Joep


Op zaterdag 8 augustus 2015 22:33:10 UTC+2 schreef Kai Kreuzer:
Reply all
Reply to author
Forward
0 new messages