From 9587c5ddf0b78aa00883d5cac15ce23dd116df9e Mon Sep 17 00:00:00 2001 From: Eugene Tarassov Date: Fri, 11 Nov 2011 10:51:51 -0800 Subject: TCF Java package names changed: org.eclipse.tm.tcf.* -> org.eclipse.tcf.* --- .../.cproject | 209 ++++++++++++++++ .../.project | 81 ++++++ .../Makefile | 30 +++ .../about.html | 31 +++ .../edl-v10.html | 59 +++++ .../readme.txt | 17 ++ .../tcf/config.h | 44 ++++ .../tcf/daytime.c | 68 +++++ .../tcf/daytime.h | 28 +++ .../tcf/main/services-ext.h | 26 ++ .../org.eclipse.tcf.examples.daytime/.classpath | 7 + examples/org.eclipse.tcf.examples.daytime/.project | 28 +++ .../.settings/org.eclipse.jdt.core.prefs | 277 +++++++++++++++++++++ .../.settings/org.eclipse.jdt.ui.prefs | 4 + .../META-INF/MANIFEST.MF | 14 ++ .../org.eclipse.tcf.examples.daytime/about.html | 28 +++ .../build.properties | 6 + .../plugin.properties | 13 + .../org.eclipse.tcf.examples.daytime/plugin.xml | 9 + .../org.eclipse.tcf.examples.daytime/readme.txt | 16 ++ .../tcf/internal/examples/daytime/Activator.java | 60 +++++ .../examples/daytime/DaytimeServiceProxy.java | 75 ++++++ .../internal/examples/daytime/IDaytimeService.java | 53 ++++ .../.cproject | 209 ---------------- .../.project | 81 ------ .../Makefile | 30 --- .../about.html | 31 --- .../config.h | 44 ---- .../daytime.c | 68 ----- .../daytime.h | 28 --- .../edl-v10.html | 59 ----- .../main/services-ext.h | 26 -- .../readme.txt | 17 -- .../org.eclipse.tm.tcf.examples.daytime/.classpath | 7 - .../org.eclipse.tm.tcf.examples.daytime/.project | 28 --- .../.settings/org.eclipse.jdt.core.prefs | 277 --------------------- .../.settings/org.eclipse.jdt.ui.prefs | 4 - .../META-INF/MANIFEST.MF | 14 -- .../org.eclipse.tm.tcf.examples.daytime/about.html | 28 --- .../build.properties | 6 - .../plugin.properties | 13 - .../org.eclipse.tm.tcf.examples.daytime/plugin.xml | 9 - .../org.eclipse.tm.tcf.examples.daytime/readme.txt | 16 -- .../internal/tcf/examples/daytime/Activator.java | 60 ----- .../tcf/examples/daytime/DaytimeServiceProxy.java | 75 ------ .../tcf/examples/daytime/IDaytimeService.java | 53 ---- 46 files changed, 1183 insertions(+), 1183 deletions(-) create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/.cproject create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/.project create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/Makefile create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/about.html create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/edl-v10.html create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/readme.txt create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/tcf/config.h create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.c create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.h create mode 100644 examples/org.eclipse.tcf.examples.daytime.agent/tcf/main/services-ext.h create mode 100644 examples/org.eclipse.tcf.examples.daytime/.classpath create mode 100644 examples/org.eclipse.tcf.examples.daytime/.project create mode 100644 examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs create mode 100644 examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs create mode 100644 examples/org.eclipse.tcf.examples.daytime/META-INF/MANIFEST.MF create mode 100644 examples/org.eclipse.tcf.examples.daytime/about.html create mode 100644 examples/org.eclipse.tcf.examples.daytime/build.properties create mode 100644 examples/org.eclipse.tcf.examples.daytime/plugin.properties create mode 100644 examples/org.eclipse.tcf.examples.daytime/plugin.xml create mode 100644 examples/org.eclipse.tcf.examples.daytime/readme.txt create mode 100644 examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/Activator.java create mode 100644 examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/DaytimeServiceProxy.java create mode 100644 examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/IDaytimeService.java delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/.cproject delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/.project delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/about.html delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/edl-v10.html delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/main/services-ext.h delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/.classpath delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/.project delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/META-INF/MANIFEST.MF delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/about.html delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/build.properties delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/plugin.properties delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/plugin.xml delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/readme.txt delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java delete mode 100644 examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java (limited to 'examples') diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/.cproject b/examples/org.eclipse.tcf.examples.daytime.agent/.cproject new file mode 100644 index 000000000..48691de2e --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/.cproject @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/.project b/examples/org.eclipse.tcf.examples.daytime.agent/.project new file mode 100644 index 000000000..55552333c --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/.project @@ -0,0 +1,81 @@ + + + org.eclipse.tm.tcf.examples.daytime.agent + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + org.eclipse.cdt.make.core.buildArguments + + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.buildLocation + ${build_project} + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + true + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.core.cnature + + diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/Makefile b/examples/org.eclipse.tcf.examples.daytime.agent/Makefile new file mode 100644 index 000000000..76b098864 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/Makefile @@ -0,0 +1,30 @@ +TCF_AGENT_DIR=../../../org.eclipse.tcf.agent + +include $(TCF_AGENT_DIR)/Makefile.inc + +override CFLAGS += $(foreach dir,$(INCDIRS),-I$(dir)) $(OPTS) + +HFILES := $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.h)) $(HFILES) +CFILES := $(sort $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c)) $(CFILES)) + +EXECS = $(BINDIR)/agent$(EXTEXE) + +all: $(EXECS) + +$(BINDIR)/libtcf$(EXTLIB) : $(OFILES) + $(AR) -rc $@ $^ + $(RANLIB) + +$(BINDIR)/agent$(EXTEXE): $(BINDIR)/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB) + $(CC) $(CFLAGS) -o $@ $(BINDIR)/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB) $(LIBS) + +$(BINDIR)/%$(EXTOBJ): %.c $(HFILES) Makefile + @$(call MKDIR,$(dir $@)) + $(CC) $(CFLAGS) -c -o $@ $< + +$(BINDIR)/%$(EXTOBJ): $(TCF_AGENT_DIR)/%.c $(HFILES) Makefile + @$(call MKDIR,$(dir $@)) + $(CC) $(CFLAGS) -c -o $@ $< + +clean: + $(call RMDIR,$(BINDIR)) diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/about.html b/examples/org.eclipse.tcf.examples.daytime.agent/about.html new file mode 100644 index 000000000..26aa26557 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/about.html @@ -0,0 +1,31 @@ + + + + +About + + +

