Commit 749b4708 authored by Marco Descher's avatar Marco Descher 🏔

[16676] Try chromium for ui.eenv browser

parent c84bd4b1
Pipeline #11551 failed with stages
in 16 seconds
......@@ -6,7 +6,8 @@ Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: elexis.info
Require-Bundle: org.eclipse.ui;bundle-version="3.110.0",
org.eclipse.swt,
ch.elexis.core
ch.elexis.core,
org.eclipse.swt.chromium;bundle-version="0.10.2"
Automatic-Module-Name: ch.elexis.core.ui.eenv
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: javax.annotation,
......
......@@ -10,6 +10,15 @@
id="ch.elexis.core.ui.eenv.part.rocketchatpart"
name="Chat"
restorable="true">
</e4view>
<e4view
allowMultiple="false"
category="ch.elexis.core.ui.eenv.category"
class="ch.elexis.core.ui.eenv.part.RocketchatPartChromium"
icon="rsc/rocketchat.png"
id="ch.elexis.core.ui.eenv.part.rocketchatpartchromium"
name="Chat (Chromium)"
restorable="true">
</e4view>
<e4view
allowMultiple="true"
......
package ch.elexis.core.ui.eenv.part;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.di.Focus;
import org.eclipse.swt.SWT;
import org.eclipse.swt.chromium.Browser;
import org.eclipse.swt.widgets.Composite;
import ch.elexis.core.eenv.IElexisEnvironmentService;
public class RocketchatPartChromium {
@Inject @Optional
private IElexisEnvironmentService elexisEnvironmentService;
private Browser browser;
/**
* Create contents of the view part.
*/
@PostConstruct
public void createControls(Composite parent){
browser = new Browser(parent, SWT.NONE);
if (elexisEnvironmentService == null) {
browser.setText("Elexis-Environment nicht konfiguriert");
} else {
// browser.setCookie(value, url)
// login cookies?!
browser.setUrl(elexisEnvironmentService.getRocketchatBaseUrl());
}
}
@Focus
public void setFocus(){
// browser.setFocus();
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde?>
<!-- generated with https://github.com/eclipse-cbi/targetplatform-dsl -->
<target name="Elexis" sequenceNumber="1571218053">
<target name="Elexis" sequenceNumber="1571227545">
<locations>
<location includeMode="slicer" includeAllPlatforms="true" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
<unit id="org.eclipse.swt.chromium.feature.feature.group" version="0.10.2.201908130308"/>
<unit id="com.make.chromium.cef.feature.feature.group" version="0.4.0.201908130254"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="3.8.100.v20180827-1352"/>
<unit id="org.eclipse.rcp.feature.group" version="4.9.0.v20180906-1121"/>
<unit id="org.eclipse.platform.feature.group" version="4.9.0.v20180906-1121"/>
......
target "Elexis" with source allEnvironments
location "http://download.elexis.info/elexis/master/p2/target/" {
// TESTING ONLY
org.eclipse.swt.chromium.feature.feature.group
com.make.chromium.cef.feature.feature.group
// TESTING ONLY
org.eclipse.equinox.executable.feature.group
org.eclipse.rcp.feature.group
org.eclipse.platform.feature.group
......
......@@ -24,4 +24,71 @@
version="0.0.0"
unpack="false"/>
<plugin
id="com.make.chromium.cef.cocoa.macosx.x86_64"
os="macosx"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="com.make.chromium.cef.gtk.linux.x86_64"
os="linux"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="com.make.chromium.cef.win32.win32.x86_64"
os="win32"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="org.eclipse.swt.chromium"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.swt.chromium.cocoa.macosx.x86_64"
os="macosx"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="org.eclipse.swt.chromium.gtk.linux.x86_64"
os="linux"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
<plugin
id="org.eclipse.swt.chromium.win32.win32.x86_64"
os="win32"
arch="x86_64"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
</feature>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment