Skip to content

Commit

Permalink
Add kernel-rcp packaging feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Drifftr committed Oct 6, 2018
1 parent 1ae9552 commit 7c21ee7
Show file tree
Hide file tree
Showing 129 changed files with 12,189 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Import-Package: org.eclipse.core.expressions,
org.eclipse.ui.forms.events,
org.eclipse.ui.forms.widgets,
org.eclipse.ui.ide,
org.eclipse.ui.intro.config,
org.eclipse.ui.navigator,
org.eclipse.ui.part,
org.wso2.developerstudio.eclipse.logging.core;version="[4.0.0,5.0.0)",
Expand All @@ -33,6 +34,7 @@ Export-Package: org.wso2.developerstudio.eclipse.platform.ui;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.startup;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.utils;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.validator;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.view;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.wizard;version="4.3.0",
org.wso2.developerstudio.eclipse.platform.ui.wizard.pages;version="4.3.0"
Bundle-Vendor: WSO2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.wso2.developerstudio.eclipse.platform.ui.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

public class DocumentationView extends ViewPart {

private Browser browser;
private String initialUrl = "https://docs.wso2.com/display/DVS400/WSO2+Developer+Studio+Kernel+Documentation";

public void createPartControl(Composite parent) {
browser = createBrowser(parent);
browser.setUrl(initialUrl);
}

private Browser createBrowser(Composite parent) {
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 1;
parent.setLayout(gridLayout);
browser = new Browser(parent, SWT.NONE);
GridData data = new GridData();
data.horizontalAlignment = GridData.FILL;
data.verticalAlignment = GridData.FILL;
data.horizontalSpan = 1;
data.grabExcessHorizontalSpace = true;
data.grabExcessVerticalSpace = true;
browser.setLayoutData(data);
return browser;
}

@Override
public void setFocus() {
}

}
10 changes: 3 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<module>features</module>
<module>repository</module>
<module>samples</module>
<!--module>rcp-product</module-->
</modules>
<scm>
<connection>scm:git:https://github.com/wso2/developer-studio.git</connection>
Expand All @@ -35,8 +36,8 @@
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tycho-version>0.23.0</tycho-version>
<tycho-extras.version>0.23.0</tycho-extras.version>
<tycho-version>1.1.0</tycho-version>
<tycho-extras.version>1.1.0</tycho-extras.version>
<version.mvn-resource-plugin>2.7</version.mvn-resource-plugin>
<version.sortpom.plugin>2.3.0</version.sortpom.plugin>
</properties>
Expand Down Expand Up @@ -185,11 +186,6 @@
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
Expand Down
17 changes: 17 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.feature/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.wso2.developerstudio.rcp.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin.includes = feature.xml
195 changes: 195 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.wso2.developerstudio.rcp.feature"
label="Feature"
version="4.3.0.qualifier"
provider-name="WSO2 Inc.">

<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>

<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>

<license url="http://www.example.com/license">
[Enter License Description here.]
</license>

<plugin
id="org.wso2.developerstudio.rcp.plugin"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.xsd"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.xsd.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.xml.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.xml.ui.infopop"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.server.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.server.discovery"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.common.modulecore.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.common.project.facet.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.common.emfworkbench.integration"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.wst.common.modulecore"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.profiles.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.refactoring"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.launching"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.model.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.editor"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.editor.xml"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.discovery"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.p2.discovery.compatibility"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.m2e.core.ui"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.equinox.p2.discovery"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.emf.edit"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.draw2d"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="com.google.guava"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.gef"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
14 changes: 14 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>wso2-developerstudio-rcp-product</artifactId>
<groupId>org.wso2.developerstudio</groupId>
<version>4.3.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>org.wso2.developerstudio.rcp.feature</artifactId>
<packaging>eclipse-feature</packaging>
<name>WSO2 Developer Studio RCP Feature</name>
</project>
7 changes: 7 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.plugin/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.plugin/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.wso2.developerstudio.rcp.plugin</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
11 changes: 11 additions & 0 deletions rcp-product/org.wso2.developerstudio.rcp.plugin/Application.e4xmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="ASCII"?>
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmi:id="_WrdeECZOEeaqLcpUsGLntw" elementId="org.wso2.developerstudio.eclipse.application">
<children xsi:type="basic:TrimmedWindow" xmi:id="_krki0CZOEeaqLcpUsGLntw" elementId="org.wso2.developerstudio.eclipse.trimmedwindow.testapplication" label="Test Application" x="0" y="0" width="100" height="100"/>
<addons xmi:id="_WrdeESZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
<addons xmi:id="_WrdeEiZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
<addons xmi:id="_WrdeEyZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
<addons xmi:id="_WrdeFCZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
<addons xmi:id="_WrdeFSZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
<addons xmi:id="_WrdeFiZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
<addons xmi:id="_WrdeFyZOEeaqLcpUsGLntw" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
</application:Application>

0 comments on commit 7c21ee7

Please sign in to comment.