About This Content

+ +

July 28, 2008

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"), and the Eclipse Distribution License +Version 1.0 ("EDL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +A copy of the EDL is available +at http://www.eclipse.org/org/documents/edl-v10.php. +For purposes of the EPL and the EDL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL and EDL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + \ No newline at end of file diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/edl-v10.html b/examples/org.eclipse.tcf.examples.daytime.agent/edl-v10.html new file mode 100644 index 000000000..58cf7c3f7 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/edl-v10.html @@ -0,0 +1,59 @@ + + + + + + +Eclipse Distribution License - Version 1.0 + + + + + + +

Eclipse Distribution License - v 1.0

+ +

Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.

+ +

All rights reserved.

+

Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: +

+

+

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE.

+ + + + diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/readme.txt b/examples/org.eclipse.tcf.examples.daytime.agent/readme.txt new file mode 100644 index 000000000..b9c425abc --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/readme.txt @@ -0,0 +1,17 @@ +Readme for TCF Agent Daytime Example +------------------------------ + +The Agent Daytime Example shows how TCF agent can be customized and extended with user defined service. +The example provides code to build the agent with custom set of services, including user defined DayTime service. +The example is mainly meant for developer's educational use, +DayTime service does not meant to be of any other value. + +See "org.eclipse.tm.tcf.examples.daytime" for details on extending TCF Java binding for DayTime service. + +The example includes: +1. Makefile to build the customized agent. +2. Implementation of DayTime service: daytime.h daytime.c +3. Agent configuration header file: config.h + +CDT can be used to edit and build the example project. +Supported agent execution environments: CygWin, Linux. diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/tcf/config.h b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/config.h new file mode 100644 index 000000000..d2bb543a3 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/config.h @@ -0,0 +1,44 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * You may elect to redistribute this code under either of these licenses. + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +/* + * This file contains "define" statements that control agent configuration. + * SERVICE_* definitions control which service implementations are included into the agent. + * + * This is example agent configuration. It includes only few standard services, + * and one example service: Day Time. + */ + +#ifndef D_config +#define D_config + +#include + +#if defined(WIN32) || defined(__CYGWIN__) +# define TARGET_UNIX 0 +#elif defined(_WRS_KERNEL) +# define TARGET_UNIX 0 +#else +# define TARGET_UNIX 1 +#endif + +#define SERVICE_FileSystem 1 +#define SERVICE_SysMonitor TARGET_UNIX + +#define ENABLE_Trace 1 +#define ENABLE_Discovery 1 + + +#endif /* D_config */ diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.c b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.c new file mode 100644 index 000000000..745d081c2 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.c @@ -0,0 +1,68 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * You may elect to redistribute this code under either of these licenses. + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +/* + * Sample TCF service implementation. + */ + +#include +#include +#include +#include +#include +#include + +static const char * DAYTIME = "Daytime"; + +static void command_get_time_of_day(char * token, Channel * c) { + char str[0x100]; + char res[0x100]; + time_t t; + + // Read command argumnet: string TZ - time zone name + json_read_string(&c->inp, str, sizeof(str)); + // Each JSON encoded argument should end with zero byte + if (c->inp.read(&c->inp) != 0) exception(ERR_JSON_SYNTAX); + // Done reading arguments. + // The command message should end with MARKER_EOM (End Of Message) + if (c->inp.read(&c->inp) != MARKER_EOM) exception(ERR_JSON_SYNTAX); + + // Execute the command: retrieve current time as a string. + // Note: we ignore command argument for simplicity, + // a real command handler should do something better then that. + time(&t); + strcpy(res, ctime(&t)); + + // Start reply message with zero terminated string "R" + write_stringz(&c->out, "R"); + // Send back the command token + write_stringz(&c->out, token); + // Send error report, for now always "no error" + write_errno(&c->out, 0); + // Send reply data + json_write_string(&c->out, res); + // JSON encoded data should end with zero byte + c->out.write(&c->out, 0); + // Done sending reply data. + // The reply message should end with MARKER_EOM (End Of Message) + c->out.write(&c->out, MARKER_EOM); + // Done sending reply message. + // Command handling is complete. +} + +void ini_daytime_service(Protocol * proto) { + // Install command handler + add_command_handler(proto, DAYTIME, "getTimeOfDay", command_get_time_of_day); +} diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.h b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.h new file mode 100644 index 000000000..99e11cb2e --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/daytime.h @@ -0,0 +1,28 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * You may elect to redistribute this code under either of these licenses. + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +/* + * Sample TCF service header file. + */ + +#ifndef DAYTIME_H_ +#define DAYTIME_H_ + +#include +#include + +extern void ini_daytime_service(Protocol * proto); + +#endif /*DAYTIME_H_*/ diff --git a/examples/org.eclipse.tcf.examples.daytime.agent/tcf/main/services-ext.h b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/main/services-ext.h new file mode 100644 index 000000000..35d154256 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime.agent/tcf/main/services-ext.h @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and Eclipse Distribution License v1.0 which accompany this distribution. + * The Eclipse Public License is available at + * http://www.eclipse.org/legal/epl-v10.html + * and the Eclipse Distribution License is available at + * http://www.eclipse.org/org/documents/edl-v10.php. + * You may elect to redistribute this code under either of these licenses. + * + * Contributors: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +/* + * Services initialization code extension point. + * If the agent is built with additional user-defined services, + * a customized version of services-ext.h file can be added to compiler headers search paths. + */ + +#include "daytime.h" + +static void ini_ext_services(Protocol * proto, TCFBroadcastGroup * bcg) { + ini_daytime_service(proto); +} diff --git a/examples/org.eclipse.tcf.examples.daytime/.classpath b/examples/org.eclipse.tcf.examples.daytime/.classpath new file mode 100644 index 000000000..01a008e0d --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/examples/org.eclipse.tcf.examples.daytime/.project b/examples/org.eclipse.tcf.examples.daytime/.project new file mode 100644 index 000000000..0dbc2599c --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/.project @@ -0,0 +1,28 @@ + + + org.eclipse.tm.tcf.examples.daytime + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..4700ed795 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,277 @@ +#Mon Apr 07 10:00:39 PDT 2008 +eclipse.preferences.version=1 +org.eclipse.jdt.core.builder.cleanOutputFolder=clean +org.eclipse.jdt.core.builder.duplicateResourceTask=warning +org.eclipse.jdt.core.builder.invalidClasspath=abort +org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore +org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch,.svn/ +org.eclipse.jdt.core.circularClasspath=error +org.eclipse.jdt.core.classpath.exclusionPatterns=enabled +org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.5 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=0 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=1 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=false +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=true +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert +org.eclipse.jdt.core.formatter.comment.line_length=80 +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false +org.eclipse.jdt.core.formatter.indentation.size=8 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=true +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=80 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=4 +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.incompatibleJDKLevel=ignore +org.eclipse.jdt.core.incompleteClasspath=error diff --git a/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs b/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 000000000..2fe5d3ead --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,4 @@ +#Mon Apr 07 09:57:29 PDT 2008 +eclipse.preferences.version=1 +formatter_profile=_Java STD +formatter_settings_version=11 diff --git a/examples/org.eclipse.tcf.examples.daytime/META-INF/MANIFEST.MF b/examples/org.eclipse.tcf.examples.daytime/META-INF/MANIFEST.MF new file mode 100644 index 000000000..34e3ea31e --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/META-INF/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.tm.tcf.examples.daytime;singleton:=true +Bundle-Version: 0.5.0.qualifier +Bundle-Activator: org.eclipse.tm.internal.tcf.examples.daytime.Activator +Bundle-Vendor: %providerName +Require-Bundle: org.eclipse.core.runtime +Bundle-ActivationPolicy: lazy +Eclipse-LazyStart: true +Import-Package: org.eclipse.tm.tcf.core;version="0.5.0", + org.eclipse.tm.tcf.protocol;version="0.5.0" +Export-Package: org.eclipse.tm.internal.tcf.examples.daytime +Bundle-RequiredExecutionEnvironment: J2SE-1.5 diff --git a/examples/org.eclipse.tcf.examples.daytime/about.html b/examples/org.eclipse.tcf.examples.daytime/about.html new file mode 100644 index 000000000..6c5b3615b --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/about.html @@ -0,0 +1,28 @@ + + + + +About + + +

