Author: rwesten
Date: Fri Oct 7 19:54:31 2011
New Revision: 1180190
URL: http://svn.apache.org/viewvc?rev=1180190&view=rev
Log:
2nd try to commit all the related files ...
* added web/webvie to the default build profile
* change the bundle artifactId (and also the paths within the bundle) to
"org.apache.commons.web.vie" because up to now it was within the folder
/commons/web/webvie but had the artifactId "org.apache.enhancer.webvie"
* add this module to the full launcher
Modified:
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource.java
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
Modified:
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java?rev=1180190&r1=1180189&r2=1180190&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java
(original)
+++
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/fragment/EnhancerVieWebFragment.java
Fri Oct 7 19:54:31 2011
@@ -1,4 +1,4 @@
-package org.apache.stanbol.enhancer.webvie.fragment;
+package org.apache.stanbol.commons.web.vie.fragment;
import java.util.ArrayList;
import java.util.Collections;
@@ -16,9 +16,9 @@ import org.apache.stanbol.commons.web.ba
import org.apache.stanbol.commons.web.base.NavigationLink;
import org.apache.stanbol.commons.web.base.ScriptResource;
import org.apache.stanbol.commons.web.base.WebFragment;
+import org.apache.stanbol.commons.web.vie.resource.EnhancerVieRootResource;
import org.apache.stanbol.enhancer.servicesapi.EnhancementJobManager;
import org.apache.stanbol.enhancer.servicesapi.Store;
-import org.apache.stanbol.enhancer.webvie.resource.EnhancerVieRootResource;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.ComponentContext;
@@ -35,9 +35,9 @@ public class EnhancerVieWebFragment impl
private static final String NAME = "enhancervie";
- private static final String STATIC_RESOURCE_PATH =
"/org/apache/stanbol/enhancer/webvie/static";
+ private static final String STATIC_RESOURCE_PATH =
"/org/apache/stanbol/commons/web/vie/static";
- private static final String TEMPLATE_PATH =
"/org/apache/stanbol/enhancer/webvie/templates";
+ private static final String TEMPLATE_PATH =
"/org/apache/stanbol/commons/web/vie/templates";
private BundleContext bundleContext;
Modified:
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource.java?rev=1180190&r1=1180189&r2=1180190&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource.java
(original)
+++
incubator/stanbol/trunk/commons/web/webvie/src/main/java/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource.java
Fri Oct 7 19:54:31 2011
@@ -1,4 +1,4 @@
-package org.apache.stanbol.enhancer.webvie.resource;
+package org.apache.stanbol.commons.web.vie.resource;
import static javax.ws.rs.core.MediaType.TEXT_HTML;
Modified:
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl?rev=1180190&r1=1180189&r2=1180190&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
(original)
+++
incubator/stanbol/trunk/commons/web/webvie/src/main/resources/org/apache/stanbol/commons/web/vie/templates/org/apache/stanbol/commons/web/vie/resource/EnhancerVieRootResource/index.ftl
Fri Oct 7 19:54:31 2011
@@ -92,9 +92,12 @@ a[typeof][about].concept {background-col
.button()
.hide()
.click(function(){
- $('#content').annotate('acceptAll', function(report){
+ $('#content')
+ .annotate('acceptAll', function(report){
console.log('AcceptAll finished with the report:', report);
});
+ $('.acceptAllButton')
+ .button('disable');
});
$('.enhanceButton')
@@ -115,6 +118,7 @@ a[typeof][about].concept {background-col
$('.acceptAllButton')
.show()
+ .button('enable')
} else {
$('.enhanceButton')
.button('enable')
@@ -139,14 +143,14 @@ a[typeof][about].concept {background-col
});
</script>
<button class="enhanceButton">Enhance!</button>
- <button class="acceptAllButton" style="display:none;">Accept
all</button>
+ <button class="acceptAllButton" style="display:none;">Accept all</button>
<article typeof="schema:CreativeWork"
about="http://stanbol.apache.org/enhancertest">
<div property="sioc:content" id="content">
Text here...
</div>
</article>
<button class="enhanceButton">Enhance!</button>
- <button class="acceptAllButton" style="display:none;">Accept
all</button>
+ <button class="acceptAllButton" style="display:none;">Accept all</button>
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>