Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bug421569
Browse files Browse the repository at this point in the history
Change-Id: I944b5302570995d64fd9ed8b78764b7f81385b64
  • Loading branch information
scottslewis committed Mar 27, 2014
2 parents 69a9eea + ea88e73 commit 20964f4
Show file tree
Hide file tree
Showing 426 changed files with 17,503 additions and 2,753 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.ecf.presence.bot.kosmos;singleton:=true
Bundle-Version: 1.0.100.qualifier
Bundle-Version: 1.0.200.qualifier
Bundle-Vendor: %pluginProvider
Bundle-Provider: %providerName
Bundle-Localization: plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public class ChatRoomMessageHandler implements IChatRoomMessageHandler {
+ NEWLINE
+ "# Markus Kuppe <mkuppe@versant.com> - bug 184036" //$NON-NLS-1$
+ NEWLINE
+" * Nick Boldt <codeslave@ca.ibm.com> - bug 206528, 209410" //$NON-NLS-1$
+ NEWLINE
+" * Dominik Goepel <dominik.goepel@gmx.de> - bug 216644" //$NON-NLS-1$
+ NEWLINE
+" * Nitin Dahyabhai <nitind@us.ibm.com> - bug 308908"
+ NEWLINE
+ "################################################################################"; //$NON-NLS-1$

private static final String BUG_DATABASE_PREFIX = "https://bugs.eclipse.org/bugs/show_bug.cgi?id="; //$NON-NLS-1$
Expand Down Expand Up @@ -213,11 +219,16 @@ public ChatRoomMessageHandler() {

try {
parseCommands();
writeCommandsToHTML();
} catch (Exception e) {
commands = new Properties();
}

try {
writeCommandsToHTML();
} catch (Exception e) {
e.printStackTrace();
}

try {
parseNewsgroup();
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# the Eclipse Public License v1.0 which accompanies this distribution, and is
#
# Contributors:
# EclipseSource - initial API and implementation
# Composent, Inc. - initial API and implementation
#################################################################################
pluginName=ECF OSGi R4.2 Compendium Distribution
pluginName=ECF RemoteServiceAdmin Topology Manager
pluginProvider=Eclipse.org - ECF
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public class Client3 extends XMPPChatClient {
private static final String DEFAULT_USERNAME = "eclipsecon@ecf.eclipse.org";

public Client3() {
super();
setMessageReceiver(new IMessageReceiver() {
super(new IMessageReceiver() {
public void handleMessage(final IChatMessage chatMessage) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.eclipse.ecf.presence.IPresence;
import org.eclipse.ecf.presence.IPresenceListener;
import org.eclipse.ecf.presence.im.IChatMessage;
import org.eclipse.ecf.presence.roster.IRosterEntry;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;

Expand All @@ -25,25 +24,17 @@ public class Client4 extends XMPPChatClient {
private static final String DEFAULT_USERNAME = "eclipsecon@ecf.eclipse.org";

public Client4() {
super();
setMessageReceiver(new IMessageReceiver() {
super(new IMessageReceiver() {
public void handleMessage(final IChatMessage chatMessage) {
Display.getDefault().asyncExec(new Runnable() {
public void run() {
MessageDialog.openInformation(null, "XMPP message from "
+ chatMessage.getFromID().getName(), chatMessage.getBody());
}
});
}});
setPresenceListener(new IPresenceListener(){
}},new IPresenceListener(){
public void handlePresence(ID fromID, IPresence presence) {
System.out.println("handlePresence("+fromID+","+presence+")");
}
public void handleRosterEntryAdd(IRosterEntry entry) {
System.out.println("handleRosterEntryAdd("+entry+")");
}
public void handleRosterEntryRemove(IRosterEntry entry) {
System.out.println("handleRosterEntryRemove("+entry+")");
}});
}
public void createAndConnect() throws ECFException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public boolean processEvent(Event event) {
if (event instanceof IContainerConnectedEvent) {
IContainerConnectedEvent ccevent = (IContainerConnectedEvent) event;
// Check to make sure it's a client...not the groupID
if (!ccevent.getTargetID().equals(getGroupID())) sendHelloMessage();
if (!ccevent.getTargetID().equals(getConnectedID())) sendHelloMessage();
}
return false;
}});
Expand Down
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.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin
28 changes: 28 additions & 0 deletions examples/bundles/com.mycorp.examples.timeservice.async/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.mycorp.examples.timeservice.async</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ECF RS Example Timeservice Async API
Bundle-SymbolicName: com.mycorp.examples.timeservice.async
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: Eclipse.org - ECF
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: com.mycorp.examples.timeservice;version="2.0.0"
Bundle-ActivationPolicy: lazy
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*******************************************************************************
* Copyright (c) 2014 Composent, Inc. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Scott Lewis - initial API and implementation
******************************************************************************/
package com.mycorp.examples.timeservice;

/**
* Example OSGi service for retrieving current time in milliseconds from January
* 1, 1970.
*
*/
public interface ITimeService {

/**
* Get current time.
*
* @return Long current time in milliseconds since Jan 1, 1970. Will not
* return <code>null</code>.
*/
public Long getCurrentTime();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*******************************************************************************
* Copyright (c) 2014 Composent, Inc. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Scott Lewis - initial API and implementation
******************************************************************************/
package com.mycorp.examples.timeservice;

import java.util.concurrent.CompletableFuture;

public interface ITimeServiceAsync {

/**
* Get current time using Java 8 {@link CompletableFuture}.
*
* @return CompletableFuture<Long> The future value time in milliseconds since Jan 1, 1970. Will not
* return <code>null</code>.
*/
public CompletableFuture<Long> getCurrentTimeAsync();

}
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.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>com.mycorp.examples.timeservice.consumer.ds.async</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>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
pluginProject.extensions=false
resolve.requirebundle=false
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Async
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.ds.async
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: MYCORP
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: com.mycorp.examples.timeservice;version="2.0.0"
Service-Component: OSGI-INF/timeservicecomponentasync.xml
Bundle-ActivationPolicy: lazy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" enabled="true" name="com.mycorp.examples.timeservice.consumer.ds.async">
<implementation class="com.mycorp.examples.timeservice.consumer.ds.async.TimeServiceComponentAsync"/>
<reference bind="bindTimeService" cardinality="1..n" interface="com.mycorp.examples.timeservice.ITimeServiceAsync" name="ITimeServiceAsync" policy="dynamic"/>
</scr:component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
OSGI-INF/timeservicecomponentasync.xml,\
OSGI-INF/
source.. = src/
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2014 Composent, Inc. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Scott Lewis - initial API and implementation
******************************************************************************/
package com.mycorp.examples.timeservice.consumer.ds.async;

import java.util.concurrent.CompletableFuture;

import com.mycorp.examples.timeservice.ITimeServiceAsync;

public class TimeServiceComponentAsync {

void bindTimeService(ITimeServiceAsync timeService) {
System.out.println("Discovered ITimeServiceAsync via DS");
// Get the CompletableFuture...no blocking here
CompletableFuture<Long> cf = timeService.getCurrentTimeAsync();
// print out time when done...no blocking anywhere!
cf.thenAccept((time) -> System.out.println("Remote time is: " + time));
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Timeservice Consumer Declarative Services Example
Bundle-Name: ECF RS Example Timeservice Consumer DS
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.ds
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: MyCorp, Inc.
Bundle-Vendor: Eclipse.org - ECF
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Service-Component: OSGI-INF/timeservicecomponent.xml
Import-Package: com.mycorp.examples.timeservice;version="1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ bin.includes = META-INF/,\
OSGI-INF/timeservicecomponent.xml,\
OSGI-INF/
source.. = src/
src.includes = launch/
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Declipse.ignoreApp=true &#13;&#10;-Dosgi.noShutdown=true&#13;&#10;-DverboseRemoteServiceAdmin=true"/>
<stringAttribute key="pde.version" value="3.3"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="target_bundles" value="javax.xml@default:default,org.apache.felix.gogo.command@default:default,org.apache.felix.gogo.runtime@default:default,org.apache.felix.gogo.shell@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:true,org.eclipse.ecf.discovery@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.ecf.osgi.services.distribution@default:default,org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy@default:default,org.eclipse.ecf.osgi.services.remoteserviceadmin@default:default,org.eclipse.ecf.provider.jmdns@default:default,org.eclipse.ecf.provider.remoteservice@default:default,org.eclipse.ecf.provider@default:default,org.eclipse.ecf.remoteservice@default:default,org.eclipse.ecf.sharedobject@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.console@default:default,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.util@default:default,org.eclipse.osgi.services.remoteserviceadmin@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true"/>
<stringAttribute key="target_bundles" value="com.mycorp.examples.timeservice.consumer.ds@default:default,com.mycorp.examples.timeservice@default:default,javax.xml@default:default,org.apache.felix.gogo.command@default:default,org.apache.felix.gogo.runtime@default:default,org.apache.felix.gogo.shell@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime@default:true,org.eclipse.ecf.discovery@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.ecf.osgi.services.distribution@default:default,org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy@default:default,org.eclipse.ecf.osgi.services.remoteserviceadmin@default:default,org.eclipse.ecf.provider.jmdns@default:default,org.eclipse.ecf.provider.remoteservice@default:default,org.eclipse.ecf.provider@default:default,org.eclipse.ecf.remoteservice@default:default,org.eclipse.ecf.sharedobject@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.console@default:default,org.eclipse.equinox.ds@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.util@default:default,org.eclipse.osgi.services.remoteserviceadmin@default:default,org.eclipse.osgi.services@default:default,org.eclipse.osgi@-1:true"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="false"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Timeservice Consuemr FileDiscovery Rest
Bundle-Name: ECF RS Example REST Timeservice Consumer FileDiscovery
Bundle-SymbolicName: com.mycorp.examples.timeservice.consumer.filediscovery.rest
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: MyCorp
Bundle-Version: 1.1.0.qualifier
Bundle-Vendor: Eclipse.org - ECF
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Remote-Service: timeservicerestendpointdescription.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
timeservicerestendpointdescription.xml
src.includes = launch/,\
timeservicerestendpointdescription.xml
Loading

0 comments on commit 20964f4

Please sign in to comment.