About This Content

+ +

January 10, 2008

+

License

+ +

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise +indicated below, the Content is provided to you under the terms and conditions of the +Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available +at http://www.eclipse.org/legal/epl-v10.html. +For purposes of the EPL, "Program" will mean the Content.

+ +

If you did not receive this Content directly from the Eclipse Foundation, the Content is +being redistributed by another party ("Redistributor") and different terms and conditions may +apply to your use of any object code in the Content. Check the Redistributor's license that was +provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise +indicated below, the terms and conditions of the EPL still apply to any source code in the Content +and such source code may be obtained at http://www.eclipse.org.

+ + + \ No newline at end of file diff --git a/examples/org.eclipse.tcf.examples.daytime/build.properties b/examples/org.eclipse.tcf.examples.daytime/build.properties new file mode 100644 index 000000000..786b1df93 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/build.properties @@ -0,0 +1,6 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + about.html diff --git a/examples/org.eclipse.tcf.examples.daytime/plugin.properties b/examples/org.eclipse.tcf.examples.daytime/plugin.properties new file mode 100644 index 000000000..c471eab8f --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/plugin.properties @@ -0,0 +1,13 @@ +############################################################################### +# Copyright (c) 2008 Wind River Systems, Inc. and others. +# 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: +# Wind River Systems - initial implementation +############################################################################### +pluginName = TCF Daytime service example (Incubation) +providerName = Eclipse CDT + diff --git a/examples/org.eclipse.tcf.examples.daytime/plugin.xml b/examples/org.eclipse.tcf.examples.daytime/plugin.xml new file mode 100644 index 000000000..bc6b5dc36 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/plugin.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/examples/org.eclipse.tcf.examples.daytime/readme.txt b/examples/org.eclipse.tcf.examples.daytime/readme.txt new file mode 100644 index 000000000..ef5ea285a --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/readme.txt @@ -0,0 +1,16 @@ +Readme for TCF Daytime Example +------------------------------ + +The Daytime Example shows how TCF/Java binding can be extended for a new, user defined service. +The example provides Java binding for DayTime service. +The example is mainly meant for developer's educational use, +DayTime service does not meant to be of any other value. + +See "org.eclipse.tm.tcf.examples.daytime.agent" for details on extending TCF agent +with DayTime service implementation. + +The example includes: +1. Definition of the service interface in Java: IDaytimeService.java +2. Implementation of IDaytimeService interface that translates + interface method calls to TCF messages: DaytimeServiceProxy.java +3. Registration of the service using "org.eclipse.tm.tcf.startup" extension point, see plugin.xml \ No newline at end of file diff --git a/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/Activator.java b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/Activator.java new file mode 100644 index 000000000..e8e753675 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/Activator.java @@ -0,0 +1,60 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * 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: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +package org.eclipse.tm.internal.tcf.examples.daytime; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.tm.tcf.examples.daytime"; + + // The shared instance + private static Activator plugin; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } +} diff --git a/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/DaytimeServiceProxy.java b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/DaytimeServiceProxy.java new file mode 100644 index 000000000..37e37d6d1 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/DaytimeServiceProxy.java @@ -0,0 +1,75 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * 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: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +package org.eclipse.tm.internal.tcf.examples.daytime; + +import org.eclipse.tm.tcf.core.Command; +import org.eclipse.tm.tcf.protocol.IChannel; +import org.eclipse.tm.tcf.protocol.IToken; +import org.eclipse.tm.tcf.protocol.Protocol; + + +public class DaytimeServiceProxy implements IDaytimeService { + + private final IChannel channel; + + DaytimeServiceProxy(IChannel channel) { + this.channel = channel; + } + + /** + * Return service name, as it appears on the wire - a TCF name of the service. + */ + public String getName() { + return NAME; + } + + /** + * The method translates arguments to JSON string and sends the command message + * to remote server. When response arrives, it is translated from JSON to + * Java object, which are used to call call-back object. + * + * The translation (marshaling) is done by using utility class Command. + */ + public IToken getTimeOfDay(String tz, final DoneGetTimeOfDay done) { + return new Command(channel, this, "getTimeOfDay", new Object[]{ tz }) { + @Override + public void done(Exception error, Object[] args) { + String str = null; + if (error == null) { + assert args.length == 2; + error = toError(args[0]); + str = (String)args[1]; + } + done.doneGetTimeOfDay(token, error, str); + } + }.token; + } + + static { + /* + * Make Daytime Service proxy available to all potential clients by creating + * the proxy object every time a TCF communication channel is opened. + * Note: extension point "org.eclipse.tm.tcf.startup" is used to load this class + * at TCF startup time, so proxy factory is properly activated even if nobody + * import directly from this plugin. + */ + Protocol.addChannelOpenListener(new Protocol.ChannelOpenListener() { + + public void onChannelOpen(IChannel channel) { + // Check if remote server provides Daytime service + if (channel.getRemoteService(IDaytimeService.NAME) == null) return; + // Create service proxy + channel.setServiceProxy(IDaytimeService.class, new DaytimeServiceProxy(channel)); + } + }); + } +} diff --git a/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/IDaytimeService.java b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/IDaytimeService.java new file mode 100644 index 000000000..ef08ff838 --- /dev/null +++ b/examples/org.eclipse.tcf.examples.daytime/src/org/eclipse/tcf/internal/examples/daytime/IDaytimeService.java @@ -0,0 +1,53 @@ +/******************************************************************************* + * Copyright (c) 2008 Wind River Systems, Inc. and others. + * 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: + * Wind River Systems - initial API and implementation + *******************************************************************************/ + +package org.eclipse.tm.internal.tcf.examples.daytime; + +import org.eclipse.tm.tcf.protocol.IService; +import org.eclipse.tm.tcf.protocol.IToken; + +/** + * IDaytimeService allows retrieving the time of day from a remote system. + */ +public interface IDaytimeService extends IService { + + /** + * This service name, as it appears on the wire - a TCF name of the service. + */ + public static final String NAME = "Daytime"; + + /** + * Retrieve the time of day from remote system. + * The method sends the command to remote server and returns - + * it does not wait for the server response. Instead a client should provide + * a call-back object that will be called when the server answers the command + * or when the command is aborted by communication error. + * @param tz - time zone name. + * @param done - a call-back object. + * @return a handle for the pending command. The handle can be used to cancel the command, + * and to match responses to requests - if same call-back object is used for + * multiple requests. + */ + IToken getTimeOfDay(String tz, DoneGetTimeOfDay done); + + /** + * Call-back interface for getTimeOfDay() command. + */ + interface DoneGetTimeOfDay { + /** + * This method is called when getTimeOfDay() command is completed. + * @param token - pending command handle. + * @param error - null if the command is successful. + * @param str - a String of the form "01 MAR 2006 11:25:12 CET" + */ + void doneGetTimeOfDay(IToken token, Exception error, String str); + } +} diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/.cproject b/examples/org.eclipse.tm.tcf.examples.daytime.agent/.cproject deleted file mode 100644 index 48691de2e..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/.cproject +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/.project b/examples/org.eclipse.tm.tcf.examples.daytime.agent/.project deleted file mode 100644 index 55552333c..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/.project +++ /dev/null @@ -1,81 +0,0 @@ - - - org.eclipse.tm.tcf.examples.daytime.agent - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - clean,full,incremental, - - - ?name? - - - - org.eclipse.cdt.make.core.append_environment - true - - - org.eclipse.cdt.make.core.autoBuildTarget - all - - - org.eclipse.cdt.make.core.buildArguments - - - - org.eclipse.cdt.make.core.buildCommand - make - - - org.eclipse.cdt.make.core.buildLocation - ${build_project} - - - org.eclipse.cdt.make.core.cleanBuildTarget - clean - - - org.eclipse.cdt.make.core.contents - org.eclipse.cdt.make.core.activeConfigSettings - - - org.eclipse.cdt.make.core.enableAutoBuild - false - - - org.eclipse.cdt.make.core.enableCleanBuild - true - - - org.eclipse.cdt.make.core.enableFullBuild - true - - - org.eclipse.cdt.make.core.fullBuildTarget - all - - - org.eclipse.cdt.make.core.stopOnError - true - - - org.eclipse.cdt.make.core.useDefaultBuildCmd - true - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.core.cnature - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile b/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile deleted file mode 100644 index 76b098864..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -TCF_AGENT_DIR=../../../org.eclipse.tcf.agent - -include $(TCF_AGENT_DIR)/Makefile.inc - -override CFLAGS += $(foreach dir,$(INCDIRS),-I$(dir)) $(OPTS) - -HFILES := $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.h)) $(HFILES) -CFILES := $(sort $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c)) $(CFILES)) - -EXECS = $(BINDIR)/agent$(EXTEXE) - -all: $(EXECS) - -$(BINDIR)/libtcf$(EXTLIB) : $(OFILES) - $(AR) -rc $@ $^ - $(RANLIB) - -$(BINDIR)/agent$(EXTEXE): $(BINDIR)/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB) - $(CC) $(CFLAGS) -o $@ $(BINDIR)/main/main$(EXTOBJ) $(BINDIR)/libtcf$(EXTLIB) $(LIBS) - -$(BINDIR)/%$(EXTOBJ): %.c $(HFILES) Makefile - @$(call MKDIR,$(dir $@)) - $(CC) $(CFLAGS) -c -o $@ $< - -$(BINDIR)/%$(EXTOBJ): $(TCF_AGENT_DIR)/%.c $(HFILES) Makefile - @$(call MKDIR,$(dir $@)) - $(CC) $(CFLAGS) -c -o $@ $< - -clean: - $(call RMDIR,$(BINDIR)) diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/about.html b/examples/org.eclipse.tm.tcf.examples.daytime.agent/about.html deleted file mode 100644 index 26aa26557..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/about.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - -About - - -

