Commit 5489e926 authored by iSergio's avatar iSergio
Browse files

Remove vaadin experimental module.

parent 1c7234a9
Loading
Loading
Loading
Loading

cesiumjs4gwt-vaadin/pom.xml

deleted100644 → 0
+0 −169
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <artifactId>cesiumjs4gwt</artifactId>
        <groupId>org.cesiumjs</groupId>
        <version>1.59.4</version>
    </parent>

    <name>CesiumJS GWT usage under Vaadin framework example</name>
    <artifactId>cesiumjs4gwt-vaadin</artifactId>
    <packaging>war</packaging>

    <properties>
        <vaadin.version>8.8.5</vaadin.version>
        <vaadin.plugin.version>8.8.5</vaadin.plugin.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-server</artifactId>
            <version>${vaadin.version}</version>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-client</artifactId>
            <version>${vaadin.version}</version>
            <scope>provided</scope>
            <!-- Exclude Vaadin built gwt-user module (from different groupId) -->
            <exclusions>
                <exclusion>
                    <groupId>com.vaadin.external.gwt</groupId>
                    <artifactId>gwt-user</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin.external.gwt</groupId>
                    <artifactId>gwt-elemental</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- This contains sass linker needed by Vaadin Widgetsets during GWT compilation -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-client-compiler</artifactId>
            <version>${vaadin.version}</version>
            <scope>provided</scope>
            <!--Exclude Vaadin built gwt modules (from different groupId)-->
            <exclusions>
                <exclusion>
                    <groupId>com.vaadin.external.gwt</groupId>
                    <artifactId>gwt-dev</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>com.vaadin.external.gwt</groupId>
                    <artifactId>gwt-elemental</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-themes</artifactId>
            <version>${vaadin.version}</version>
        </dependency>

        <dependency>
            <groupId>org.cesiumjs</groupId>
            <artifactId>cesiumjs4gwt-main</artifactId>
            <version>${project.parent.version}</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
<!--        <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>-->

        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                    <!-- Exclude some unnecessary files generated by the GWT compiler. -->
                    <packagingExcludes>WEB-INF/classes/VAADIN/gwt-unitCache/**,
                        WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-maven-plugin</artifactId>
                <version>${vaadin.plugin.version}</version>
                <configuration>
                    <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
                    <webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
                    <draftCompile>false</draftCompile>
                    <compileReport>false</compileReport>
                    <style>OBF</style>
                    <strict>true</strict>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>update-theme</goal>
                            <goal>update-widgetset</goal>
                            <!-- Comment out compile goal as we'll use gwt-maven-plugin to do the compilation -->
                            <!--<goal>compile</goal>-->
                            <goal>compile-theme</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>${gwt.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
                    <draftCompile>false</draftCompile>
                    <compileReport>false</compileReport>
                    <style>OBF</style>
                    <strict>true</strict>
                </configuration>
                <dependencies>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
            </plugin>
<!--            <plugin>-->
<!--                <groupId>org.apache.maven.plugins</groupId>-->
<!--                <artifactId>maven-clean-plugin</artifactId>-->
<!--                <version>2.6.1</version>-->
<!--                &lt;!&ndash; Clean up also any pre-compiled themes &ndash;&gt;-->
<!--                <configuration>-->
<!--                    <filesets>-->
<!--                        <fileset>-->
<!--                            <directory>src/main/webapp/VAADIN/themes</directory>-->
<!--                            <includes>-->
<!--                                <include>**/styles.css</include>-->
<!--                                <include>**/styles.scss.cache</include>-->
<!--                            </includes>-->
<!--                        </fileset>-->
<!--                    </filesets>-->
<!--                </configuration>-->
<!--            </plugin>-->
        </plugins>
    </build>
</project>
 No newline at end of file
+0 −21
Original line number Diff line number Diff line
package org.cesiumjs.vaadin;

import com.vaadin.annotations.JavaScript;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

@Widgetset("org.cesiumjs.vaadin.ViewerPanelComponent")
@JavaScript({"app://VAADIN/widgetsets/org.cesiumjs.vaadin.ViewerPanelComponent/cs/Cesium/Cesium.js"})
public class CesiumPanelUI extends UI {
    @Override
    public void init(VaadinRequest request) {
        ViewerPanelComponent cesiumViewer = new ViewerPanelComponent();
        VerticalLayout layout = new VerticalLayout();
        setContent(layout);
        layout.addComponent(new Label("Hello, world!"));
        layout.addComponent(cesiumViewer);
    }
}
 No newline at end of file
+0 −10
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- When updating your version of GWT, you should also update this DTD reference,
	so that your app can take advantage of the latest GWT module capabilities. -->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.2//EN"
        "http://gwtproject.org/doctype/2.8.2/gwt-module.dtd">
<module>
    <!-- Inherit DefaultWidgetSet -->
    <inherits name="com.vaadin.DefaultWidgetSet" />
    <inherits name="org.cesiumjs.Cesium"/>
</module>
 No newline at end of file
+0 −12
Original line number Diff line number Diff line
package org.cesiumjs.vaadin;

import com.vaadin.ui.AbstractComponent;
import org.cesiumjs.vaadin.client.ViewerPanelComponentState;

public class ViewerPanelComponent extends AbstractComponent {

    @Override
    public ViewerPanelComponentState getState() {
        return (ViewerPanelComponentState) super.getState();
    }
}
+0 −24
Original line number Diff line number Diff line
package org.cesiumjs.vaadin.client;

import com.google.gwt.core.client.GWT;
import com.vaadin.client.ui.AbstractComponentConnector;
import com.vaadin.shared.ui.Connect;
import org.cesiumjs.vaadin.ViewerPanelComponent;

@Connect(ViewerPanelComponent.class)
public class ViewerPanelComponentConnector extends AbstractComponentConnector {
    @Override
    public ViewerPanelWidget getWidget() {
        return (ViewerPanelWidget) super.getWidget();
    }

    @Override
    protected ViewerPanelWidget createWidget() {
        return GWT.create(ViewerPanelWidget.class);
    }

    @Override
    public ViewerPanelComponentState getState() {
        return (ViewerPanelComponentState) super.getState();
    }
}
Loading