About This Content

- -

July 28, 2008

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"), and the Eclipse Distribution License -Version 1.0 ("EDL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -A copy of the EDL is available -at http://www.eclipse.org/org/documents/edl-v10.php. -For purposes of the EPL and the EDL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL and EDL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- - - \ No newline at end of file diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h b/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h deleted file mode 100644 index d2bb543a3..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/config.h +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * and the Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * You may elect to redistribute this code under either of these licenses. - * - * Contributors: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -/* - * This file contains "define" statements that control agent configuration. - * SERVICE_* definitions control which service implementations are included into the agent. - * - * This is example agent configuration. It includes only few standard services, - * and one example service: Day Time. - */ - -#ifndef D_config -#define D_config - -#include - -#if defined(WIN32) || defined(__CYGWIN__) -# define TARGET_UNIX 0 -#elif defined(_WRS_KERNEL) -# define TARGET_UNIX 0 -#else -# define TARGET_UNIX 1 -#endif - -#define SERVICE_FileSystem 1 -#define SERVICE_SysMonitor TARGET_UNIX - -#define ENABLE_Trace 1 -#define ENABLE_Discovery 1 - - -#endif /* D_config */ diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c deleted file mode 100644 index 745d081c2..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.c +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * and the Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * You may elect to redistribute this code under either of these licenses. - * - * Contributors: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -/* - * Sample TCF service implementation. - */ - -#include -#include -#include -#include -#include -#include - -static const char * DAYTIME = "Daytime"; - -static void command_get_time_of_day(char * token, Channel * c) { - char str[0x100]; - char res[0x100]; - time_t t; - - // Read command argumnet: string TZ - time zone name - json_read_string(&c->inp, str, sizeof(str)); - // Each JSON encoded argument should end with zero byte - if (c->inp.read(&c->inp) != 0) exception(ERR_JSON_SYNTAX); - // Done reading arguments. - // The command message should end with MARKER_EOM (End Of Message) - if (c->inp.read(&c->inp) != MARKER_EOM) exception(ERR_JSON_SYNTAX); - - // Execute the command: retrieve current time as a string. - // Note: we ignore command argument for simplicity, - // a real command handler should do something better then that. - time(&t); - strcpy(res, ctime(&t)); - - // Start reply message with zero terminated string "R" - write_stringz(&c->out, "R"); - // Send back the command token - write_stringz(&c->out, token); - // Send error report, for now always "no error" - write_errno(&c->out, 0); - // Send reply data - json_write_string(&c->out, res); - // JSON encoded data should end with zero byte - c->out.write(&c->out, 0); - // Done sending reply data. - // The reply message should end with MARKER_EOM (End Of Message) - c->out.write(&c->out, MARKER_EOM); - // Done sending reply message. - // Command handling is complete. -} - -void ini_daytime_service(Protocol * proto) { - // Install command handler - add_command_handler(proto, DAYTIME, "getTimeOfDay", command_get_time_of_day); -} diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h b/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h deleted file mode 100644 index 99e11cb2e..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/daytime.h +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * and the Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * You may elect to redistribute this code under either of these licenses. - * - * Contributors: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -/* - * Sample TCF service header file. - */ - -#ifndef DAYTIME_H_ -#define DAYTIME_H_ - -#include -#include - -extern void ini_daytime_service(Protocol * proto); - -#endif /*DAYTIME_H_*/ diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/edl-v10.html b/examples/org.eclipse.tm.tcf.examples.daytime.agent/edl-v10.html deleted file mode 100644 index 58cf7c3f7..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/edl-v10.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - -Eclipse Distribution License - Version 1.0 - - - - - - -

Eclipse Distribution License - v 1.0

- -

Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.

- -

All rights reserved.

-

Redistribution and use in source and binary forms, with or without modification, - are permitted provided that the following conditions are met: -

  • Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer.
  • -
  • Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution.
  • -
  • Neither the name of the Eclipse Foundation, Inc. nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission.
-

-

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE.

- - - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/main/services-ext.h b/examples/org.eclipse.tm.tcf.examples.daytime.agent/main/services-ext.h deleted file mode 100644 index 35d154256..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/main/services-ext.h +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Wind River Systems, Inc. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * and Eclipse Distribution License v1.0 which accompany this distribution. - * The Eclipse Public License is available at - * http://www.eclipse.org/legal/epl-v10.html - * and the Eclipse Distribution License is available at - * http://www.eclipse.org/org/documents/edl-v10.php. - * You may elect to redistribute this code under either of these licenses. - * - * Contributors: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -/* - * Services initialization code extension point. - * If the agent is built with additional user-defined services, - * a customized version of services-ext.h file can be added to compiler headers search paths. - */ - -#include "daytime.h" - -static void ini_ext_services(Protocol * proto, TCFBroadcastGroup * bcg) { - ini_daytime_service(proto); -} diff --git a/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt b/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt deleted file mode 100644 index b9c425abc..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime.agent/readme.txt +++ /dev/null @@ -1,17 +0,0 @@ -Readme for TCF Agent Daytime Example ------------------------------- - -The Agent Daytime Example shows how TCF agent can be customized and extended with user defined service. -The example provides code to build the agent with custom set of services, including user defined DayTime service. -The example is mainly meant for developer's educational use, -DayTime service does not meant to be of any other value. - -See "org.eclipse.tm.tcf.examples.daytime" for details on extending TCF Java binding for DayTime service. - -The example includes: -1. Makefile to build the customized agent. -2. Implementation of DayTime service: daytime.h daytime.c -3. Agent configuration header file: config.h - -CDT can be used to edit and build the example project. -Supported agent execution environments: CygWin, Linux. diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/.classpath b/examples/org.eclipse.tm.tcf.examples.daytime/.classpath deleted file mode 100644 index 01a008e0d..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/.project b/examples/org.eclipse.tm.tcf.examples.daytime/.project deleted file mode 100644 index 0dbc2599c..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - org.eclipse.tm.tcf.examples.daytime - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 4700ed795..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,277 +0,0 @@ -#Mon Apr 07 10:00:39 PDT 2008 -eclipse.preferences.version=1 -org.eclipse.jdt.core.builder.cleanOutputFolder=clean -org.eclipse.jdt.core.builder.duplicateResourceTask=warning -org.eclipse.jdt.core.builder.invalidClasspath=abort -org.eclipse.jdt.core.builder.recreateModifiedClassFileInOutputFolder=ignore -org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch,.svn/ -org.eclipse.jdt.core.circularClasspath=error -org.eclipse.jdt.core.classpath.exclusionPatterns=enabled -org.eclipse.jdt.core.classpath.multipleOutputLocations=enabled -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.maxProblemPerUnit=100 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 -org.eclipse.jdt.core.formatter.align_type_members_on_columns=false -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_assignment=0 -org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 -org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 -org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80 -org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 -org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 -org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 -org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 -org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 -org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_after_package=1 -org.eclipse.jdt.core.formatter.blank_lines_before_field=1 -org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 -org.eclipse.jdt.core.formatter.blank_lines_before_imports=1 -org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1 -org.eclipse.jdt.core.formatter.blank_lines_before_method=1 -org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 -org.eclipse.jdt.core.formatter.blank_lines_before_package=0 -org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 -org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1 -org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line -org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false -org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false -org.eclipse.jdt.core.formatter.comment.format_block_comments=true -org.eclipse.jdt.core.formatter.comment.format_header=false -org.eclipse.jdt.core.formatter.comment.format_html=true -org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true -org.eclipse.jdt.core.formatter.comment.format_line_comments=true -org.eclipse.jdt.core.formatter.comment.format_source_code=true -org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true -org.eclipse.jdt.core.formatter.comment.indent_root_tags=true -org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert -org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert -org.eclipse.jdt.core.formatter.comment.line_length=80 -org.eclipse.jdt.core.formatter.compact_else_if=true -org.eclipse.jdt.core.formatter.continuation_indentation=2 -org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 -org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true -org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true -org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_empty_lines=false -org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true -org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true -org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false -org.eclipse.jdt.core.formatter.indentation.size=8 -org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert -org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert -org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert -org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert -org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert -org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert -org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert -org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert -org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert -org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert -org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert -org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert -org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false -org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false -org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=true -org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false -org.eclipse.jdt.core.formatter.lineSplit=80 -org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false -org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false -org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 -org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 -org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true -org.eclipse.jdt.core.formatter.tabulation.char=space -org.eclipse.jdt.core.formatter.tabulation.size=4 -org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false -org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true -org.eclipse.jdt.core.incompatibleJDKLevel=ignore -org.eclipse.jdt.core.incompleteClasspath=error diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs b/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs deleted file mode 100644 index 2fe5d3ead..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/.settings/org.eclipse.jdt.ui.prefs +++ /dev/null @@ -1,4 +0,0 @@ -#Mon Apr 07 09:57:29 PDT 2008 -eclipse.preferences.version=1 -formatter_profile=_Java STD -formatter_settings_version=11 diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/META-INF/MANIFEST.MF b/examples/org.eclipse.tm.tcf.examples.daytime/META-INF/MANIFEST.MF deleted file mode 100644 index 34e3ea31e..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/META-INF/MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.tm.tcf.examples.daytime;singleton:=true -Bundle-Version: 0.5.0.qualifier -Bundle-Activator: org.eclipse.tm.internal.tcf.examples.daytime.Activator -Bundle-Vendor: %providerName -Require-Bundle: org.eclipse.core.runtime -Bundle-ActivationPolicy: lazy -Eclipse-LazyStart: true -Import-Package: org.eclipse.tm.tcf.core;version="0.5.0", - org.eclipse.tm.tcf.protocol;version="0.5.0" -Export-Package: org.eclipse.tm.internal.tcf.examples.daytime -Bundle-RequiredExecutionEnvironment: J2SE-1.5 diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/about.html b/examples/org.eclipse.tm.tcf.examples.daytime/about.html deleted file mode 100644 index 6c5b3615b..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/about.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - -About - - -

About This Content

- -

January 10, 2008

-

License

- -

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise -indicated below, the Content is provided to you under the terms and conditions of the -Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available -at http://www.eclipse.org/legal/epl-v10.html. -For purposes of the EPL, "Program" will mean the Content.

- -

If you did not receive this Content directly from the Eclipse Foundation, the Content is -being redistributed by another party ("Redistributor") and different terms and conditions may -apply to your use of any object code in the Content. Check the Redistributor's license that was -provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise -indicated below, the terms and conditions of the EPL still apply to any source code in the Content -and such source code may be obtained at http://www.eclipse.org.

- - - \ No newline at end of file diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/build.properties b/examples/org.eclipse.tm.tcf.examples.daytime/build.properties deleted file mode 100644 index 786b1df93..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/build.properties +++ /dev/null @@ -1,6 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml,\ - about.html diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/plugin.properties b/examples/org.eclipse.tm.tcf.examples.daytime/plugin.properties deleted file mode 100644 index c471eab8f..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/plugin.properties +++ /dev/null @@ -1,13 +0,0 @@ -############################################################################### -# Copyright (c) 2008 Wind River Systems, Inc. and others. -# 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: -# Wind River Systems - initial implementation -############################################################################### -pluginName = TCF Daytime service example (Incubation) -providerName = Eclipse CDT - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/plugin.xml b/examples/org.eclipse.tm.tcf.examples.daytime/plugin.xml deleted file mode 100644 index bc6b5dc36..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/plugin.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt b/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt deleted file mode 100644 index ef5ea285a..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/readme.txt +++ /dev/null @@ -1,16 +0,0 @@ -Readme for TCF Daytime Example ------------------------------- - -The Daytime Example shows how TCF/Java binding can be extended for a new, user defined service. -The example provides Java binding for DayTime service. -The example is mainly meant for developer's educational use, -DayTime service does not meant to be of any other value. - -See "org.eclipse.tm.tcf.examples.daytime.agent" for details on extending TCF agent -with DayTime service implementation. - -The example includes: -1. Definition of the service interface in Java: IDaytimeService.java -2. Implementation of IDaytimeService interface that translates - interface method calls to TCF messages: DaytimeServiceProxy.java -3. Registration of the service using "org.eclipse.tm.tcf.startup" extension point, see plugin.xml \ No newline at end of file diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java deleted file mode 100644 index e8e753675..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/Activator.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * 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: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -package org.eclipse.tm.internal.tcf.examples.daytime; - -import org.eclipse.core.runtime.Plugin; -import org.osgi.framework.BundleContext; - -/** - * The activator class controls the plug-in life cycle - */ -public class Activator extends Plugin { - - // The plug-in ID - public static final String PLUGIN_ID = "org.eclipse.tm.tcf.examples.daytime"; - - // The shared instance - private static Activator plugin; - - /** - * The constructor - */ - public Activator() { - } - - /* - * (non-Javadoc) - * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { - super.start(context); - plugin = this; - } - - /* - * (non-Javadoc) - * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext) - */ - public void stop(BundleContext context) throws Exception { - plugin = null; - super.stop(context); - } - - /** - * Returns the shared instance - * - * @return the shared instance - */ - public static Activator getDefault() { - return plugin; - } -} diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java deleted file mode 100644 index 37e37d6d1..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/DaytimeServiceProxy.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * 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: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -package org.eclipse.tm.internal.tcf.examples.daytime; - -import org.eclipse.tm.tcf.core.Command; -import org.eclipse.tm.tcf.protocol.IChannel; -import org.eclipse.tm.tcf.protocol.IToken; -import org.eclipse.tm.tcf.protocol.Protocol; - - -public class DaytimeServiceProxy implements IDaytimeService { - - private final IChannel channel; - - DaytimeServiceProxy(IChannel channel) { - this.channel = channel; - } - - /** - * Return service name, as it appears on the wire - a TCF name of the service. - */ - public String getName() { - return NAME; - } - - /** - * The method translates arguments to JSON string and sends the command message - * to remote server. When response arrives, it is translated from JSON to - * Java object, which are used to call call-back object. - * - * The translation (marshaling) is done by using utility class Command. - */ - public IToken getTimeOfDay(String tz, final DoneGetTimeOfDay done) { - return new Command(channel, this, "getTimeOfDay", new Object[]{ tz }) { - @Override - public void done(Exception error, Object[] args) { - String str = null; - if (error == null) { - assert args.length == 2; - error = toError(args[0]); - str = (String)args[1]; - } - done.doneGetTimeOfDay(token, error, str); - } - }.token; - } - - static { - /* - * Make Daytime Service proxy available to all potential clients by creating - * the proxy object every time a TCF communication channel is opened. - * Note: extension point "org.eclipse.tm.tcf.startup" is used to load this class - * at TCF startup time, so proxy factory is properly activated even if nobody - * import directly from this plugin. - */ - Protocol.addChannelOpenListener(new Protocol.ChannelOpenListener() { - - public void onChannelOpen(IChannel channel) { - // Check if remote server provides Daytime service - if (channel.getRemoteService(IDaytimeService.NAME) == null) return; - // Create service proxy - channel.setServiceProxy(IDaytimeService.class, new DaytimeServiceProxy(channel)); - } - }); - } -} diff --git a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java b/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java deleted file mode 100644 index ef08ff838..000000000 --- a/examples/org.eclipse.tm.tcf.examples.daytime/src/org/eclipse/tm/internal/tcf/examples/daytime/IDaytimeService.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Wind River Systems, Inc. and others. - * 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: - * Wind River Systems - initial API and implementation - *******************************************************************************/ - -package org.eclipse.tm.internal.tcf.examples.daytime; - -import org.eclipse.tm.tcf.protocol.IService; -import org.eclipse.tm.tcf.protocol.IToken; - -/** - * IDaytimeService allows retrieving the time of day from a remote system. - */ -public interface IDaytimeService extends IService { - - /** - * This service name, as it appears on the wire - a TCF name of the service. - */ - public static final String NAME = "Daytime"; - - /** - * Retrieve the time of day from remote system. - * The method sends the command to remote server and returns - - * it does not wait for the server response. Instead a client should provide - * a call-back object that will be called when the server answers the command - * or when the command is aborted by communication error. - * @param tz - time zone name. - * @param done - a call-back object. - * @return a handle for the pending command. The handle can be used to cancel the command, - * and to match responses to requests - if same call-back object is used for - * multiple requests. - */ - IToken getTimeOfDay(String tz, DoneGetTimeOfDay done); - - /** - * Call-back interface for getTimeOfDay() command. - */ - interface DoneGetTimeOfDay { - /** - * This method is called when getTimeOfDay() command is completed. - * @param token - pending command handle. - * @param error - null if the command is successful. - * @param str - a String of the form "01 MAR 2006 11:25:12 CET" - */ - void doneGetTimeOfDay(IToken token, Exception error, String str); - } -} -- cgit v1.2.3