diff --git a/CVSROOT/checkoutlist b/CVSROOT/checkoutlist deleted file mode 100644 index b04b3501f5efd94313942eb7439457bc82f5a2f5..0000000000000000000000000000000000000000 --- a/CVSROOT/checkoutlist +++ /dev/null @@ -1,13 +0,0 @@ -# The "checkoutlist" file is used to support additional version controlled -# administrative files in $CVSROOT/CVSROOT, such as template files. -# -# The first entry on a line is a filename which will be checked out from -# the corresponding RCS file in the $CVSROOT/CVSROOT directory. -# The remainder of the line is an error message to use if the file cannot -# be checked out. -# -# File format: -# -# [] -# -# comment lines begin with '#' diff --git a/CVSROOT/commitinfo b/CVSROOT/commitinfo deleted file mode 100644 index b19e7b7a63e8e90cdb49c43f02035646c4a76e0a..0000000000000000000000000000000000000000 --- a/CVSROOT/commitinfo +++ /dev/null @@ -1,15 +0,0 @@ -# The "commitinfo" file is used to control pre-commit checks. -# The filter on the right is invoked with the repository and a list -# of files to check. A non-zero exit of the filter program will -# cause the commit to be aborted. -# -# The first entry on a line is a regular expression which is tested -# against the directory that the change is being committed to, relative -# to the $CVSROOT. For the first match that is found, then the remainder -# of the line is the name of the filter to run. -# -# If the repository name does not match any of the regular expressions in this -# file, the "DEFAULT" line is used, if it is specified. -# -# If the name "ALL" appears as a regular expression it is always used -# in addition to the first matching regex or "DEFAULT". diff --git a/CVSROOT/config b/CVSROOT/config deleted file mode 100644 index ff43ec005ab332bc2aa7e1378754180e75a4b049..0000000000000000000000000000000000000000 --- a/CVSROOT/config +++ /dev/null @@ -1,14 +0,0 @@ -# Set this to "no" if pserver shouldn't check system users/passwords -#SystemAuth=no - -# Put CVS lock files in this directory rather than directly in the repository. -#LockDir=/var/lock/cvs - -# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top -# level of the new working directory when using the `cvs checkout' -# command. -#TopLevelAdmin=no - -# Set `LogHistory' to `all' or `TOFEWGCMAR' to log all transactions to the -# history file, or a subset as needed (ie `TMAR' logs all write operations) -#LogHistory=TOFEWGCMAR diff --git a/CVSROOT/cvswrappers b/CVSROOT/cvswrappers deleted file mode 100644 index 0accaf1b1532448d633d8a183cd8e3a5dd3b4a75..0000000000000000000000000000000000000000 --- a/CVSROOT/cvswrappers +++ /dev/null @@ -1,23 +0,0 @@ -# This file affects handling of files based on their names. -# -# The -t/-f options allow one to treat directories of files -# as a single file, or to transform a file in other ways on -# its way in and out of CVS. -# -# The -m option specifies whether CVS attempts to merge files. -# -# The -k option specifies keyword expansion (e.g. -kb for binary). -# -# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers) -# -# wildcard [option value][option value]... -# -# where option is one of -# -f from cvs filter value: path to filter -# -t to cvs filter value: path to filter -# -m update methodology value: MERGE or COPY -# -k expansion mode value: b, o, kkv, &c -# -# and value is a single-quote delimited value. -# For example: -#*.gif -k 'b' diff --git a/CVSROOT/editinfo b/CVSROOT/editinfo deleted file mode 100644 index d78886c1522b6eae3470c13da218c3d8e197cf71..0000000000000000000000000000000000000000 --- a/CVSROOT/editinfo +++ /dev/null @@ -1,21 +0,0 @@ -# The "editinfo" file is used to allow verification of logging -# information. It works best when a template (as specified in the -# rcsinfo file) is provided for the logging procedure. Given a -# template with locations for, a bug-id number, a list of people who -# reviewed the code before it can be checked in, and an external -# process to catalog the differences that were code reviewed, the -# following test can be applied to the code: -# -# Making sure that the entered bug-id number is correct. -# Validating that the code that was reviewed is indeed the code being -# checked in (using the bug-id number or a seperate review -# number to identify this particular code set.). -# -# If any of the above test failed, then the commit would be aborted. -# -# Actions such as mailing a copy of the report to each reviewer are -# better handled by an entry in the loginfo file. -# -# One thing that should be noted is the the ALL keyword is not -# supported. There can be only one entry that matches a given -# repository. diff --git a/CVSROOT/loginfo b/CVSROOT/loginfo deleted file mode 100644 index 5a59f0a5440dbfb31dec7af3fbaced68fbf50a8f..0000000000000000000000000000000000000000 --- a/CVSROOT/loginfo +++ /dev/null @@ -1,26 +0,0 @@ -# The "loginfo" file controls where "cvs commit" log information -# is sent. The first entry on a line is a regular expression which must match -# the directory that the change is being made to, relative to the -# $CVSROOT. If a match is found, then the remainder of the line is a filter -# program that should expect log information on its standard input. -# -# If the repository name does not match any of the regular expressions in this -# file, the "DEFAULT" line is used, if it is specified. -# -# If the name ALL appears as a regular expression it is always used -# in addition to the first matching regex or DEFAULT. -# -# You may specify a format string as part of the -# filter. The string is composed of a `%' followed -# by a single format character, or followed by a set of format -# characters surrounded by `{' and `}' as separators. The format -# characters are: -# -# s = file name -# V = old version number (pre-checkin) -# v = new version number (post-checkin) -# -# For example: -#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog -# or -#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog diff --git a/CVSROOT/modules b/CVSROOT/modules deleted file mode 100644 index cb9e9efc94b342879a5fff24b425473fc11edd01..0000000000000000000000000000000000000000 --- a/CVSROOT/modules +++ /dev/null @@ -1,26 +0,0 @@ -# Three different line formats are valid: -# key -a aliases... -# key [options] directory -# key [options] directory files... -# -# Where "options" are composed of: -# -i prog Run "prog" on "cvs commit" from top-level of module. -# -o prog Run "prog" on "cvs checkout" of module. -# -e prog Run "prog" on "cvs export" of module. -# -t prog Run "prog" on "cvs rtag" of module. -# -u prog Run "prog" on "cvs update" of module. -# -d dir Place module in directory "dir" instead of module name. -# -l Top-level directory only -- do not recurse. -# -# NOTE: If you change any of the "Run" options above, you'll have to -# release and re-checkout any working directories of these modules. -# -# And "directory" is a path to a directory relative to $CVSROOT. -# -# The "-a" option specifies an alias. An alias is interpreted as if -# everything on the right of the "-a" had been typed on the command line. -# -# You can encode a module within a module by using the special '&' -# character to interpose another module into the current module. This -# can be useful for creating a module that consists of many directories -# spread out over the entire source repository. diff --git a/CVSROOT/notify b/CVSROOT/notify deleted file mode 100644 index 34f0bc288808e56e499d0852a9bfc9a3214b02d9..0000000000000000000000000000000000000000 --- a/CVSROOT/notify +++ /dev/null @@ -1,12 +0,0 @@ -# The "notify" file controls where notifications from watches set by -# "cvs watch add" or "cvs edit" are sent. The first entry on a line is -# a regular expression which is tested against the directory that the -# change is being made to, relative to the $CVSROOT. If it matches, -# then the remainder of the line is a filter program that should contain -# one occurrence of %s for the user to notify, and information on its -# standard input. -# -# "ALL" or "DEFAULT" can be used in place of the regular expression. -# -# For example: -#ALL mail %s -s "CVS notification" diff --git a/CVSROOT/rcsinfo b/CVSROOT/rcsinfo deleted file mode 100644 index 49e59f4d0df9b432c5b99c0b806378a77c9cd870..0000000000000000000000000000000000000000 --- a/CVSROOT/rcsinfo +++ /dev/null @@ -1,13 +0,0 @@ -# The "rcsinfo" file is used to control templates with which the editor -# is invoked on commit and import. -# -# The first entry on a line is a regular expression which is tested -# against the directory that the change is being made to, relative to the -# $CVSROOT. For the first match that is found, then the remainder of the -# line is the name of the file that contains the template. -# -# If the repository name does not match any of the regular expressions in this -# file, the "DEFAULT" line is used, if it is specified. -# -# If the name "ALL" appears as a regular expression it is always used -# in addition to the first matching regex or "DEFAULT". diff --git a/CVSROOT/taginfo b/CVSROOT/taginfo deleted file mode 100644 index 274a46dd5b61069f1cea62395178b09aa3120248..0000000000000000000000000000000000000000 --- a/CVSROOT/taginfo +++ /dev/null @@ -1,20 +0,0 @@ -# The "taginfo" file is used to control pre-tag checks. -# The filter on the right is invoked with the following arguments: -# -# $1 -- tagname -# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d -# $3 -- repository -# $4-> file revision [file revision ...] -# -# A non-zero exit of the filter program will cause the tag to be aborted. -# -# The first entry on a line is a regular expression which is tested -# against the directory that the change is being committed to, relative -# to the $CVSROOT. For the first match that is found, then the remainder -# of the line is the name of the filter to run. -# -# If the repository name does not match any of the regular expressions in this -# file, the "DEFAULT" line is used, if it is specified. -# -# If the name "ALL" appears as a regular expression it is always used -# in addition to the first matching regex or "DEFAULT". diff --git a/CVSROOT/verifymsg b/CVSROOT/verifymsg deleted file mode 100644 index 86f747ce222390e6aa7a488074e372030d57a479..0000000000000000000000000000000000000000 --- a/CVSROOT/verifymsg +++ /dev/null @@ -1,21 +0,0 @@ -# The "verifymsg" file is used to allow verification of logging -# information. It works best when a template (as specified in the -# rcsinfo file) is provided for the logging procedure. Given a -# template with locations for, a bug-id number, a list of people who -# reviewed the code before it can be checked in, and an external -# process to catalog the differences that were code reviewed, the -# following test can be applied to the code: -# -# Making sure that the entered bug-id number is correct. -# Validating that the code that was reviewed is indeed the code being -# checked in (using the bug-id number or a seperate review -# number to identify this particular code set.). -# -# If any of the above test failed, then the commit would be aborted. -# -# Actions such as mailing a copy of the report to each reviewer are -# better handled by an entry in the loginfo file. -# -# One thing that should be noted is the the ALL keyword is not -# supported. There can be only one entry that matches a given -# repository. diff --git a/examples/build.properties b/examples/build.properties deleted file mode 100644 index e061432dfe83fa57b74c71ff1c2d43a4a75765c8..0000000000000000000000000000000000000000 --- a/examples/build.properties +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################### -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -############################################################################### - -# Some information about the product - -product.name fractalexamples -product.version 2.0 - -# Wich compiler do you want to use ? - -# build.compiler jikes diff --git a/examples/build.xml b/examples/build.xml deleted file mode 100644 index 9eb21b87cc41d4eea93b94702bcfbd4db0997077..0000000000000000000000000000000000000000 --- a/examples/build.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/comanche/build.xml b/examples/comanche/build.xml deleted file mode 100644 index ff1b9346d9e9dda67d735361c1cb075176ced391..0000000000000000000000000000000000000000 --- a/examples/comanche/build.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/comanche/etc/build.properties b/examples/comanche/etc/build.properties deleted file mode 100644 index 4d8c9c6862d5e97c967a59e916eaea8b81bc6e4b..0000000000000000000000000000000000000000 --- a/examples/comanche/etc/build.properties +++ /dev/null @@ -1,23 +0,0 @@ -# Wich compiler do you want use ? - -build.compiler jikes - -# Class path for the ASM library (ASM_1_4_2) -# See http://asm.objectweb.org - -asm.path lib/asm.jar - -# Class path for the Fractal API (FRACTAL_API_2_0) -# See http://fractal.objectweb.org - -fractal.path lib/fractal.jar - -# Class path of Julia (JULIA_2_0) -# See http://fractal.objectweb.org - -julia.path lib/julia-asm.jar:lib/julia-mixins.jar:lib/julia-runtime.jar - -# Class path for the FractalADL parser (FRACTAL_ADL_2_0) -# See http://fractal.objectweb.org - -fractaladl.path lib/fractal-adl.jar:lib/ow_deployment_scheduling.jar:lib/dtdparser.jar diff --git a/examples/comanche/etc/execute.properties b/examples/comanche/etc/execute.properties deleted file mode 100644 index bbbef46bd48ac6527eae8a247a537a5479148333..0000000000000000000000000000000000000000 --- a/examples/comanche/etc/execute.properties +++ /dev/null @@ -1,16 +0,0 @@ -# JVM arguments -# add "-Djulia.loader.gen.log=err" to log the generated classes -# add "-Djulia.loader.gen.dir=/tmp" to store the generated classes on disk - -run.jvm.parameters \ - -Dfractal.provider=org.objectweb.fractal.julia.Julia \ - -Djulia.loader=org.objectweb.fractal.julia.loader.DynamicLoader \ - -Djulia.config=etc/julia.cfg - -# Java class to be launched - -run.classname org.objectweb.fractal.adl.Launcher - -# Application arguments - -run.parameters -fractal comanche.Comanche r diff --git a/examples/comanche/etc/julia.cfg b/examples/comanche/etc/julia.cfg deleted file mode 100644 index 8c35125c35c6ea2c2e8f3f007fbdf08dc8850a92..0000000000000000000000000000000000000000 --- a/examples/comanche/etc/julia.cfg +++ /dev/null @@ -1,614 +0,0 @@ -############################################################################### -# STANDARD JULIA CONFIGURATION FILE - DO NOT EDIT -# -# PUT NEW OR OVERRIDEN DEFINITIONS AT THE END OF THE FILE, OR IN OTHER FILES -############################################################################### - -# ----------------------------------------------------------------------------- -# INTERFACE CLASS GENERATORS -# ----------------------------------------------------------------------------- - -# default class generator, generates sub classes of BasicComponentInterface - -(interface-class-generator - (org.objectweb.fractal.julia.asm.InterfaceClassGenerator - org.objectweb.fractal.julia.BasicComponentInterface - ) -) - -# ----------------------------------------------------------------------------- -# CONTROLLER INTERFACES -# -# each definition must be of the form (interface-name interface-signature) -# ----------------------------------------------------------------------------- - -# Component interface - -(component-itf - (component org.objectweb.fractal.api.Component) -) - -# TypeFactory interface - -(type-factory-itf - (type-factory org.objectweb.fractal.api.type.TypeFactory) -) - -# GenericFactory interface - -(generic-factory-itf - (generic-factory org.objectweb.fractal.api.factory.GenericFactory) -) - -# Factory interface - -(factory-itf - # choose one of the following definitions: - # the first one provides only the Fractal Factory interface - # the second one provides a Julia extension of the Factory interface - # (factory org.objectweb.fractal.api.factory.Factory) - (factory org.objectweb.fractal.julia.factory.Template) -) - -(julia-factory-itf - (/template org.objectweb.fractal.julia.factory.Template) -) - -# AttributeController interface - -(attribute-controller-itf - (attribute org.objectweb.fractal.api.control.AttributeController) -) - -(julia-attribute-controller-itf - (/cloneable-attribute-controller org.objectweb.fractal.julia.control.attribute.CloneableAttributeController) -) - -# BindingController interface - -(binding-controller-itf - (binding-controller org.objectweb.fractal.api.control.BindingController) -) - -# ContentController interface - -(content-controller-itf - (content-controller org.objectweb.fractal.api.control.ContentController) -) - -# SuperController interface - -(super-controller-itf - # choose one of the following definitions: - # the first one provides only the Fractal SuperController interface - # the second one provides a Julia extension of the SuperController interface - # (super-controller org.objectweb.fractal.api.control.SuperController) - (super-controller org.objectweb.fractal.julia.control.content.SuperControllerNotifier) -) - -(julia-super-controller-itf - (/super-controller-notifier org.objectweb.fractal.julia.control.content.SuperControllerNotifier) -) - -# LifeCycleController interface - -(lifecycle-controller-itf - # choose one of the following definitions: - # the first one provides only the Fractal LifeCycleController interface - # the second one provides a Julia extension of the LifeCycleController interface - # (lifecycle-controller org.objectweb.fractal.api.control.LifeCycleController) - (lifecycle-controller org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) -) - -(julia-lifecycle-controller-itf - (/lifecycle-coordinator org.objectweb.fractal.julia.control.lifecycle.LifeCycleCoordinator) -) - -# NameController interface - -(name-controller-itf - (name-controller org.objectweb.fractal.api.control.NameController) -) - -# ----------------------------------------------------------------------------- -# CONTROLLER OBJECTS -# -# each definition must be an object descriptor -# ----------------------------------------------------------------------------- - -# Component implementation - -(component-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - ComponentImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.BasicComponentMixin - # to check type related constraints, and for collection interfaces support: - org.objectweb.fractal.julia.TypeComponentMixin - )) -) - -# TypeFactory implementation - -(type-factory-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - TypeFactoryImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.type.BasicTypeFactoryMixin - # to check the component interface signatures with the Java Reflection API: - org.objectweb.fractal.julia.type.CheckTypeFactoryMixin - )) -) - -# GenericFactory implementation - -(generic-factory-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - GenericFactoryImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.loader.UseLoaderMixin - org.objectweb.fractal.julia.type.UseTypeFactoryMixin - org.objectweb.fractal.julia.factory.BasicGenericFactoryMixin - # to check the component content descriptor with the Java Reflection API: - org.objectweb.fractal.julia.factory.CheckGenericFactoryMixin - )) -) - -# Factory implementation (for template components) - -(factory-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - FactoryImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.factory.BasicTemplateMixin - # to copy the template's attributes to the components it creates: - org.objectweb.fractal.julia.control.attribute.UseCloneableAttributeControllerMixin - org.objectweb.fractal.julia.factory.AttributeTemplateMixin - # to copy the template's name to the components it creates: - org.objectweb.fractal.julia.control.name.UseNameControllerMixin - org.objectweb.fractal.julia.factory.NameTemplateMixin - )) -) - -# Factory implementation (for singleton template components) - -(singleton-factory-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - SingletonFactoryImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.factory.BasicTemplateMixin - # to copy the template's attributes to the components it creates: - org.objectweb.fractal.julia.control.attribute.UseCloneableAttributeControllerMixin - org.objectweb.fractal.julia.factory.AttributeTemplateMixin - # to copy the template's name to the components it creates: - org.objectweb.fractal.julia.control.name.UseNameControllerMixin - org.objectweb.fractal.julia.factory.NameTemplateMixin - # to provide the singleton semantics to the template: - org.objectweb.fractal.julia.factory.SingletonTemplateMixin - )) -) - -# BindingController implementation (for primitive components without content) - -(primitive-binding-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - PrimitiveBindingControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.control.binding.BasicBindingControllerMixin - # to initialize the BasicBindingControllerMixin from the component's type: - org.objectweb.fractal.julia.control.binding.TypeBasicBindingMixin - # to check some basic pre conditions (interface not already bound, ...) - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.binding.CheckBindingMixin - # to check type related constraints for bindings: - org.objectweb.fractal.julia.control.binding.TypeBindingMixin - # to check content related constraints for bindings: - org.objectweb.fractal.julia.control.content.UseSuperControllerMixin - org.objectweb.fractal.julia.control.binding.ContentBindingMixin - # to check lifecycle related constraints for bindings: - org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin - org.objectweb.fractal.julia.control.binding.LifeCycleBindingMixin - )) -) - -# BindingController implementation (for primitive components with content) - -(container-binding-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - ContainerBindingControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.control.binding.ContainerBindingControllerMixin - # to skip Interface objects before delegating to the encapsulated component: - # org.objectweb.fractal.julia.control.binding.OptimizedContainerBindingMixin - # to manage output interceptors: - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.binding.InterceptorBindingMixin - # to check some basic pre conditions (interface not already bound, ...) - org.objectweb.fractal.julia.control.binding.CheckBindingMixin - # to check type related constraints for bindings: - org.objectweb.fractal.julia.control.binding.TypeBindingMixin - # to check content related constraints for bindings: - org.objectweb.fractal.julia.control.content.UseSuperControllerMixin - org.objectweb.fractal.julia.control.binding.ContentBindingMixin - # to check lifecycle related constraints for bindings: - org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin - org.objectweb.fractal.julia.control.binding.LifeCycleBindingMixin - )) -) - -# BindingController implementation (for composite components) - -(composite-binding-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - CompositeBindingControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.control.binding.BasicBindingControllerMixin - # to initialize the BasicBindingControllerMixin from the component's type: - org.objectweb.fractal.julia.control.binding.TypeBasicBindingMixin - # to check some basic pre conditions (interface not already bound, ...) - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.binding.CheckBindingMixin - # to check type related constraints for bindings: - org.objectweb.fractal.julia.control.binding.TypeBindingMixin - # to check content related constraints for bindings: - org.objectweb.fractal.julia.control.content.UseSuperControllerMixin - org.objectweb.fractal.julia.control.binding.ContentBindingMixin - # to check lifecycle related constraints for bindings: - org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin - org.objectweb.fractal.julia.control.binding.LifeCycleBindingMixin - # to manage the getFcItfImpl links of the Interface objects: - # choose one of ComponentBindingMixin and OptimizedCompositeBindingMixin - # (the last one creates and updates shortcuts links when possible) - org.objectweb.fractal.julia.control.content.UseContentControllerMixin - # org.objectweb.fractal.julia.control.binding.CompositeBindingMixin - org.objectweb.fractal.julia.control.binding.OptimizedCompositeBindingMixin - )) -) - -# ContentController implementation - -(content-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - ContentControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.content.BasicContentControllerMixin - # to check some basic pre conditions, and to prevent hierarchy cycles: - org.objectweb.fractal.julia.control.content.CheckContentMixin - # to check type related constraints in getFcInternalInterface: - org.objectweb.fractal.julia.control.content.TypeContentMixin - # to check binding locality related constraints in removeFcSubComponent: - org.objectweb.fractal.julia.control.content.BindingContentMixin - # to check lifecycle related constraints: - org.objectweb.fractal.julia.control.lifecycle.UseLifeCycleControllerMixin - org.objectweb.fractal.julia.control.content.LifeCycleContentMixin - # to notify sub components when they are added or removed from this component: - org.objectweb.fractal.julia.control.content.SuperContentMixin - )) -) - -# SuperController implementation - -(super-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - SuperControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.control.content.BasicSuperControllerMixin - )) -) - -# LifeCycleController implementation (for primitive or composite components) - -(lifecycle-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - LifeCycleControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleCoordinatorMixin - org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleControllerMixin - # to check that mandatory client interfaces are bound in startFc: - org.objectweb.fractal.julia.control.lifecycle.TypeLifeCycleMixin - # to notify the encapsulated component (if present) when its state changes: - org.objectweb.fractal.julia.control.lifecycle.ContainerLifeCycleMixin - )) -) - -# LifeCycleController implementation (for composite components only) - -(composite-lifecycle-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - CompositeLifeCycleControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.UseComponentMixin - org.objectweb.fractal.julia.control.lifecycle.BasicLifeCycleCoordinatorMixin - org.objectweb.fractal.julia.control.lifecycle.OptimizedLifeCycleControllerMixin - # to check that mandatory client interfaces are bound in startFc: - org.objectweb.fractal.julia.control.lifecycle.TypeLifeCycleMixin - )) -) - -# NameController implementation - -(name-controller-impl - ((org.objectweb.fractal.julia.asm.MixinClassGenerator - NameControllerImpl - org.objectweb.fractal.julia.BasicControllerMixin - org.objectweb.fractal.julia.control.name.BasicNameControllerMixin - )) -) - -# ----------------------------------------------------------------------------- -# CONTROLLER DESCRIPTORS -# ----------------------------------------------------------------------------- - -(optimizationLevel - # choose one of the following optimization options: - none - # mergeControllers - # mergeControllersAndInterceptors - # mergeControllersAndContent - # mergeControllersInterceptorsAndContent -) - -(bootstrap - ( - 'interface-class-generator - ( - 'component-itf - 'type-factory-itf - 'generic-factory-itf - (loader org.objectweb.fractal.julia.loader.Loader) - ) - ( - 'component-impl - 'type-factory-impl - 'generic-factory-impl - # choose one of the following classes: - # the first one loads all classes from the classpath - # the second one can generate missing classes on the fly, dynamically - # org.objectweb.fractal.julia.loader.BasicLoader - org.objectweb.fractal.julia.loader.DynamicLoader - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - none - ) -) - -(primitive - ( - 'interface-class-generator - ( - 'component-itf - 'binding-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'lifecycle-controller-itf - # only if lifecycle-controller-itf does not designate the Julia interface: - # 'julia-lifecycle-controller-itf - 'name-controller-itf - ) - ( - 'component-impl - 'container-binding-controller-impl - 'super-controller-impl - 'lifecycle-controller-impl - 'name-controller-impl - ) - ( - (org.objectweb.fractal.julia.asm.InterceptorClassGenerator - org.objectweb.fractal.julia.asm.LifeCycleCodeGenerator - ) - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(parametricPrimitive - 'primitive -) - -(composite - ( - 'interface-class-generator - ( - 'component-itf - 'binding-controller-itf - 'content-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'lifecycle-controller-itf - # only if lifecycle-controller-itf does not designate the Julia interface: - # 'julia-lifecycle-controller-itf - 'name-controller-itf - ) - ( - 'component-impl - 'composite-binding-controller-impl - 'content-controller-impl - 'super-controller-impl - 'composite-lifecycle-controller-impl - 'name-controller-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(parametricComposite - ( - 'interface-class-generator - ( - 'component-itf - 'binding-controller-itf - 'content-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'lifecycle-controller-itf - # only if lifecycle-controller-itf does not designate the Julia interface: - # 'julia-lifecycle-controller-itf - 'name-controller-itf - ) - ( - 'component-impl - ((org.objectweb.fractal.julia.asm.AttributeControllerClassGenerator - ('attributeControllerInterface) - )) - 'composite-binding-controller-impl - 'content-controller-impl - 'super-controller-impl - 'composite-lifecycle-controller-impl - 'name-controller-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(primitiveTemplate - ( - 'interface-class-generator - ( - 'component-itf - 'binding-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'name-controller-itf - 'factory-itf - # only if factory-itf does not designate the Julia interface: - # 'julia-factory-itf - ) - ( - 'component-impl - 'primitive-binding-controller-impl - 'super-controller-impl - 'name-controller-impl - 'factory-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(parametricPrimitiveTemplate - ( - 'interface-class-generator - ( - 'component-itf - 'julia-attribute-controller-itf - 'binding-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'name-controller-itf - 'factory-itf - # only if factory-itf does not designate the Julia interface: - # 'julia-factory-itf - ) - ( - 'component-impl - ((org.objectweb.fractal.julia.asm.AttributeControllerClassGenerator - ('attributeControllerInterface) - )) - 'primitive-binding-controller-impl - 'super-controller-impl - 'name-controller-impl - 'factory-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(compositeTemplate - ( - 'interface-class-generator - ( - 'component-itf - 'binding-controller-itf - 'content-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'name-controller-itf - 'factory-itf - # only if factory-itf does not designate the Julia interface: - # 'julia-factory-itf - ) - ( - 'component-impl - 'composite-binding-controller-impl - 'content-controller-impl - 'super-controller-impl - 'name-controller-impl - 'factory-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -(parametricCompositeTemplate - ( - 'interface-class-generator - ( - 'component-itf - 'julia-attribute-controller-itf - 'binding-controller-itf - 'content-controller-itf - 'super-controller-itf - # only if super-controller-itf does not designate the Julia interface: - # 'julia-super-controller-itf - 'name-controller-itf - 'factory-itf - # only if factory-itf does not designate the Julia interface: - # 'julia-factory-itf - ) - ( - 'component-impl - ((org.objectweb.fractal.julia.asm.AttributeControllerClassGenerator - ('attributeControllerInterface) - )) - 'composite-binding-controller-impl - 'content-controller-impl - 'super-controller-impl - 'name-controller-impl - 'factory-impl - ) - ( - # no interceptors - ) - org.objectweb.fractal.julia.asm.MergeClassGenerator - 'optimizationLevel - ) -) - -############################################################################### -# CUSTOM CONFIGURATION INFORMATION -############################################################################### - -# no custom definitions diff --git a/examples/comanche/index.html b/examples/comanche/index.html deleted file mode 100644 index ce78834a5608fc796b4836531aebd9ba3ed8024f..0000000000000000000000000000000000000000 --- a/examples/comanche/index.html +++ /dev/null @@ -1,5 +0,0 @@ - -Welcome in Comanche! -
-This is a test page to test the Comanche server. - \ No newline at end of file diff --git a/examples/comanche/lib/asm.jar b/examples/comanche/lib/asm.jar deleted file mode 100644 index 41e00315ffb0dbd0a386c5a7d39f3bea178804ee..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/asm.jar and /dev/null differ diff --git a/examples/comanche/lib/dtdparser.jar b/examples/comanche/lib/dtdparser.jar deleted file mode 100644 index ddb33dc33e512b1394953e10a83d1fdad438dffc..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/dtdparser.jar and /dev/null differ diff --git a/examples/comanche/lib/fractal-adl.jar b/examples/comanche/lib/fractal-adl.jar deleted file mode 100644 index 2df7d57c362e43a33cecfce8a011cbd2f4575293..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/fractal-adl.jar and /dev/null differ diff --git a/examples/comanche/lib/fractal.jar b/examples/comanche/lib/fractal.jar deleted file mode 100644 index 6bf74c05aaf416490008ba43dce643df09adbbd5..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/fractal.jar and /dev/null differ diff --git a/examples/comanche/lib/julia-asm.jar b/examples/comanche/lib/julia-asm.jar deleted file mode 100644 index 6a8a7de3de4e80f6315aae586593b3bd0bc57b72..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/julia-asm.jar and /dev/null differ diff --git a/examples/comanche/lib/julia-mixins.jar b/examples/comanche/lib/julia-mixins.jar deleted file mode 100644 index 44af2f6006db94f97907c525be68dd9433cb6e1e..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/julia-mixins.jar and /dev/null differ diff --git a/examples/comanche/lib/julia-runtime.jar b/examples/comanche/lib/julia-runtime.jar deleted file mode 100644 index b416b02e98d6e6c2433916f0be1c025a9bb1ac2b..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/julia-runtime.jar and /dev/null differ diff --git a/examples/comanche/lib/ow_deployment_scheduling.jar b/examples/comanche/lib/ow_deployment_scheduling.jar deleted file mode 100644 index 0f20b080a8d0979254b548c52dd40437060386ea..0000000000000000000000000000000000000000 Binary files a/examples/comanche/lib/ow_deployment_scheduling.jar and /dev/null differ diff --git a/examples/comanche/src/comanche/Analyzer.fractal b/examples/comanche/src/comanche/Analyzer.fractal deleted file mode 100644 index 3e7d7093e9f361c2170e4cddf4e4c32e77f985a3..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Analyzer.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/AnalyzerType.fractal b/examples/comanche/src/comanche/AnalyzerType.fractal deleted file mode 100644 index c3f241f977965a0499f4628bcdaab44d299cfff2..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/AnalyzerType.fractal +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/examples/comanche/src/comanche/Backend.fractal b/examples/comanche/src/comanche/Backend.fractal deleted file mode 100644 index 69457768d572b53813cea65898d004c93af0c8e9..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Backend.fractal +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/examples/comanche/src/comanche/BackendType.fractal b/examples/comanche/src/comanche/BackendType.fractal deleted file mode 100644 index 92a8b09da155a8e95d3953fc604e0417f0bfc15b..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/BackendType.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/BasicLogger.java b/examples/comanche/src/comanche/BasicLogger.java deleted file mode 100644 index 260d42ddd441b6f25447940cfecfa1b50403484d..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/BasicLogger.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public class BasicLogger implements Logger { - public void log (String msg) { System.out.println(msg); } -} diff --git a/examples/comanche/src/comanche/Comanche.fractal b/examples/comanche/src/comanche/Comanche.fractal deleted file mode 100644 index ca67ce597d430af5ee716d501136b69f9092ab34..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Comanche.fractal +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/examples/comanche/src/comanche/ComancheType.fractal b/examples/comanche/src/comanche/ComancheType.fractal deleted file mode 100644 index 0e42e0ee86d4d753b08dc3a6123d8c075ce487bb..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/ComancheType.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/Dispatcher.fractal b/examples/comanche/src/comanche/Dispatcher.fractal deleted file mode 100644 index ec115f1da4cdebed5ae2b9dd923988404eef09e9..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Dispatcher.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/DispatcherType.fractal b/examples/comanche/src/comanche/DispatcherType.fractal deleted file mode 100644 index 2682937b3d606ee68f06fd0b58666306efb0675f..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/DispatcherType.fractal +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/examples/comanche/src/comanche/ErrorHandler.fractal b/examples/comanche/src/comanche/ErrorHandler.fractal deleted file mode 100644 index 636c109f542f3d6d43bd323cf462c4289f0f1431..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/ErrorHandler.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/ErrorRequestHandler.java b/examples/comanche/src/comanche/ErrorRequestHandler.java deleted file mode 100644 index 735a5f69c1a0d9443af4a72cb114d22f2e15bd17..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/ErrorRequestHandler.java +++ /dev/null @@ -1,9 +0,0 @@ -package comanche; -import java.io.*; - -public class ErrorRequestHandler implements RequestHandler { - public void handleRequest (Request r) throws IOException { - r.out.print("HTTP/1.0 404 Not Found\n\n"); - r.out.print("Document not found."); - } -} diff --git a/examples/comanche/src/comanche/FileHandler.fractal b/examples/comanche/src/comanche/FileHandler.fractal deleted file mode 100644 index 47b91c181a19a7f0147e93715dbf3510f71e3a14..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/FileHandler.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/FileRequestHandler.java b/examples/comanche/src/comanche/FileRequestHandler.java deleted file mode 100644 index e4bdbe3903fc14850acc7ceeeadaebfad144469e..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/FileRequestHandler.java +++ /dev/null @@ -1,18 +0,0 @@ -package comanche; -import java.io.*; - -public class FileRequestHandler implements RequestHandler { - public void handleRequest (Request r) throws IOException { - File f = new File(r.url); - if (f.exists() && !f.isDirectory()) { - InputStream is = new FileInputStream(f); - byte[] data = new byte[is.available()]; - is.read(data); - is.close(); - r.out.print("HTTP/1.0 200 OK\n\n"); - r.out.write(data); - } else { - throw new IOException("File not found"); - } - } -} diff --git a/examples/comanche/src/comanche/Frontend.fractal b/examples/comanche/src/comanche/Frontend.fractal deleted file mode 100644 index de64b1c066167e8a1100576c8b72ebcd05b9f04f..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Frontend.fractal +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/examples/comanche/src/comanche/FrontendType.fractal b/examples/comanche/src/comanche/FrontendType.fractal deleted file mode 100644 index d7a8d67c859c8a62b695a81d0a97d7fceda9ef3b..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/FrontendType.fractal +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/examples/comanche/src/comanche/Handler.fractal b/examples/comanche/src/comanche/Handler.fractal deleted file mode 100644 index a0b17d20d8f740e87ec9c52be8b450d1fd246040..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Handler.fractal +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/examples/comanche/src/comanche/Logger.fractal b/examples/comanche/src/comanche/Logger.fractal deleted file mode 100644 index 410c5d0180a5bbfef5af7b648e1b758f25454398..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Logger.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/Logger.java b/examples/comanche/src/comanche/Logger.java deleted file mode 100644 index 241561a53c89351530e333ec75f7c271c4a7480e..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Logger.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public interface Logger { - void log (String msg); -} diff --git a/examples/comanche/src/comanche/LoggerType.fractal b/examples/comanche/src/comanche/LoggerType.fractal deleted file mode 100644 index 6b6cdbcbebd0184ff27aaa8ebe9f4b08abf887bc..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/LoggerType.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/MultiThreadScheduler.fractal b/examples/comanche/src/comanche/MultiThreadScheduler.fractal deleted file mode 100644 index c345848d11351cb1d53104585d47603ad2b8ef27..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/MultiThreadScheduler.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/MultiThreadScheduler.java b/examples/comanche/src/comanche/MultiThreadScheduler.java deleted file mode 100644 index adf8bb4d91c15fd014f7bae585c59212aba73612..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/MultiThreadScheduler.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public class MultiThreadScheduler implements Scheduler { - public void schedule (Runnable task) { new Thread(task).start(); } -} diff --git a/examples/comanche/src/comanche/MultiThreadSchedulerType.fractal b/examples/comanche/src/comanche/MultiThreadSchedulerType.fractal deleted file mode 100644 index 9566c389686b9daa422ed738fde3742d86390f0a..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/MultiThreadSchedulerType.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/Receiver.fractal b/examples/comanche/src/comanche/Receiver.fractal deleted file mode 100644 index 74363878f74b875479710eed95b617a03d796117..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Receiver.fractal +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/examples/comanche/src/comanche/ReceiverType.fractal b/examples/comanche/src/comanche/ReceiverType.fractal deleted file mode 100644 index 6ff55d785bc4dc50af11e625810c78d19eb43aaa..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/ReceiverType.fractal +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/examples/comanche/src/comanche/Request.java b/examples/comanche/src/comanche/Request.java deleted file mode 100644 index 200c4b658f35cb079fdc1ccaa89d403672046e19..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Request.java +++ /dev/null @@ -1,11 +0,0 @@ -package comanche; -import java.io.*; -import java.net.*; - -public class Request { - public Socket s; - public Reader in; - public PrintStream out; - public String url; - public Request (Socket s) { this.s = s; } -} diff --git a/examples/comanche/src/comanche/RequestAnalyzer.java b/examples/comanche/src/comanche/RequestAnalyzer.java deleted file mode 100644 index 945c0df259109e6d9b3b0222fb64681dd88b5da6..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/RequestAnalyzer.java +++ /dev/null @@ -1,36 +0,0 @@ -package comanche; -import java.io.*; -import org.objectweb.fractal.api.control.BindingController; - -public class RequestAnalyzer implements RequestHandler, BindingController { - private RequestHandler rh; - private Logger l; - // configuration aspect - public String[] listFc () { return new String[] { "l", "rh" }; } - public Object lookupFc (String itfName) { - if (itfName.equals("l")) { return l; } - else if (itfName.equals("rh")) { return rh; } - else return null; - } - public void bindFc (String itfName, Object itfValue) { - if (itfName.equals("l")) { l = (Logger)itfValue; } - else if (itfName.equals("rh")) { rh = (RequestHandler)itfValue; } - } - public void unbindFc (String itfName) { - if (itfName.equals("l")) { l = null; } - else if (itfName.equals("rh")) { rh = null; } - } - // functional aspect - public void handleRequest (Request r) throws IOException { - r.in = new InputStreamReader(r.s.getInputStream()); - r.out = new PrintStream(r.s.getOutputStream()); - String rq = new LineNumberReader(r.in).readLine(); - l.log(rq); - if (rq.startsWith("GET ")) { - r.url = rq.substring(5, rq.indexOf(' ', 4)); - rh.handleRequest(r); - } - r.out.close(); - r.s.close(); - } -} diff --git a/examples/comanche/src/comanche/RequestDispatcher.java b/examples/comanche/src/comanche/RequestDispatcher.java deleted file mode 100644 index 2e851ce2519c1a703e07745f0ebb6e6e5e70a241..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/RequestDispatcher.java +++ /dev/null @@ -1,31 +0,0 @@ -package comanche; -import java.io.*; -import java.util.*; -import org.objectweb.fractal.api.control.BindingController; - -public class RequestDispatcher implements RequestHandler, BindingController { - private Map handlers = new TreeMap(); - // configuration aspect - public String[] listFc () { - return (String[])handlers.keySet().toArray(new String[handlers.size()]); - } - public Object lookupFc (String itfName) { - if (itfName.startsWith("h")) { return handlers.get(itfName); } - else return null; - } - public void bindFc (String itfName, Object itfValue) { - if (itfName.startsWith("h")) { handlers.put(itfName, itfValue); } - } - public void unbindFc (String itfName) { - if (itfName.startsWith("h")) { handlers.remove(itfName); } - } - // functional aspect - public void handleRequest (Request r) throws IOException { - Iterator i = handlers.values().iterator(); - while (i.hasNext()) { - try { - ((RequestHandler)i.next()).handleRequest(r); return; - } catch (IOException _) { } - } - } -} diff --git a/examples/comanche/src/comanche/RequestHandler.java b/examples/comanche/src/comanche/RequestHandler.java deleted file mode 100644 index 0e8d749b9ed86faa47a9ec2019f9dab2e9dddd1c..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/RequestHandler.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public interface RequestHandler { - void handleRequest (Request r) throws java.io.IOException; -} diff --git a/examples/comanche/src/comanche/RequestReceiver.java b/examples/comanche/src/comanche/RequestReceiver.java deleted file mode 100644 index d5067d4eacfd6a4dc74e65862be7d9b90122e0e0..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/RequestReceiver.java +++ /dev/null @@ -1,41 +0,0 @@ -package comanche; -import java.io.*; -import java.net.*; -import org.objectweb.fractal.api.control.BindingController; - -public class RequestReceiver implements Runnable, BindingController { - private Scheduler s; - private RequestHandler rh; - // configuration aspect - public String[] listFc () { return new String[] { "s", "rh" }; } - public Object lookupFc (String itfName) { - if (itfName.equals("s")) { return s; } - else if (itfName.equals("rh")) { return rh; } - else return null; - } - public void bindFc (String itfName, Object itfValue) { - if (itfName.equals("s")) { s = (Scheduler)itfValue; } - else if (itfName.equals("rh")) { rh = (RequestHandler)itfValue; } - } - public void unbindFc (String itfName) { - if (itfName.equals("s")) { s = null; } - else if (itfName.equals("rh")) { rh = null; } - } - // functional aspect - public void run () { - try { - ServerSocket ss = new ServerSocket(8080); - System.out.println("Comanche HTTP Server ready on port 8080."); - while (true) { - final Socket socket = ss.accept(); - s.schedule(new Runnable () { - public void run () { - try { - rh.handleRequest(new Request(socket)); - } catch (IOException _) { } - } - }); - } - } catch (IOException e) { e.printStackTrace(); } - } -} diff --git a/examples/comanche/src/comanche/Scheduler.java b/examples/comanche/src/comanche/Scheduler.java deleted file mode 100644 index d3a047de430b0b568d9106c8411686b42ad349e4..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Scheduler.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public interface Scheduler { - void schedule (Runnable task); -} diff --git a/examples/comanche/src/comanche/SequentialScheduler.java b/examples/comanche/src/comanche/SequentialScheduler.java deleted file mode 100644 index e49d07e3532e7b0f97b1e98f73a765b9a7a156d0..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/SequentialScheduler.java +++ /dev/null @@ -1,5 +0,0 @@ -package comanche; - -public class SequentialScheduler implements Scheduler { - public void schedule (Runnable task) { task.run(); } -} diff --git a/examples/comanche/src/comanche/Server.java b/examples/comanche/src/comanche/Server.java deleted file mode 100644 index fbb5db157dd222ffa57eaf073979c40377d596db..0000000000000000000000000000000000000000 --- a/examples/comanche/src/comanche/Server.java +++ /dev/null @@ -1,20 +0,0 @@ -package comanche; - -public class Server { - public static void main (String[] args) { - RequestReceiver rr = new RequestReceiver(); - RequestAnalyzer ra = new RequestAnalyzer(); - RequestDispatcher rd = new RequestDispatcher(); - FileRequestHandler frh = new FileRequestHandler(); - ErrorRequestHandler erh = new ErrorRequestHandler(); - Scheduler s = new MultiThreadScheduler(); - Logger l = new BasicLogger(); - rr.bindFc("rh", ra); - rr.bindFc("s", s); - ra.bindFc("rh", rd); - ra.bindFc("l", l); - rd.bindFc("h0", frh); - rd.bindFc("h1", erh); - rr.run(); - } -} \ No newline at end of file diff --git a/fractal/README.txt b/fractal/README.txt deleted file mode 100644 index e2338b0f6f242af515583694eb101ee2ff749c44..0000000000000000000000000000000000000000 --- a/fractal/README.txt +++ /dev/null @@ -1,17 +0,0 @@ -This directory is the base directory of the product. -It contains(*) the following items: - -- archive: ant files to build the jar(s) of the product, -- build.properties: properties to configure the build process, -- build.xml: main ant file to build the product, -- config: external libraries required only for building the product, -- doc: documentation of the product, -- etc: scripts to run the product, -- examples: examples of use of the product, -- externals: external libraires required for running the product, -- jdoc: ant files to build the javadoc documentation(s) of the product, -- sr': sources of the product, -- test: tests of the product, -- web: source of the web site of the product. - -(*) some items may not be present, depending on the product. diff --git a/fractal/archive/README.txt b/fractal/archive/README.txt deleted file mode 100644 index e0d72a77eeab2c75774e256e42b338274737fa5d..0000000000000000000000000000000000000000 --- a/fractal/archive/README.txt +++ /dev/null @@ -1,30 +0,0 @@ -This directory contains ant files to build the jars of the product. -The following rules describe the convention to write such files: - -- An ant file must build only one jar file. - -- The name of the ant file must be the name of the jar it builds: - org-foo-bar.xml must build org-foo-bar.jar. - -- Among the elements which are included into a jar, you must specify - a manifest. It is adviced to store the manifest file in this directory. - The manifest file can be shared by several jars. The name of the manifest - file must be similar to the name of the jar file. - -- Only the default task is called on each ant file. - -- The jar file must be produced into the ${dist.lib} directory. - -Sample ant file: - - - - - - ... - - - - diff --git a/fractal/archive/fractal.mf b/fractal/archive/fractal.mf deleted file mode 100644 index 64850e0c5019dd1718c01ec39b1dc9c71f3d0235..0000000000000000000000000000000000000000 --- a/fractal/archive/fractal.mf +++ /dev/null @@ -1,4 +0,0 @@ -Manifest-Version: 1.0 -Specification-Title: "Fractal" -Specification-Version: "2.0" -Specification-Vendor: "France Telecom R&D, INRIA" diff --git a/fractal/archive/fractal.xml b/fractal/archive/fractal.xml deleted file mode 100644 index 0c717d9979f8d63d0b0755f13e0c9b234e7dba40..0000000000000000000000000000000000000000 --- a/fractal/archive/fractal.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/fractal/archive/naming.mf b/fractal/archive/naming.mf deleted file mode 100644 index 48de95f85f6ea3a6c57e00f542fb03afa9d428a8..0000000000000000000000000000000000000000 --- a/fractal/archive/naming.mf +++ /dev/null @@ -1,4 +0,0 @@ -Manifest-Version: 1.0 -Implementation-Title: "Objectweb naming framework" -Implementation-Version: "1.0" -Implementation-Vendor: "France Telecom R&D" diff --git a/fractal/archive/naming.xml b/fractal/archive/naming.xml deleted file mode 100644 index a0a9e9118bcd1a2c4c0fb64098e1c9506943027c..0000000000000000000000000000000000000000 --- a/fractal/archive/naming.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/fractal/build.config b/fractal/build.config deleted file mode 100644 index 3b639dd796249cd69bf2e1945523ecf0b96d9c81..0000000000000000000000000000000000000000 --- a/fractal/build.config +++ /dev/null @@ -1,4 +0,0 @@ -# Defines values for the 'build.properties' build properties -# This file is used to build the project in the case of bundled external jars - -objectweb.ant.tasks.path config/ow_util_ant_tasks.jar diff --git a/fractal/build.properties b/fractal/build.properties deleted file mode 100644 index acc20d3f2e4cfddfdc54e84bead3e093d4597cb7..0000000000000000000000000000000000000000 --- a/fractal/build.properties +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################### -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -############################################################################### - -# Some information about the product - -product.name fractal -product.version 2.0 - -############################################################################### -# BUILD -############################################################################### - -# Wich compiler do you want to use ? - -# build.compiler jikes - -# Build class path (classes needed to build the project) -# Class path for the ObjectWeb utility Ant tasks (OWANTTASK_1_1) -# See http://forge.objectweb.org/projects/monolog - -# objectweb.ant.tasks.path ow_util_ant_tasks.jar - -############################################################################### -# DOCUMENTATION -############################################################################### - -# URLs of external Javadocs - -fractal.url http://www.objectweb.org/fractal/current/doc/javadoc/fractal -jdk.url http://java.sun.com/j2se/1.3/docs/api diff --git a/fractal/build.xml b/fractal/build.xml deleted file mode 100644 index 54f744fcf204de0efb441edfde256f13951857bc..0000000000000000000000000000000000000000 --- a/fractal/build.xml +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractal/config/README.txt b/fractal/config/README.txt deleted file mode 100644 index 4978babb44fb4f93c7d819e50bedad09c7086b79..0000000000000000000000000000000000000000 --- a/fractal/config/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the external libraries required for building the -product, but which are not necessary to use it. diff --git a/fractal/config/ow_util_ant_tasks.jar b/fractal/config/ow_util_ant_tasks.jar deleted file mode 100644 index 0c88b30e8609d170690d64f075e9b56600e01c5b..0000000000000000000000000000000000000000 Binary files a/fractal/config/ow_util_ant_tasks.jar and /dev/null differ diff --git a/fractal/doc/README.txt b/fractal/doc/README.txt deleted file mode 100644 index 84303fee616679f69995c94e1dd7d4198b338d64..0000000000000000000000000000000000000000 --- a/fractal/doc/README.txt +++ /dev/null @@ -1 +0,0 @@ -This directory contains the documentation of the product. diff --git a/fractal/doc/javadoc/figures/type-system.fig b/fractal/doc/javadoc/figures/type-system.fig deleted file mode 100644 index f22b720ffd76cb60df75ebbd886534db21e22b15..0000000000000000000000000000000000000000 --- a/fractal/doc/javadoc/figures/type-system.fig +++ /dev/null @@ -1,138 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -Letter -100.00 -Single --2 -1200 2 -0 32 #bab7ba -6 2205 6750 6075 7110 -6 2205 6750 2385 7110 -2 1 0 3 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 2250 6930 2340 6930 -2 1 0 3 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 2250 6795 2250 7065 --6 -6 4725 6795 4815 7065 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 4725 6930 4815 6930 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 4725 6795 4725 7065 --6 -4 0 0 50 0 0 12 0.0000 4 120 1080 2430 6975 server interface\001 -4 0 0 50 0 0 12 0.0000 4 120 1020 4905 6975 client interface\001 --6 -6 990 3375 1755 3645 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 3420 1755 3600 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 3510 1710 3510 -2 1 0 2 4 4 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 3420 1305 3600 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 3510 1350 3510 -4 0 0 50 0 0 12 0.0000 4 120 150 990 3600 I1\001 -4 1 0 50 0 0 12 0.0000 4 120 165 1530 3555 s1\001 --6 -2 2 0 1 0 32 53 0 20 0.000 0 0 -1 0 0 5 - 1350 2430 6660 2430 6660 6390 1350 6390 1350 2430 -2 2 0 1 0 7 51 0 20 0.000 0 0 -1 0 0 5 - 1710 2790 6300 2790 6300 6030 1710 6030 1710 2790 -2 1 0 2 4 7 52 0 -1 0.000 0 0 -1 0 0 2 - 4005 2385 4005 2430 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 4095 2385 3915 2385 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 3420 6705 3600 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 3510 6660 3510 -2 1 0 2 4 4 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 3420 6255 3600 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 3510 6300 3510 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 4905 6255 5085 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 4995 6300 4995 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 4905 6705 5085 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 4995 6660 4995 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1800 4995 2250 4995 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1800 5265 2250 5265 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 6750 4995 7200 4995 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 6750 3510 7200 3510 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1800 3510 2250 3510 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 5175 6255 5355 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 5265 6300 5265 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 5175 6705 5355 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 5265 6660 5265 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 6750 5265 7200 5265 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 5445 6255 5625 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6255 5535 6300 5535 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 5445 6705 5625 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 6705 5535 6660 5535 -2 1 1 1 0 7 50 0 -1 2.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 6750 5535 7200 5535 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 4905 1305 5085 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 4995 1350 4995 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 4905 1755 5085 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 4995 1710 4995 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 5175 1305 5355 -2 1 0 2 4 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1305 5265 1350 5265 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 5175 1755 5355 -2 1 0 1 12 7 50 0 -1 0.000 0 0 -1 0 0 2 - 1755 5265 1710 5265 -4 1 0 50 0 0 12 0.0000 4 120 900 4005 2655 s3-controller\001 -4 1 0 50 0 0 12 0.0000 4 120 165 6480 3555 c1\001 -4 1 0 50 0 0 12 0.0000 4 120 240 6480 5040 c2a\001 -4 0 0 50 0 0 12 0.0000 4 15 135 2295 5040 ...\001 -4 0 0 50 0 0 12 0.0000 4 15 135 2295 5310 ...\001 -4 0 0 50 0 0 12 0.0000 4 15 135 7245 5040 ...\001 -4 0 0 50 0 0 12 0.0000 4 15 135 2295 3555 ...\001 -4 0 0 50 0 0 12 0.0000 4 15 135 7245 3555 ...\001 -4 1 0 50 0 0 12 0.0000 4 120 255 6480 5310 c2b\001 -4 0 0 50 0 0 12 0.0000 4 15 135 7245 5310 ...\001 -4 1 0 50 0 0 12 0.0000 4 120 240 6480 5580 c2c\001 -4 0 0 50 0 0 12 0.0000 4 15 135 7245 5580 ...\001 -4 1 0 50 0 0 12 0.0000 4 120 150 4005 2295 I3\001 -4 0 0 50 0 0 12 0.0000 4 120 165 5940 3600 J1\001 -4 0 0 50 0 0 12 0.0000 4 120 165 5940 5085 J2\001 -4 0 0 50 0 0 12 0.0000 4 120 165 5940 5355 J2\001 -4 0 0 50 0 0 12 0.0000 4 120 165 5940 5625 J2\001 -4 1 0 50 0 0 12 0.0000 4 165 1440 4005 4500 component's content\001 -4 1 0 50 0 0 12 0.0000 4 165 1605 4005 6300 component's controller\001 -4 1 0 50 0 0 12 0.0000 4 120 240 1530 5040 s2a\001 -4 1 0 50 0 0 12 0.0000 4 120 255 1530 5310 s2b\001 -4 0 0 50 0 0 12 0.0000 4 120 150 990 5355 I2\001 -4 0 0 50 0 0 12 0.0000 4 120 150 990 5085 I2\001 diff --git a/fractal/doc/javadoc/figures/type-system.gif b/fractal/doc/javadoc/figures/type-system.gif deleted file mode 100644 index ef186ec4d10697be52b2336b5fca38cbc3e24c04..0000000000000000000000000000000000000000 Binary files a/fractal/doc/javadoc/figures/type-system.gif and /dev/null differ diff --git a/fractal/jdoc/README.txt b/fractal/jdoc/README.txt deleted file mode 100644 index a78cb67fa8d1679fe5fd3fe8efc3aab86e5b6db8..0000000000000000000000000000000000000000 --- a/fractal/jdoc/README.txt +++ /dev/null @@ -1,39 +0,0 @@ -This directory contains ant files to build the javadocs of the product. -The following rules describe the convention to write such files: - -- An ant file must build only one javadoc. - -- As there may exist several javadocs, all javadocs must be produced - in a sub dir of ${out.dist.jdoc}. For example the user javadoc could be - produced into the ${out.dist.jdoc}/user directory - -- The name of the ant file must be the name of the destination directory of the - javadoc it builds. - -- Only the default task is called on an xml file. - -Sample ant file: - - - - - - - - - - - - - - - - - - ... - - - - diff --git a/fractal/jdoc/fractal-list/package-list b/fractal/jdoc/fractal-list/package-list deleted file mode 100644 index 0c7ce27ea081eefb65b09e2cd0f5866cd084660f..0000000000000000000000000000000000000000 --- a/fractal/jdoc/fractal-list/package-list +++ /dev/null @@ -1,4 +0,0 @@ -org.objectweb.fractal.api -org.objectweb.fractal.api.control -org.objectweb.fractal.api.factory -org.objectweb.fractal.api.type diff --git a/fractal/jdoc/fractal-util.xml b/fractal/jdoc/fractal-util.xml deleted file mode 100644 index 766c1727b8d8d01e94c94b9bb1085710c31ce448..0000000000000000000000000000000000000000 --- a/fractal/jdoc/fractal-util.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractal/jdoc/fractal.xml b/fractal/jdoc/fractal.xml deleted file mode 100644 index e79df9ae9c1d28ae69a2a7763232743bbb2e175e..0000000000000000000000000000000000000000 --- a/fractal/jdoc/fractal.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractal/jdoc/jdk-list/package-list b/fractal/jdoc/jdk-list/package-list deleted file mode 100644 index 7f582f053dd0c03fe4df1013b086217010da00f1..0000000000000000000000000000000000000000 --- a/fractal/jdoc/jdk-list/package-list +++ /dev/null @@ -1,76 +0,0 @@ -java.applet -java.awt -java.awt.color -java.awt.datatransfer -java.awt.dnd -java.awt.event -java.awt.font -java.awt.geom -java.awt.im -java.awt.im.spi -java.awt.image -java.awt.image.renderable -java.awt.print -java.beans -java.beans.beancontext -java.io -java.lang -java.lang.ref -java.lang.reflect -java.math -java.net -java.rmi -java.rmi.activation -java.rmi.dgc -java.rmi.registry -java.rmi.server -java.security -java.security.acl -java.security.cert -java.security.interfaces -java.security.spec -java.sql -java.text -java.util -java.util.jar -java.util.zip -javax.accessibility -javax.naming -javax.naming.directory -javax.naming.event -javax.naming.ldap -javax.naming.spi -javax.rmi -javax.rmi.CORBA -javax.sound.midi -javax.sound.midi.spi -javax.sound.sampled -javax.sound.sampled.spi -javax.swing -javax.swing.border -javax.swing.colorchooser -javax.swing.event -javax.swing.filechooser -javax.swing.plaf -javax.swing.plaf.basic -javax.swing.plaf.metal -javax.swing.plaf.multi -javax.swing.table -javax.swing.text -javax.swing.text.html -javax.swing.text.html.parser -javax.swing.text.rtf -javax.swing.tree -javax.swing.undo -javax.transaction -org.omg.CORBA -org.omg.CORBA_2_3 -org.omg.CORBA_2_3.portable -org.omg.CORBA.DynAnyPackage -org.omg.CORBA.ORBPackage -org.omg.CORBA.portable -org.omg.CORBA.TypeCodePackage -org.omg.CosNaming -org.omg.CosNaming.NamingContextPackage -org.omg.SendingContext -org.omg.stub.java.rmi diff --git a/fractal/jdoc/naming.xml b/fractal/jdoc/naming.xml deleted file mode 100644 index 42c3b66b7d5053a291916a2a3f018549ad83c8fe..0000000000000000000000000000000000000000 --- a/fractal/jdoc/naming.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractal/src/org/objectweb/fractal/api/Component.java b/fractal/src/org/objectweb/fractal/api/Component.java deleted file mode 100644 index 269de3b0faa352579e8f025fcd2413c107dd7269..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/Component.java +++ /dev/null @@ -1,68 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api; - -/** - * A component interface to introspect the external interfaces of the component - * to which it belongs. - */ - -public interface Component { - - /** - * Returns the type of the component to which this interface belongs. The type - * system is not specified here, in order to allow many type systems to be - * used. The basic type system specified in the {@link - * org.objectweb.fractal.api.type} package should be sufficient in most cases, - * but another one can be used if necessary. - * - * @return the type of the component to which this interface belongs. - */ - - Type getFcType (); - - /** - * Returns the external interfaces of the component to which this interface - * belongs. - * - * @return the external interfaces of the component to which this interface - * belongs, including this interface. - */ - - Object[] getFcInterfaces (); - - /** - * Returns an external interface of the component to which this interface - * belongs. - * - * @param interfaceName the name of the external interface that must be - * returned. - * @return the external interface of the component to which this interface - * belongs, whose name is equal to the given name. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - Object getFcInterface (String interfaceName) throws NoSuchInterfaceException; -} diff --git a/fractal/src/org/objectweb/fractal/api/Fractal.java b/fractal/src/org/objectweb/fractal/api/Fractal.java deleted file mode 100644 index 3eb9d116829bc1752bd0cf40738ee1f9db12ca8a..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/Fractal.java +++ /dev/null @@ -1,84 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api; - -import org.objectweb.fractal.api.factory.InstantiationException; -import org.objectweb.fractal.api.factory.Factory; - -/** - * Provides a static method to get a bootstrap component. This class is only - * required for Java implementations of the Fractal model (level 3.2 at least). - * In other languages the "well known name" used to get the bootstrap component - * may take a different form than a static method. - */ - -public class Fractal { - - /** - * Private constructor (uninstantiable class). - */ - - private Fractal () { - } - - /** - * Returns a bootstrap component to create other components. This method - * creates an instance of the class whose name is specified in the - * fractal.provider system property, which much implement the {@link - * Factory} interface, and returns the component instantiated by this factory. - * - * @return a bootstrap component to create other components. This component - * provides at least two interfaces named type-factory and - * generic-factory to create component types and components. - * The type of the generic-factory interface is {@link - * org.objectweb.fractal.api.factory.GenericFactory}, or a - * sub type of this type, but the type of the type-factory - * interface is not necessarily {@link - * org.objectweb.fractal.api.type.TypeFactory} (or a sub type of this - * type). - * @throws InstantiationException if the bootstrap component cannot be - * created. - */ - - public static Component getBootstrapComponent () - throws InstantiationException - { - String bootTmplClassName = System.getProperty("fractal.provider"); - if (bootTmplClassName == null) { - throw new InstantiationException( - "The fractal.provider system property is not defined"); - } - Factory bootTmpl; - try { - Class bootTmplClass = Class.forName(bootTmplClassName); - bootTmpl = (Factory)bootTmplClass.newInstance(); - } catch (Exception e) { - throw new InstantiationException( - "Cannot find or instantiate the '" + bootTmplClassName + - "' class specified in the fractal.provider system property"); - } - return bootTmpl.newFcInstance(); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/Interface.java b/fractal/src/org/objectweb/fractal/api/Interface.java deleted file mode 100644 index 1133f9576039913e5a4646107ef341a209ebb0bb..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/Interface.java +++ /dev/null @@ -1,77 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api; - -/** - * An interface to introspect component interfaces. If a Fractal component - * supports interface introspection, then the interfaces returned by the - * {@link Component#getFcInterfaces getFcInterfaces} and {@link - * Component#getFcInterfaces getFcInterfaces} methods can be cast into this - * Java interface, in order to get their name or their type. - */ - -public interface Interface { - - /** - * Returns the component to which this interface belongs. - * - * @return the {@link Component} interface of the component to which this - * interface belongs. - */ - - Component getFcItfOwner (); - - /** - * Returns the name of this interface inside its component. This name is - * "unique" inside the component: more precisely, all the external - * interfaces of the component have distinct names, as well as all its - * internal interfaces. However an internal interface can have the same name - * as an external interface. Of course, two interfaces in two distinct - * components can also have the same name. - * - * @return the name of this interface inside its component. - */ - - String getFcItfName (); - - /** - * Returns the type of this interface. The type system is not specified here, - * in order to allow many type systems to be used. The basic type system - * specified in the {@link org.objectweb.fractal.api.type} package should be - * sufficient in most cases, but another one can be used if necessary. - * - * @return the type of this interface. - */ - - Type getFcItfType (); - - /** - * Returns true if this interface is an internal interface. - * - * @return true if this interface is an internal interface. - */ - - boolean isFcInternalItf (); -} diff --git a/fractal/src/org/objectweb/fractal/api/NoSuchInterfaceException.java b/fractal/src/org/objectweb/fractal/api/NoSuchInterfaceException.java deleted file mode 100644 index 87a2691436dd0219f2d5de65a1352276cb9f888f..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/NoSuchInterfaceException.java +++ /dev/null @@ -1,44 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api; - -/** - * Thrown when trying to use or inspect an interface or interface type that does - * not exist. - */ - -public class NoSuchInterfaceException extends Exception { - - /** - * Constructs a {@link NoSuchInterfaceException} with the specified detail - * message. - * - * @param itfName the name of the interface that was not found. - */ - - public NoSuchInterfaceException (String itfName) { - super(itfName); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/Type.java b/fractal/src/org/objectweb/fractal/api/Type.java deleted file mode 100644 index ac04eb88b34ad8b67f59e75865405e196ac2ae41..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/Type.java +++ /dev/null @@ -1,57 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api; - -/** - * Specifies the minimal interface that all type systems must implement. This - * interface defines only one method to test if a type is a sub-type of another - * one. - */ - -public interface Type { - - /** - * Returns true if the given type is a sub-type of this type. The - * relation defined by this method should be: - *
    - *
  • reflexive: if t is {@link Object#equals equals} to u - * then t.isFcSubTypeOf(u) should return true
  • - * - *
  • transitive: if t.isFcSubTypeOf(u) and - * u.isFcSubTypeOf(v) are true then - * t.isFcSubTypeOf(v) must be true
  • - *
- * - * - * @param type the type to be compared to this type. - * @return true if the given type is a sub-type of this type. - */ - - boolean isFcSubTypeOf (Type type); -} diff --git a/fractal/src/org/objectweb/fractal/api/control/AttributeController.java b/fractal/src/org/objectweb/fractal/api/control/AttributeController.java deleted file mode 100644 index 71f88fbec3729cb3316dfc47807022999e490e65..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/AttributeController.java +++ /dev/null @@ -1,44 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * A component interface to control the attributes of the component to which it - * belongs. More precisely this interface denotes the component interfaces that - * can control component attributes: a component interface whose Java type - * is a Java interface that extends this Java interface is indeed considered as - * an interface to control the attributes of the component to which it belongs. - * Such interfaces must only contain getter and setter methods, such - * as int getX (); void setX (int x), double getSize (); void - * setSize (double x), and so on. These methods should only be used to - * configure "primitive" values such as integers or strings: they must not be - * used to configure bindings (this is the role of the {@link BindingController} - * interface). For example, they can be used to configure the size of a cache - * component, the load factor of a hashtable component, the label or color of a - * button component... - */ - -public interface AttributeController { -} diff --git a/fractal/src/org/objectweb/fractal/api/control/BindingController.java b/fractal/src/org/objectweb/fractal/api/control/BindingController.java deleted file mode 100644 index ee1d9362fc8caec762eee1c4d1e4348b1476c805..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/BindingController.java +++ /dev/null @@ -1,104 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -import org.objectweb.fractal.api.NoSuchInterfaceException; - -/** - * A component interface to control the bindings of the component to which it - * belongs. It is implicitely assumed here that the component's type system - * makes a distinction between "client" and "server" interfaces. - */ - -public interface BindingController { - - /** - * Returns the names of the client interfaces of the component to which this - * interface belongs. - * - * @return the names of the client interfaces of the component to which this - * interface belongs. - */ - - String[] listFc (); - - /** - * Returns the interface to which the given client interface is bound. More - * precisely, returns the server interface to which the client interface whose - * name is given is bound. This server interface is necessarily in the same - * address space as the client interface (see {@link #bindFc bindFc}). - * - * @param clientItfName the name of a client interface of the component to - * which this interface belongs. - * @return the server interface to which the given interface is bound, or - * null if it is not bound. - * @throws NoSuchInterfaceException if the component to which this interface - * belongs does not have a client interface whose name is equal to the - * given name. - */ - - Object lookupFc (String clientItfName) throws NoSuchInterfaceException; - - /** - * Binds the client interface whose name is given to a server interface. More - * precisely, binds the client interface of the component to which this - * interface belongs, and whose name is equal to the given name, to the given - * server interface. The given server interface must be in the same address - * space as the client interface. - * - * @param clientItfName the name of a client interface of the component to - * which this interface belongs. - * @param serverItf a server interface. - * @throws NoSuchInterfaceException if there is no such client interface. - * @throws IllegalBindingException if the binding cannot be created. - * @throws IllegalLifeCycleException if this component has a {@link - * LifeCycleController} interface, but it is not in an appropriate state - * to perform this operation. - */ - - void bindFc (String clientItfName, Object serverItf) throws - NoSuchInterfaceException, - IllegalBindingException, - IllegalLifeCycleException; - - /** - * Unbinds the given client interface. More precisely, unbinds the client - * interface of the component to which this interface belongs, and whose name - * is equal to the given name. - * - * @param clientItfName the name of a client interface of the component to - * which this interface belongs. - * @throws NoSuchInterfaceException if there is no such client interface. - * @throws IllegalBindingException if the binding cannot be removed. - * @throws IllegalLifeCycleException if this component has a {@link - * LifeCycleController} interface, but it is not in an appropriate state - * to perform this operation. - */ - - void unbindFc (String clientItfName) throws - NoSuchInterfaceException, - IllegalBindingException, - IllegalLifeCycleException; -} diff --git a/fractal/src/org/objectweb/fractal/api/control/ContentController.java b/fractal/src/org/objectweb/fractal/api/control/ContentController.java deleted file mode 100644 index fa0ef6f4db57c3f1be02a3f6669f380226069649..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/ContentController.java +++ /dev/null @@ -1,113 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -import org.objectweb.fractal.api.Component; -import org.objectweb.fractal.api.NoSuchInterfaceException; - -/** - * A component interface to control the content of the component to which it - * belongs. This content is supposed to be made of an unordered, unstructured - * set of components. - */ - -public interface ContentController { - - /** - * Returns the internal interfaces of the component to which this interface - * belongs. - * - * @return the internal interfaces of the component to which this interface - * belongs. - */ - - Object[] getFcInternalInterfaces (); - - /** - * Returns an internal interface of the component to which this interface - * belongs. - * - * @param interfaceName the name of the internal interface that must be - * returned. - * @return the internal interface of the component to which this interface - * belongs, whose name is equal to the given name. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - Object getFcInternalInterface (String interfaceName) - throws NoSuchInterfaceException; - - /** - * Returns the sub-components of this component. - * - * @return the {@link Component} interfaces of the sub-components of the - * component to which this interface belongs. - */ - - Component[] getFcSubComponents (); - - /** - * Adds a sub-component to this component. More precisely adds the component - * whose reference is given as a sub-component of the component to which this - * interface belongs. If C is the sub-component set returned by {@link - * #getFcSubComponents getFcSubComponents} just before a call to this - * method, and C' is the sub-component set just after this call, then - * subComponent is guaranteed to be in C', but C' is - * not guaranted to be the union of C and {subComponent}, - * nor to contain all the elements of C. - * - * @param subComponent the component to be added inside this component. - * @throws IllegalContentException if the given component cannot be added - * inside this component. - * @throws IllegalLifeCycleException if this component has a {@link - * LifeCycleController} interface, but it is not in an appropriate state - * to perform this operation. - */ - - void addFcSubComponent (Component subComponent) - throws IllegalContentException, IllegalLifeCycleException; - - /** - * Removes a sub-component from this component. More precisely removes the - * sub-component whose reference is given from the component to which this - * interface belongs. If C is the sub-component set returned by {@link - * #getFcSubComponents getFcSubComponents} just before a call to this - * method, and C' is the sub-component set just after this call, then - * subComponent is guaranteed not to be in C', but C' - * is not guaranted to be the difference of C and - * {subComponent}, nor to contain all the elements of C distinct - * from subComponent. - * - * @param subComponent the component to be removed from this component. - * @throws IllegalContentException if the given component cannot be removed - * from this component. - * @throws IllegalLifeCycleException if this component has a {@link - * LifeCycleController} interface, but it is not in an appropriate state - * to perform this operation. - */ - - void removeFcSubComponent (Component subComponent) - throws IllegalContentException, IllegalLifeCycleException; -} diff --git a/fractal/src/org/objectweb/fractal/api/control/IllegalBindingException.java b/fractal/src/org/objectweb/fractal/api/control/IllegalBindingException.java deleted file mode 100644 index a9ea171f1386efd7f19f30aa5cc8d57221af06a3..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/IllegalBindingException.java +++ /dev/null @@ -1,43 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * Thrown when an error related to bindings occurs. - */ - -public class IllegalBindingException extends Exception { - - /** - * Constructs an {@link IllegalBindingException} with the specified detail - * message. - * - * @param msg the detail message. - */ - - public IllegalBindingException (final String msg) { - super(msg); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/control/IllegalContentException.java b/fractal/src/org/objectweb/fractal/api/control/IllegalContentException.java deleted file mode 100644 index 578536a1d77999273b43495622b4551ff6d6753f..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/IllegalContentException.java +++ /dev/null @@ -1,43 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * Thrown when an error related to the management of sub components occurs. - */ - -public class IllegalContentException extends Exception { - - /** - * Constructs an {@link IllegalContentException} with the specified detail - * message. - * - * @param msg the detail message. - */ - - public IllegalContentException (final String msg) { - super(msg); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/control/IllegalLifeCycleException.java b/fractal/src/org/objectweb/fractal/api/control/IllegalLifeCycleException.java deleted file mode 100644 index 59bdad2ade39ea098fa3cc3023a48d52040db056..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/IllegalLifeCycleException.java +++ /dev/null @@ -1,44 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * Thrown when a component is not in a valid life cycle state to use some - * method. - */ - -public class IllegalLifeCycleException extends Exception { - - /** - * Constructs an {@link IllegalLifeCycleException} with the specified detail - * message. - * - * @param msg the detail message. - */ - - public IllegalLifeCycleException (final String msg) { - super(msg); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/control/LifeCycleController.java b/fractal/src/org/objectweb/fractal/api/control/LifeCycleController.java deleted file mode 100644 index 23e02ce8d32b9a3efa8e15b90a660d93e5a09f89..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/LifeCycleController.java +++ /dev/null @@ -1,95 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * A component interface to control the lifecycle of the component to which it - * belongs. The lifecycle of a component is supposed to be an automaton, whose - * states represent execution states of the component. This interface - * corresponds to an automaton with two states called {@link #STARTED - * STARTED} and {@link #STOPPED STOPPED}, where all the 4 four - * possible transitions are allowed. It is however possible to define completely - * different lifecycle controller Java interfaces to use completely different - * automatons, or to define sub interfaces of this interface to define - * automatons based on this one, but with more states and more transitions.

- * - * Note: the sub-interfaces of this interface should use the conventions - * used in this interface, which are the following. The interface contains one - * method per state in the lifecycle automaton. Each of these methods changes - * the current state to the state corresponding to its name, if there is a - * transition from the current state to this state. The interface also contains - * one field per state. The names and values of these fields correspond to the - * names of the methods. - */ - -public interface LifeCycleController { - - /** - * The state of a component just after {@link #startFc startFc} has been - * executed. - */ - - String STARTED = "STARTED"; - - /** - * The state of a component just after {@link #stopFc stopFc} has been - * executed. This state is also the initial state of a component, i.e., the - * state of a component just after it has been created. - */ - - String STOPPED = "STOPPED"; - - /** - * Returns the execution state of the component to which this interface - * belongs. - * - * @return the execution state of the component to which this interface - * belongs. - */ - - String getFcState (); - - /** - * Starts the component to which this interface belongs. - * - * @throws IllegalLifeCycleException if the transition from the current state - * to the {@link #STARTED STARTED} state is not a valid transition of the - * life cycle automaton. - */ - - void startFc () throws IllegalLifeCycleException; - - /** - * Stops the component to which this interface belongs. The result of a method - * call on a stopped component is undefined, except on its control interfaces - * (these calls are executed normally). - * - * @throws IllegalLifeCycleException if the transition from the current state - * to the {@link #STOPPED STOPPED} state is not a valid transition of the - * life cycle automaton. - */ - - void stopFc () throws IllegalLifeCycleException; -} diff --git a/fractal/src/org/objectweb/fractal/api/control/NameController.java b/fractal/src/org/objectweb/fractal/api/control/NameController.java deleted file mode 100644 index c020792ff54274bf5d160e082e7fbc53cecc153a..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/NameController.java +++ /dev/null @@ -1,51 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -/** - * A component interface to control the name of the component to which it - * belongs. - */ - -public interface NameController { - - /** - * Returns the name of the component to which this interface belongs. - * - * @return the name of the component to which this interface belongs. - * @see #setFcName - */ - - String getFcName (); - - /** - * Sets the name of the component to which this interface belongs. - * - * @param name a component name. - * @see #getFcName - */ - - void setFcName (String name); -} diff --git a/fractal/src/org/objectweb/fractal/api/control/SuperController.java b/fractal/src/org/objectweb/fractal/api/control/SuperController.java deleted file mode 100644 index 36aa23d5ad975acc16e34c1cf75274e9f8ed6337..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/SuperController.java +++ /dev/null @@ -1,45 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.control; - -import org.objectweb.fractal.api.Component; - -/** - * A component interface to control the super components of the component to - * which it belongs. - */ - -public interface SuperController { - - /** - * Returns the components that contain the component to which this interface - * belongs. - * - * @return the {@link Component} interfaces of the components that contain the - * component to which this interface belongs. - */ - - Component[] getFcSuperComponents (); -} diff --git a/fractal/src/org/objectweb/fractal/api/control/package.html b/fractal/src/org/objectweb/fractal/api/control/package.html deleted file mode 100644 index 5bf28038cf69cd07dd45252d706011c24e7c4435..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/control/package.html +++ /dev/null @@ -1,35 +0,0 @@ - - - -Specifies some basic component interfaces to control components. These control -interfaces can be provided by components that are able to control the -corresponding "aspects". For example, a component which can start and stop -itself can provide the {@link org.objectweb.fractal.api.control.LifeCycleController -LifeCycleController} interface, a component that can control its bindings can -provide the {@link org.objectweb.fractal.api.control.BindingController -BindingController} interface, and so on. -@since Fractal 0.8.0 - - diff --git a/fractal/src/org/objectweb/fractal/api/factory/Factory.java b/fractal/src/org/objectweb/fractal/api/factory/Factory.java deleted file mode 100644 index 6060f7d8eeacb4911f49c008dca6f55fcdf8e7d0..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/factory/Factory.java +++ /dev/null @@ -1,77 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.factory; - -import org.objectweb.fractal.api.Component; -import org.objectweb.fractal.api.Type; - -/** - * A component interface to create components of the same type. - */ - -public interface Factory { - - /** - * Returns the functional type of the components instantiated by this factory. - * - * @return the functional type of the components instantiated by this factory. - */ - - Type getFcInstanceType (); - - /** - * Returns a description of the controller part of the components instantiated - * by this factory. - * - * @return a description of the controller part of the components instantiated - * by this factory. This description is implementation specific. If it - * is null then a "default" controller part will be used. - */ - - Object getFcControllerDesc (); - - /** - * Returns a description of the content part of the components instantiated - * by this factory. - * - * @return a description of the content part of the components instantiated by - * this factory. This description is implementation specific. It may be - * null to create component with an empty initial content. It - * may also be, in Java, the fully qualified name of a Java class, to - * creat primitive components. - */ - - Object getFcContentDesc (); - - /** - * Instantiates a component from this factory. - * - * @return the {@link Component} interface of the component instantiated from - * this factory. - * @throws InstantiationException if the component cannot be created. - */ - - Component newFcInstance () throws InstantiationException; -} diff --git a/fractal/src/org/objectweb/fractal/api/factory/GenericFactory.java b/fractal/src/org/objectweb/fractal/api/factory/GenericFactory.java deleted file mode 100644 index b2ae7352ea9c60c71e20eb7dee9ce93b6fdb029a..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/factory/GenericFactory.java +++ /dev/null @@ -1,54 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.factory; - -import org.objectweb.fractal.api.Component; -import org.objectweb.fractal.api.Type; - -/** - * A component interface to create arbitrary components. - */ - -public interface GenericFactory { - - /** - * Creates a component. - * - * @param type an arbitrary component type. - * @param controllerDesc a description of the controller part of the - * component to be created. This description is implementation specific. - * If it is null then a "default" controller part will be used. - * @param contentDesc a description of the content part of the - * component to be created. This description is implementation specific. - * It may be null to create component with an empty initial - * content. It may also be, in Java, the fully qualified name of a Java - * class, to create primitive components. - * @return the {@link Component} interface of the created component. - * @throws InstantiationException if the component cannot be created. - */ - - Component newFcInstance (Type type, Object controllerDesc, Object contentDesc) - throws InstantiationException; -} diff --git a/fractal/src/org/objectweb/fractal/api/factory/InstantiationException.java b/fractal/src/org/objectweb/fractal/api/factory/InstantiationException.java deleted file mode 100644 index 139aed69959200937091124c6ef3a87236e334a9..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/factory/InstantiationException.java +++ /dev/null @@ -1,43 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.factory; - -/** - * Thrown when a component cannot be instantiated. - */ - -public class InstantiationException extends Exception { - - /** - * Constructs an {@link InstantiationException} with the specified detail - * message. - * - * @param msg the detail message. - */ - - public InstantiationException (final String msg) { - super(msg); - } -} diff --git a/fractal/src/org/objectweb/fractal/api/factory/package.html b/fractal/src/org/objectweb/fractal/api/factory/package.html deleted file mode 100644 index f0a4c0a304b6faaa2da704891b55bf59a53924ef..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/factory/package.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -Specifies some basic component interfaces to instantiate components. -@since Fractal 0.8.0 - - diff --git a/fractal/src/org/objectweb/fractal/api/overview.html b/fractal/src/org/objectweb/fractal/api/overview.html deleted file mode 100644 index f232ef635dccbd2b61b9849a68da23f2a5058cc9..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/overview.html +++ /dev/null @@ -1,31 +0,0 @@ - - - -DO NOT REMOVE THIS LINE (will be automatically removed). - -See the Fractal Web Site for more -general documentation about Fractal. - - \ No newline at end of file diff --git a/fractal/src/org/objectweb/fractal/api/package.html b/fractal/src/org/objectweb/fractal/api/package.html deleted file mode 100644 index dd65d8e00da0f85d9dd2bcbdc88ce7c1d759becf..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/package.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -Specifies the component and component interface concepts. -@since Fractal 0.8.0 - - diff --git a/fractal/src/org/objectweb/fractal/api/type/ComponentType.java b/fractal/src/org/objectweb/fractal/api/type/ComponentType.java deleted file mode 100644 index ec427dd1ab370525a64a4ab5f0d88e1893dcfd5d..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/type/ComponentType.java +++ /dev/null @@ -1,64 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.type; - -import org.objectweb.fractal.api.Type; -import org.objectweb.fractal.api.NoSuchInterfaceException; - -/** - * A component type. A component type is just a collection of component - * interface types, which describes the interfaces that components of this type - * must or may have at runtime. - */ - -public interface ComponentType extends Type { - - /** - * Returns the types of the interfaces of components of this type. - * - * @return the types of the interfaces that components of this type must or - * may have at runtime. - */ - - InterfaceType[] getFcInterfaceTypes (); - - /** - * Returns an interface type of this component type from its name. This method - * is not strictly necessary, as it can be implemented by using the {@link - * #getFcInterfaceTypes getFcInterfaceTypes} method. But it is convenient and - * can be implemented more efficiently than with the previous method. This is - * why it is specified here. - * - * @param name the name of one of the interface types returned by {@link - * #getFcInterfaceTypes getFcInterfaceTypes} (see {@link - * InterfaceType#getFcItfName getFcItfName}). - * @return the interface type of this component type whose name is equal to - * the given name (see {@link InterfaceType#getFcItfName getFcItfName}). - * @throws NoSuchInterfaceException if there is no such interface type. - */ - - InterfaceType getFcInterfaceType (String name) - throws NoSuchInterfaceException; -} diff --git a/fractal/src/org/objectweb/fractal/api/type/InterfaceType.java b/fractal/src/org/objectweb/fractal/api/type/InterfaceType.java deleted file mode 100644 index 01e22186ae945a59f55eb13556cc047a0cdc6813..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/type/InterfaceType.java +++ /dev/null @@ -1,98 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.type; - -import org.objectweb.fractal.api.Type; - -/** - * A component interface type. Such a type is made of a name, which is the name - * of the interface described by this type inside its component (see {@link - * org.objectweb.fractal.api.Interface#getFcItfName getFcItfName}), a list of - * method signatures, which describes the methods provided or required by this - * interface, and various flags that indicates if this interface is provided or - * required, mandatory or not... - */ - -public interface InterfaceType extends Type { - - /** - * Returns the name of component interfaces of this type. More precisely, - * because some interfaces can be created dynamically (see {@link - * #isFcCollectionItf isFcCollectionItf}), this name is in fact a - * prefix of the real names of interfaces of this type. - * - * @return the name of component interfaces of this type inside their - * components (see {@link - * org.objectweb.fractal.api.Interface#getFcItfName getFcItfName}). - */ - - String getFcItfName (); - - /** - * Returns the signatures of the methods of interfaces of this type. In Java - * this method returns the fully qualified name of a Java interface - * corresponding to these method signatures. - * - * @return the signatures of the methods of interfaces of this type. - */ - - String getFcItfSignature (); - - /** - * Returns true if component interfaces of this type are client - * interfaces. - * - * @return true if component interfaces of this type are client - * interfaces, i.e., interfaces that are required, or false if - * they are server interfaces, i.e., interfaces that are provided. - */ - - boolean isFcClientItf (); - - /** - * Returns true if component interfaces of this type are optional. A - * mandatory interface is guaranteed to be "available" when the component - * is started. For a client interface, this means that the interface is bound, - * and that it is bound to a mandatory interface. An optional interface may - * not be available when the component is started (for a client interface, it - * means that the interface may not be bound). - * - * @return true if component interfaces of this type are optional. - */ - - boolean isFcOptionalItf (); - - /** - * Indicates how many interfaces of this type a component may have. A - * singleton interface type means that a component must have exactly one - * interface of this type. A collection interface type means that a component - * may have an arbitrary number of interfaces of this type (whose names must - * all begin with the name specified in this interface type). - * - * @return false if this type is a singleton interface type. - */ - - boolean isFcCollectionItf (); -} diff --git a/fractal/src/org/objectweb/fractal/api/type/TypeFactory.java b/fractal/src/org/objectweb/fractal/api/type/TypeFactory.java deleted file mode 100644 index 40b0aef22eb23f29beb1b7fdc70df49673e5401f..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/type/TypeFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/*** - * Fractal API - * Copyright (C) 2001-2002 France Telecom, INRIA - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Thierry Coupaye, Pascal Dechamboux, Romain Lenglet, - * Philippe Merle, Jean-Bernard Stefani. - */ - -package org.objectweb.fractal.api.type; - -import org.objectweb.fractal.api.factory.InstantiationException; - -/** - * A component interface to create component and interface type objects. - */ - -public interface TypeFactory { - - /** - * The isClient value to be used in {@link - * #createFcItfType createFcItfType} to create a server interface type. - */ - - boolean SERVER = false; - - /** - * The isClient value to be used in {@link - * #createFcItfType createFcItfType} to create a client interface type. - */ - - boolean CLIENT = true; - - /** - * The isOptional value to be used in {@link - * #createFcItfType createFcItfType} to create a mandatory interface type. - */ - - boolean MANDATORY = false; - - /** - * The isOptional value to be used in {@link - * #createFcItfType createFcItfType} to create an optional interface type. - */ - - boolean OPTIONAL = true; - - /** - * The isCollection value to be used in {@link - * #createFcItfType createFcItfType} to create a singleton interface type. - */ - - boolean SINGLE = false; - - /** - * The isCollection value to be used in {@link - * #createFcItfType createFcItfType} to create a collection interface type. - */ - - boolean COLLECTION = true; - - /** - * Creates an interface type. - * - * @param name the name of interfaces of this type (see {@link - * InterfaceType#getFcItfName getFcItfName}). - * @param signature signatures of the methods of interfaces of this type. In - * Java this "signature" is the fully qualified name of a Java interface - * corresponding to these method signatures. - * @param isClient true if component interfaces of this type are - * client interfaces. - * @param isOptional true if component interfaces of this type are - * optional interfaces. - * @param isCollection true if a component may have several - * interfaces of this type. - * @return an interface type initialized with the given values. - * @throws InstantiationException if the interface type cannot be created. - */ - - InterfaceType createFcItfType ( - String name, - String signature, - boolean isClient, - boolean isOptional, - boolean isCollection) throws InstantiationException; - - /** - * Creates a component type. - * - * @param interfaceTypes the interface types of the component type to be - * created. - * @return a component type whose {@link ComponentType#getFcInterfaceTypes - * getFcInterfaceTypes} method returns an array equal to - * interfaceTypes. - * @throws InstantiationException if the component type cannot be created. - */ - - ComponentType createFcType (InterfaceType[] interfaceTypes) - throws InstantiationException; -} diff --git a/fractal/src/org/objectweb/fractal/api/type/package.html b/fractal/src/org/objectweb/fractal/api/type/package.html deleted file mode 100644 index e52fab0a1649ae95d99947561ac5b82c5a0bcdf0..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/api/type/package.html +++ /dev/null @@ -1,81 +0,0 @@ - - - -Specifies a basic type system for components and component interfaces. -According to this type system, a component type is just a collection of -component interface types, which describes the interfaces that components of -this type must or may have at runtime. A component type describes explicitely -the external interfaces of a component and, implicitely, its internal -interfaces. Indeed, if the type of a component c is of the following -form: -

    -
  • s1 , I1 , server, mandatory, singleton,
  • -
  • s2 , I2 , server, optional, collection,
  • -
  • s3-controller , I3 , server, mandatory, singleton,
  • -
  • ...,
  • -
  • c1 , J1 , client, mandatory, singleton,
  • -
  • c2 , J2 , client, optional, collection,
  • -
  • ...
  • -
-Then this component: -
    -
  • must provide a server interface s1 of type I1,
  • -
  • may provide several server interfaces s2XYZ of type I2 (but - no server interface of name s2 exactly),
  • -
  • must provide a server interface s3-controller of type - I3,
  • -
  • ...,
  • -
  • must have a client interface c1 of type J1,
  • -
  • may have several client interfaces c2XYZ of type J2 (but - no client interface of name c2 exactly),
  • -
  • ...
  • -
-Futhermore, if this component provides access to its content, then it: -
    -
  • must have an internal client interface s1 of type I1, -
  • -
  • may have several internal client interfaces s2XYZ of type - I2 (but no internal client interface of name s2 - exactly),
  • -
  • ...,
  • -
  • must provide an internal server interface c1 of type - J1,
  • -
  • may provide several internal server interfaces c2XYZ of type - J2 (but no internal server interface of name c2 - exactly),
  • -
  • ...
  • -
-Moreover, each internal interface must have a corresponding external interface -of the same name (but the converse is not necessarily true). The figure below -illustrates these definitions. -

-

- -

-Figure: a sample "instance" of the above type. -

-@since Fractal 0.8.0 - - diff --git a/fractal/src/org/objectweb/fractal/util/Fractal.java b/fractal/src/org/objectweb/fractal/util/Fractal.java deleted file mode 100644 index c84fcc8c1f2e80db28245d789e0905da3a5b038f..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/util/Fractal.java +++ /dev/null @@ -1,193 +0,0 @@ -/*** - * Fractal Util: utilities for the Fractal API - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: Eric.Bruneton@rd.francetelecom.com - * - * Author: Eric Bruneton - */ - -package org.objectweb.fractal.util; - -import org.objectweb.fractal.api.Component; -import org.objectweb.fractal.api.NoSuchInterfaceException; -import org.objectweb.fractal.api.control.AttributeController; -import org.objectweb.fractal.api.control.BindingController; -import org.objectweb.fractal.api.control.ContentController; -import org.objectweb.fractal.api.control.LifeCycleController; -import org.objectweb.fractal.api.control.NameController; -import org.objectweb.fractal.api.control.SuperController; -import org.objectweb.fractal.api.factory.Factory; -import org.objectweb.fractal.api.factory.GenericFactory; -import org.objectweb.fractal.api.factory.InstantiationException; -import org.objectweb.fractal.api.type.TypeFactory; - -/** - * Provides static methods to access standard interfaces of Fractal components. - */ - -public class Fractal { - - /** - * Private constructor (uninstantiable class). - */ - - private Fractal () { - } - - /** - * Returns a bootstrap component to create other components. This method - * just calls the corresponding method of the - * org.objectweb.fractal.api.Fractal class. - * - * @return a bootstrap component to create other components. - * @throws InstantiationException if the bootstrap component cannot be - * created. - */ - - public static Component getBootstrapComponent () - throws InstantiationException - { - return org.objectweb.fractal.api.Fractal.getBootstrapComponent(); - } - - /** - * Returns the {@link AttributeController} interface of the given component. - * - * @param component a component. - * @return the {@link AttributeController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static AttributeController getAttributeController ( - final Component component) throws NoSuchInterfaceException - { - return (AttributeController)component.getFcInterface("attribute-controller"); - } - - /** - * Returns the {@link BindingController} interface of the given component. - * - * @param component a component. - * @return the {@link BindingController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static BindingController getBindingController ( - final Component component) throws NoSuchInterfaceException - { - return (BindingController)component.getFcInterface("binding-controller"); - } - - /** - * Returns the {@link ContentController} interface of the given component. - * - * @param component a component. - * @return the {@link ContentController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static ContentController getContentController ( - final Component component) throws NoSuchInterfaceException - { - return (ContentController)component.getFcInterface("content-controller"); - } - - /** - * Returns the {@link SuperController} interface of the given component. - * - * @param component a component. - * @return the {@link SuperController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static SuperController getSuperController (final Component component) - throws NoSuchInterfaceException - { - return (SuperController)component.getFcInterface("super-controller"); - } - - /** - * Returns the {@link NameController} interface of the given component. - * - * @param component a component. - * @return the {@link NameController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static NameController getNameController (final Component component) - throws NoSuchInterfaceException - { - return (NameController)component.getFcInterface("name-controller"); - } - - /** - * Returns the {@link LifeCycleController} interface of the given component. - * - * @param component a component. - * @return the {@link LifeCycleController} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static LifeCycleController getLifeCycleController ( - final Component component) throws NoSuchInterfaceException - { - return (LifeCycleController)component.getFcInterface("lifecycle-controller"); - } - - /** - * Returns the {@link Factory} interface of the given component. - * - * @param component a component. - * @return the {@link Factory} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static Factory getFactory (final Component component) - throws NoSuchInterfaceException - { - return (Factory)component.getFcInterface("factory"); - } - - /** - * Returns the {@link GenericFactory} interface of the given component. - * - * @param component a component. - * @return the {@link GenericFactory} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static GenericFactory getGenericFactory (final Component component) - throws NoSuchInterfaceException - { - return (GenericFactory)component.getFcInterface("generic-factory"); - } - - /** - * Returns the {@link TypeFactory} interface of the given component. - * - * @param component a component. - * @return the {@link TypeFactory} interface of the given component. - * @throws NoSuchInterfaceException if there is no such interface. - */ - - public static TypeFactory getTypeFactory (final Component component) - throws NoSuchInterfaceException - { - return (TypeFactory)component.getFcInterface("type-factory"); - } -} diff --git a/fractal/src/org/objectweb/fractal/util/overview.html b/fractal/src/org/objectweb/fractal/util/overview.html deleted file mode 100644 index 068b01248fb3157a0db43b5484bfe2a9010a42aa..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/util/overview.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -DO NOT REMOVE THIS LINE (will be automatically removed). - -Provides utilities to facilitate Fractal API's use. These utilities are -independent of any implementation of the Fractal API. - \ No newline at end of file diff --git a/fractal/src/org/objectweb/fractal/util/package.html b/fractal/src/org/objectweb/fractal/util/package.html deleted file mode 100644 index 5144710586af836e560372b4a0691a6c72e6a7a8..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/fractal/util/package.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -Provides utilities to facilitate Fractal API's use. - -@since Fractal 1.0.6 - - diff --git a/fractal/src/org/objectweb/naming/Binder.java b/fractal/src/org/objectweb/naming/Binder.java deleted file mode 100644 index 3889a5625268fcce2f54f413c76911c1288134cf..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/Binder.java +++ /dev/null @@ -1,52 +0,0 @@ -/*** - * Objectweb naming framework API - * Copyright (C) 2001-2002 France Telecom - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: architecture@objectweb.org - */ - -package org.objectweb.naming; - -/** - * A binder is a {@link NamingContext} that can also give access - * to the objects designated by the names it manages. - */ - -public interface Binder extends NamingContext { - - /** - * Returns an object that gives access to the object designated by the given - * name. This name must belong to this naming context, i.e., - * nc.bind(n, hints) is valid only if n.getNamingContext() == - * nc. The object returned by this method implements the Java interface - * of the designated object. It may also implement the {@link Name} - * interface. This method creates a binding object (or a binding component - * when it is used with the Fractal - * framework) that gives access to the designated object (this binding - * object can be empty, i.e., the bind method may directly return the - * designated object itself). - * - * @param n a name that has been created by this naming context. - * @param hints optional additional information. - * @return an object that gives access to the object designated by n. - * This object may also implement the {@link Name} interface. - * @throws NamingException if the binding fails (this is the case, for - * example, if the given name was not created by this naming context). - */ - - Object bind (Name n, Object hints) throws NamingException; -} diff --git a/fractal/src/org/objectweb/naming/Name.java b/fractal/src/org/objectweb/naming/Name.java deleted file mode 100644 index a09768f9a386f6662d9f82495510109b5c348561..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/Name.java +++ /dev/null @@ -1,58 +0,0 @@ -/*** - * Objectweb naming framework API - * Copyright (C) 2001-2002 France Telecom - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: architecture@objectweb.org - */ - -package org.objectweb.naming; - -/** - * A name designates an object or an object interface. A name may also provide - * access to the object or interface it designates. Such a name implements both - * the {@link Name} interface and the (or a) Java interface of the object - * it designates. - */ - -public interface Name { - - /** - * Returns the {@link NamingContext} that created this name. - * In order for a name to implement both the {@link Name} interface and - * the Java interface of the object it designates, the methods of these two - * interfaces must have distinct names. To increase the probability of this - * case, this method has been named "getNamingContext" instead of - * "getContext", since "getNamingContext" is less frequent than "getContext". - * - * @return the {@link NamingContext} that created this name. - */ - - NamingContext getNamingContext (); - - /** - * Encodes this name as an array of bytes. This method can be used to send - * names over a network, or to store them on disk. - * - * @return an encoded form of this name. - * @throws NamingException if this name can not be encoded (this is the case, - * for example, of names that are only valid inside a given Java Virtual - * Machine, and that can therefore not be sent over a network or stored - * on a disk). - */ - - byte[] encode () throws NamingException; -} diff --git a/fractal/src/org/objectweb/naming/NamingContext.java b/fractal/src/org/objectweb/naming/NamingContext.java deleted file mode 100644 index 5fd454c86f7733c100b0db4b9f7152ccc578e73a..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/NamingContext.java +++ /dev/null @@ -1,59 +0,0 @@ -/*** - * Objectweb naming framework API - * Copyright (C) 2001-2002 France Telecom - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: architecture@objectweb.org - */ - -package org.objectweb.naming; - -/** - * A naming context creates and manages names. - */ - -public interface NamingContext { - - /** - * Creates a name in this naming context to designate the given object. The - * {@link Name#getNamingContext getNamingContext} method of the returned name - * will return this naming context, i.e., - * nc.export(o, hints).getNamingContext() == nc. - * - * @param o the object to be exported. This object may be a name of another - * naming context. - * @param hints optional additional information. - * @return a name that designates the given object in this naming context. - * @throws NamingException if the given object cannot be exported. - */ - - Name export (Object o, Object hints) throws NamingException; - - /** - * Decodes the given encoded name. The {@link Name#getNamingContext - * getNamingContext} method of the returned name will return this naming - * context, i.e., nc.decode(b).getNamingContext() == nc. - * - * @param b an array of byte containing the encoded form of a name created by - * this naming context. - * @return the decoded {@link Name} object. - * @throws NamingException if the given encoded name cannot be decoded (this - * is the case, for example, if the given encoded name was not created by - * this naming context). - */ - - Name decode (byte[] b) throws NamingException; -} diff --git a/fractal/src/org/objectweb/naming/NamingException.java b/fractal/src/org/objectweb/naming/NamingException.java deleted file mode 100644 index 3615972e76dfd511644b76ab61a7175e08fddfe4..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/NamingException.java +++ /dev/null @@ -1,40 +0,0 @@ -/*** - * Objectweb naming framework API - * Copyright (C) 2001-2002 France Telecom - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: architecture@objectweb.org - */ - -package org.objectweb.naming; - -/** - * Thrown when a name can not be created, encoded, decoded, bound, and so on. - */ - -public class NamingException extends Exception { - - /** - * Constructs an {@link NamingException} with the specified - * detail message. - * - * @param msg the detail message. - */ - - public NamingException (final String msg) { - super(msg); - } -} diff --git a/fractal/src/org/objectweb/naming/overview.html b/fractal/src/org/objectweb/naming/overview.html deleted file mode 100644 index f53c984bd08ef0400bd6df12688e919c43756dd2..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/overview.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -DO NOT REMOVE THIS LINE (will be automatically removed). - - \ No newline at end of file diff --git a/fractal/src/org/objectweb/naming/package.html b/fractal/src/org/objectweb/naming/package.html deleted file mode 100644 index 9a690a084d5e3b589eaf3d02a3ff020467c8ba87..0000000000000000000000000000000000000000 --- a/fractal/src/org/objectweb/naming/package.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -Specifies the Objectweb naming framework API. -@since Fractal 1.0.5 - - diff --git a/fractalgui/README.txt b/fractalgui/README.txt deleted file mode 100644 index e2338b0f6f242af515583694eb101ee2ff749c44..0000000000000000000000000000000000000000 --- a/fractalgui/README.txt +++ /dev/null @@ -1,17 +0,0 @@ -This directory is the base directory of the product. -It contains(*) the following items: - -- archive: ant files to build the jar(s) of the product, -- build.properties: properties to configure the build process, -- build.xml: main ant file to build the product, -- config: external libraries required only for building the product, -- doc: documentation of the product, -- etc: scripts to run the product, -- examples: examples of use of the product, -- externals: external libraires required for running the product, -- jdoc: ant files to build the javadoc documentation(s) of the product, -- sr': sources of the product, -- test: tests of the product, -- web: source of the web site of the product. - -(*) some items may not be present, depending on the product. diff --git a/fractalgui/archive/README.txt b/fractalgui/archive/README.txt deleted file mode 100644 index e0d72a77eeab2c75774e256e42b338274737fa5d..0000000000000000000000000000000000000000 --- a/fractalgui/archive/README.txt +++ /dev/null @@ -1,30 +0,0 @@ -This directory contains ant files to build the jars of the product. -The following rules describe the convention to write such files: - -- An ant file must build only one jar file. - -- The name of the ant file must be the name of the jar it builds: - org-foo-bar.xml must build org-foo-bar.jar. - -- Among the elements which are included into a jar, you must specify - a manifest. It is adviced to store the manifest file in this directory. - The manifest file can be shared by several jars. The name of the manifest - file must be similar to the name of the jar file. - -- Only the default task is called on each ant file. - -- The jar file must be produced into the ${dist.lib} directory. - -Sample ant file: - - - - - - ... - - - - diff --git a/fractalgui/archive/fractal-gui.mf b/fractalgui/archive/fractal-gui.mf deleted file mode 100644 index a0eea86e6ce9e93db3cce3397e5902cfdd688b1d..0000000000000000000000000000000000000000 --- a/fractalgui/archive/fractal-gui.mf +++ /dev/null @@ -1,5 +0,0 @@ -Manifest-Version: 1.0 -Implementation-Title: "Fractal GUI" -Implementation-Version: "2.0" -Implementation-Vendor: "France Telecom R&D" -Main-Class: org.objectweb.fractal.gui.FractalGUI \ No newline at end of file diff --git a/fractalgui/archive/fractal-gui.xml b/fractalgui/archive/fractal-gui.xml deleted file mode 100644 index 5a88c3087b8b5cc3e75c3036dc3ac63cfdd1989c..0000000000000000000000000000000000000000 --- a/fractalgui/archive/fractal-gui.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - diff --git a/fractalgui/build.config b/fractalgui/build.config deleted file mode 100644 index 0973e5e38f0a8eccb08c2f6a90282f6922872cd3..0000000000000000000000000000000000000000 --- a/fractalgui/build.config +++ /dev/null @@ -1,16 +0,0 @@ -# Defines values for the 'build.properties' build properties -# This file is used to build the project in the case of bundled external jars - -objectweb.ant.tasks.path config/ow_util_ant_tasks.jar - -asm.path externals/asm.jar - -fractal.path externals/fractal.jar - -fractaladl.path externals/fractal-adl.jar:externals/dtdparser.jar:externals/ow_deployment_scheduling.jar - -fractalrmi.path externals/fractal-rmi.jar:externals/fractal-rmi-tmpl.jar:externals/jonathan.jar - -fractalswing.path externals/fractal-swing.jar - -svggraphics.path externals/SVGGraphics.jar diff --git a/fractalgui/build.properties b/fractalgui/build.properties deleted file mode 100644 index c2732978cddb2cf4fcdf57b706771d5cec9d15a0..0000000000000000000000000000000000000000 --- a/fractalgui/build.properties +++ /dev/null @@ -1,70 +0,0 @@ -############################################################################### -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -############################################################################### - -# Some information about the product - -product.name fractalgui -product.version 0.3 - -############################################################################### -# BUILD -############################################################################### - -# Wich compiler do you want to use ? -# jikes is faster than javac but keeps line numbers in compiled classes, even -# with the -O option (javac removes line numbers and local variable names with -# this option, resulting in smaller classes) - -# build.compiler jikes - -# Build class path (classes needed to build the project) -# Classpath for the ObjectWeb utility Ant tasks (OWANTTASK_1_1) -# See http://forge.objectweb.org/projects/monolog - -# objectweb.ant.tasks.path ow_util_ant_tasks.jar - -############################################################################### -# EXTERNAL LIBRARIES -############################################################################### - -# Class path for the ASM library (ASM_1_4_2) -# See http://asm.objectweb.org - -# asm.path asm.jar - -# Class path for the Fractal API (FRACTAl_API_2_0) -# See http://fractal.objectweb.org - -# fractal.path fractal.jar - -# Class path for the FractalADL parser (version 1.0) -# See http://fractal.objectweb.org - -# fractaladl.path fractal-adl.jar - -# Class path for the FractalRMI ORB (version 0.1) -# See http://fractal.objectweb.org - -# fractalrmi.path fractal-rmi.jar:fractal-rmi-tmpl.jar:jonathan.jar - -# Class path for the FractalSwing Components (FRACTAL_SWING_0_2) -# See http://fractal.objectweb.org - -# fractalswing.path fractal-swing.jar - -# Class path for the SVGGraphics library (version ?) - -# svggraphics.path SVGGraphics.jar diff --git a/fractalgui/build.xml b/fractalgui/build.xml deleted file mode 100644 index 7fa04b2feeff794dd41e5486df16ca5f513e1da7..0000000000000000000000000000000000000000 --- a/fractalgui/build.xml +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/config/README.txt b/fractalgui/config/README.txt deleted file mode 100644 index 4978babb44fb4f93c7d819e50bedad09c7086b79..0000000000000000000000000000000000000000 --- a/fractalgui/config/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -This directory contains the external libraries required for building the -product, but which are not necessary to use it. diff --git a/fractalgui/config/ow_util_ant_tasks.jar b/fractalgui/config/ow_util_ant_tasks.jar deleted file mode 100644 index 4a502465e2d690a80931068d96563d895d9cb5b5..0000000000000000000000000000000000000000 Binary files a/fractalgui/config/ow_util_ant_tasks.jar and /dev/null differ diff --git a/fractalgui/doc/README.txt b/fractalgui/doc/README.txt deleted file mode 100644 index 84303fee616679f69995c94e1dd7d4198b338d64..0000000000000000000000000000000000000000 --- a/fractalgui/doc/README.txt +++ /dev/null @@ -1 +0,0 @@ -This directory contains the documentation of the product. diff --git a/fractalgui/doc/javadoc/figures/collections.fig b/fractalgui/doc/javadoc/figures/collections.fig deleted file mode 100644 index 683ed3db357b98ee2c2aefdddffffedad54030be..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/collections.fig +++ /dev/null @@ -1,85 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -Letter -100.00 -Single --2 -1200 2 -0 32 #808080 -0 33 #bab7ba -6 3330 2475 4140 2745 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 2610 127 127 3465 2610 3592 2610 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 2610 127 127 4005 2610 4132 2610 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 2520 3915 2520 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 2700 3555 2700 --6 -6 3330 2880 4140 3150 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 3015 127 127 3465 3015 3592 3015 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 3015 127 127 4005 3015 4132 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 2925 3915 2925 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 3105 3555 3105 --6 -6 3330 3195 4140 3465 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 3330 127 127 3465 3330 3592 3330 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 3330 127 127 4005 3330 4132 3330 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 3240 3915 3240 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 3420 3555 3420 --6 -6 3330 3510 4140 3780 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 3645 127 127 3465 3645 3592 3645 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 3645 127 127 4005 3645 4132 3645 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 3555 3915 3555 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 3735 3555 3735 --6 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 2880 2340 3600 2340 3600 4140 2880 4140 2880 2340 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 2790 2070 3870 2070 3870 4410 2790 4410 2790 2070 -2 2 0 0 0 7 49 -1 20 0.000 0 0 -1 0 0 5 - 2655 1980 3015 1980 3015 4500 2655 4500 2655 1980 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 4 - 0 0 1.00 60.00 120.00 - 4140 3015 4320 3015 4320 2835 4140 2655 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 4 - 0 0 1.00 60.00 120.00 - 4140 3330 4365 3330 4365 2835 4140 2610 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 4 - 0 0 1.00 60.00 120.00 - 4140 3645 4410 3645 4410 2835 4140 2565 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 1 0 4 - 0 0 1.00 60.00 120.00 - 4140 2565 4635 2565 4635 3690 4140 3690 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 4140 3375 4635 3375 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 4140 3060 4635 3060 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 7 - 4815 2475 4860 2520 4860 2565 4905 2610 4860 2655 4860 2700 - 4815 2745 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 7 - 4815 2880 4860 2925 4860 3285 4905 3330 4860 3375 4860 3735 - 4815 3780 -4 0 0 50 -1 0 12 0.0000 4 120 1080 4950 3375 slave interfaces\001 -4 0 0 50 -1 0 12 0.0000 4 120 1110 4950 2655 master interface\001 -4 0 1 50 -1 0 10 0.0000 4 105 360 4230 2520 slaves\001 -4 0 0 50 -1 0 10 1.5708 4 90 390 4545 3645 master\001 diff --git a/fractalgui/doc/javadoc/figures/collections.gif b/fractalgui/doc/javadoc/figures/collections.gif deleted file mode 100644 index 2597dc89ab415de6a96a8b1a996cb4806030d009..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/collections.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/crenderer.fig b/fractalgui/doc/javadoc/figures/crenderer.fig deleted file mode 100644 index 1f28fa2510956e38b338205c5760b9b8aaf4f180..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/crenderer.fig +++ /dev/null @@ -1,141 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -A4 -100.00 -Single --2 -1200 2 -6 3735 2205 4680 3150 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 2340 4545 2340 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 2340 3915 3015 -4 0 0 50 -1 0 12 0.0000 4 75 90 4590 2295 x\001 -4 0 0 50 -1 0 12 0.0000 4 120 90 3735 3105 y\001 --6 -1 3 0 1 0 0 50 -1 20 0.000 1 0.0000 4680 3150 45 45 4680 3150 4725 3150 -1 3 0 1 0 0 50 -1 20 0.000 1 0.0000 9720 7200 45 45 9720 7200 9765 7200 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 7380 3600 7380 3150 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 9000 5715 9450 5715 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 5220 7020 4950 7020 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 4680 7020 4140 7020 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4680 7020 4950 7020 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 9180 7020 9450 7020 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 9720 7020 10260 7020 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 9450 7020 9720 7020 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 3915 3690 5175 3690 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 3915 4590 5175 4590 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 3915 5490 5175 5490 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 3960 3690 3960 4590 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 3960 4590 3960 5490 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 5535 3825 7560 3825 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 5535 4455 7560 4455 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 7380 3825 7380 4455 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 5850 5175 5850 7920 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 5670 5175 5670 7695 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 5850 5895 6705 5895 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 5445 5895 5670 5895 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5670 5895 5850 5895 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5400 6435 5670 6435 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 5175 6435 5400 6435 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 5670 6435 6210 6435 -2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 4950 3150 9450 3150 9450 7200 4950 7200 4950 3150 -2 2 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 5400 3600 9000 3600 9000 6750 5400 6750 5400 3600 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4950 5040 4680 5040 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5670 3825 5670 4455 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5670 4140 5400 4140 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5670 5040 5400 5040 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5670 4725 5670 5355 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4950 4140 4680 4140 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4680 4725 4680 5355 -2 1 0 3 0 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4680 3825 4680 4455 -2 2 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 5 - 4680 3150 9720 3150 9720 7200 4680 7200 4680 3150 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 5400 6660 5400 7515 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 4680 7425 5400 7425 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 4680 7605 5670 7605 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 2 - 0 0 1.00 60.00 120.00 - 0 0 1.00 60.00 120.00 - 4680 7785 5850 7785 -2 1 2 1 0 7 50 -1 -1 3.000 0 0 -1 0 0 2 - 4680 7200 4680 7920 -4 0 0 50 -1 0 12 0.0000 4 120 765 7470 3420 borderSize\001 -4 0 0 50 -1 0 12 1.5708 4 120 765 9270 5625 borderSize\001 -4 1 0 50 -1 0 12 0.0000 4 150 345 4680 2970 (0,0)\001 -4 1 0 50 -1 0 12 0.0000 4 150 390 9720 7470 (w,h)\001 -4 0 0 50 -1 0 12 0.0000 4 120 315 4185 6930 itfW\001 -4 2 0 50 -1 0 12 0.0000 4 120 315 10215 6930 itfW\001 -4 0 0 50 -1 0 30 0.0000 4 210 1095 5850 4275 server\001 -4 0 0 50 -1 0 30 0.0000 4 315 1305 5850 5175 listener\001 -4 0 0 50 -1 0 12 0.0000 4 120 285 7470 4185 itfH\001 -4 0 0 50 -1 0 12 1.5708 4 120 360 3825 5265 divH\001 -4 0 0 50 -1 0 12 1.5708 4 120 360 3825 4365 divH\001 -4 2 0 50 -1 0 12 0.0000 4 120 615 6660 5805 INSETS\001 -4 2 0 50 -1 0 12 0.0000 4 120 315 6165 6345 itfW\001 -4 0 0 50 -1 0 12 0.0000 4 120 315 4275 7425 bw1\001 -4 0 0 50 -1 0 12 0.0000 4 120 315 4275 7605 bw2\001 -4 0 0 50 -1 0 12 0.0000 4 120 315 4275 7785 bw3\001 diff --git a/fractalgui/doc/javadoc/figures/crenderer.gif b/fractalgui/doc/javadoc/figures/crenderer.gif deleted file mode 100644 index 6b40f32df15e5ff90bf3c54c91fe245323f97201..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/crenderer.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/deletion.fig b/fractalgui/doc/javadoc/figures/deletion.fig deleted file mode 100644 index 8396a4bb76f21e2199ec1e9b914a759f58360947..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/deletion.fig +++ /dev/null @@ -1,142 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -Letter -100.00 -Single --2 -1200 2 -0 32 #808080 -0 33 #bab7ba -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 765 2925 127 127 765 2925 892 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 1305 2925 127 127 1305 2925 1432 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 2925 2925 127 127 2925 2925 3052 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 2385 2925 127 127 2385 2925 2512 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 2925 127 127 3465 2925 3592 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 2925 127 127 4005 2925 4132 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 -540 2925 127 127 -540 2925 -413 2925 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 1035 2205 127 127 1035 2205 1162 2205 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 3735 2205 127 127 3735 2205 3862 2205 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 -270 1440 127 127 -270 1440 -143 1440 -1 3 0 1 1 7 50 -1 -1 0.000 1 0.0000 3195 2475 127 127 3195 2475 3322 2475 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 -1215 585 127 127 -1215 585 -1088 585 -1 3 0 1 12 7 50 -1 -1 0.000 0 -0.0000 45 2925 127 127 45 2925 172 2925 -1 3 0 1 1 7 50 -1 -1 0.000 1 0.0000 405 2520 127 127 405 2520 532 2520 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 3870 2340 5220 2340 5220 3510 3870 3510 3870 2340 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 3600 2070 5490 2070 5490 3780 3600 3780 3600 2070 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 900 2070 2790 2070 2790 3780 900 3780 900 2070 -2 2 1 1 32 7 54 0 -1 4.000 0 0 -1 0 0 5 - -90 1575 5985 1575 5985 4185 -90 4185 -90 1575 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 1170 2340 2520 2340 2520 3510 1170 3510 1170 2340 -2 2 1 1 32 33 55 0 -1 4.000 0 0 -1 0 0 5 - -405 1305 6255 1305 6255 4455 -405 4455 -405 1305 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -1125 675 -405 1305 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 176 2921 405 2655 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 405 2655 630 2925 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -450 2835 -45 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -45 3015 -450 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -540 2790 -270 1575 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 0 2790 -270 1575 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 765 2790 1035 2340 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1305 2790 1035 2340 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 855 2835 1215 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1215 3015 855 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2475 2835 2835 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2835 3015 2475 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 2835 3915 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 3015 3555 3015 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 3015 2835 3191 2607 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3195 2610 3375 2835 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2392 2794 1125 2295 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2918 2794 1125 2295 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3458 2786 3728 2336 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 4012 2786 3742 2336 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2921 2786 3105 2565 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 945 2115 -180 1530 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3645 2115 -180 1530 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 765 2790 540 2520 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -270 1305 -270 675 -1080 675 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3735 2070 3735 585 -1080 585 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -405 1440 -540 1440 -540 2700 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3600 2205 3465 2205 3465 2745 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 900 2205 765 2205 765 2745 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -135 1440 3690 1440 3690 2025 -2 1 0 3 31 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 990 1440 990 2025 -2 2 0 0 -1 7 51 -1 20 0.000 0 0 -1 0 0 5 - 990 1395 1080 1395 1080 1485 990 1485 990 1395 -2 1 0 1 0 7 52 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 1035 2070 1035 630 -1080 630 -2 1 0 3 31 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 45 2790 270 2520 -2 1 0 3 31 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 3465 2790 3285 2565 -4 0 0 50 -1 0 12 1.5708 4 120 1185 180 2610 deleted reference\001 diff --git a/fractalgui/doc/javadoc/figures/deletion.gif b/fractalgui/doc/javadoc/figures/deletion.gif deleted file mode 100644 index fb0cd8b16129027de643207d88dc618f3c77bef9..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/deletion.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/fractalgui-model.fig b/fractalgui/doc/javadoc/figures/fractalgui-model.fig deleted file mode 100644 index 5a1b1434a7dca02407d7ce35fe61060f27888ff7..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/fractalgui-model.fig +++ /dev/null @@ -1,168 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -Letter -100.00 -Single --2 -1200 2 -0 32 #808080 -0 33 #bab7ba -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 765 2925 127 127 765 2925 892 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 1305 2925 127 127 1305 2925 1432 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 2925 2925 127 127 2925 2925 3052 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 2385 2925 127 127 2385 2925 2512 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 2925 127 127 3465 2925 3592 2925 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 4005 2925 127 127 4005 2925 4132 2925 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 -540 2925 127 127 -540 2925 -413 2925 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 1035 2205 127 127 1035 2205 1162 2205 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 3735 2205 127 127 3735 2205 3862 2205 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 -270 1440 127 127 -270 1440 -143 1440 -1 3 0 1 1 7 50 -1 -1 0.000 1 0.0000 3195 2475 127 127 3195 2475 3322 2475 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 -1215 585 127 127 -1215 585 -1088 585 -1 3 0 1 12 7 50 -1 -1 0.000 0 -0.0000 45 2925 127 127 45 2925 172 2925 -1 3 0 1 1 7 50 -1 -1 0.000 1 0.0000 405 2520 127 127 405 2520 532 2520 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 3870 2340 5220 2340 5220 3510 3870 3510 3870 2340 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 3600 2070 5490 2070 5490 3780 3600 3780 3600 2070 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 900 2070 2790 2070 2790 3780 900 3780 900 2070 -2 2 1 1 32 7 54 0 -1 4.000 0 0 -1 0 0 5 - -90 1575 5985 1575 5985 4185 -90 4185 -90 1575 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 1170 2340 2520 2340 2520 3510 1170 3510 1170 2340 -2 2 1 1 32 33 55 0 -1 4.000 0 0 -1 0 0 5 - -405 1305 6255 1305 6255 4455 -405 4455 -405 1305 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -1125 675 -405 1305 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 176 2921 405 2655 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 405 2655 630 2925 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 45 2790 270 2520 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -450 2835 -45 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -45 3015 -450 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - -540 2790 -270 1575 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 0 2790 -270 1575 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 765 2790 1035 2340 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1305 2790 1035 2340 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 855 2835 1215 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 1215 3015 855 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2475 2835 2835 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2835 3015 2475 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3555 2835 3915 2835 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3915 3015 3555 3015 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 0 1 2 - 0 0 1.00 60.00 120.00 - 3015 2835 3191 2607 -2 1 0 1 1 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3195 2610 3375 2835 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2392 2794 1125 2295 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2918 2794 1125 2295 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3458 2786 3728 2336 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 4012 2786 3742 2336 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2921 2786 3105 2565 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 945 2115 -180 1530 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3645 2115 -180 1530 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 765 2790 540 2520 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3465 2790 3285 2565 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -270 1305 -270 675 -1080 675 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3735 2070 3735 585 -1080 585 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -405 1440 -540 1440 -540 2700 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3600 2205 3465 2205 3465 2745 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 900 2205 765 2205 765 2745 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - -135 1440 3690 1440 3690 2025 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 990 1440 990 2025 -2 2 0 0 -1 7 51 -1 20 0.000 0 0 -1 0 0 5 - 990 1395 1080 1395 1080 1485 990 1485 990 1395 -2 1 0 1 0 7 52 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 1035 2070 1035 630 -1080 630 -4 0 0 50 -1 0 12 0.0000 4 165 825 1215 2250 Component\001 -4 0 0 50 -1 0 12 0.0000 4 165 825 3915 2250 Component\001 -4 2 1 50 -1 0 10 1.5708 4 105 510 585 2925 server itf\001 -4 2 1 50 -1 0 10 1.5708 4 105 495 360 2925 client itf\001 -4 0 1 50 -1 0 12 1.5708 4 165 570 3240 2295 Binding\001 -4 0 1 50 -1 0 12 1.5708 4 165 570 450 2340 Binding\001 -4 2 12 50 -1 0 12 1.5708 4 120 1035 4095 3105 ClientInterface\001 -4 2 4 50 -1 0 12 1.5708 4 120 1080 3510 3105 ServerInterface\001 -4 2 12 50 -1 0 10 1.5708 4 135 1080 2745 3105 complementary itf\001 -4 0 4 50 -1 0 10 1.5708 4 135 1080 2700 2745 complementary itf\001 -4 2 12 50 -1 0 10 0.0000 4 60 360 -90 2700 owner\001 -4 0 0 50 -1 0 10 0.0000 4 90 240 -675 990 root\001 -4 0 0 50 -1 0 12 0.0000 4 165 990 -1080 495 Configuration\001 -4 0 0 50 -1 0 10 0.0000 4 60 360 -225 990 owner\001 -4 0 0 50 -1 0 10 0.0000 4 60 360 1080 990 owner\001 -4 0 0 50 -1 0 10 0.0000 4 60 360 3780 990 owner\001 -4 2 0 50 -1 0 10 1.5708 4 120 360 45 1710 parent\001 -4 0 12 50 -1 0 10 1.5708 4 135 525 720 2565 bindings\001 -4 0 12 50 -1 0 10 1.5708 4 135 465 225 2565 binding\001 -4 0 0 50 -1 0 10 1.5708 4 105 570 -585 2340 server itfs\001 -4 2 4 50 -1 0 10 0.0000 4 60 360 -585 2700 owner\001 -4 0 0 50 -1 0 12 0.0000 4 165 825 -135 1350 Component\001 -4 0 0 50 -1 0 10 1.5708 4 120 360 3510 2070 parent\001 -4 0 0 50 -1 0 10 0.0000 4 135 960 1485 1395 sub components\001 diff --git a/fractalgui/doc/javadoc/figures/fractalgui-model.gif b/fractalgui/doc/javadoc/figures/fractalgui-model.gif deleted file mode 100644 index 3a8caa3cc94c12f29fd6bf0671e15c564336c338..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/fractalgui-model.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/mvc-synchro.fig b/fractalgui/doc/javadoc/figures/mvc-synchro.fig deleted file mode 100644 index ceb81627c3f7ac3f02e4121fa4adb1c3c306315c..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/mvc-synchro.fig +++ /dev/null @@ -1,69 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -A4 -100.00 -Single --2 -1200 2 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 6 - 0 0 1.00 60.00 120.00 - 6660 3330 6885 3330 6885 2700 540 2700 540 3105 720 3285 -2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 900 3150 2025 3150 2025 4050 900 4050 900 3150 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 810 3195 810 3465 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 900 3330 810 3330 -2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 5400 3150 6525 3150 6525 4050 5400 4050 5400 3150 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5310 3195 5310 3465 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5400 3330 5310 3330 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 810 3600 810 3870 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 900 3735 810 3735 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5310 3600 5310 3870 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5400 3735 5310 3735 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2160 3735 5265 3735 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2160 3330 5265 3330 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3735 2025 3735 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3600 2115 3870 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3195 2115 3465 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3330 2025 3330 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3735 6525 3735 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3600 6615 3870 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3195 6615 3465 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3330 6525 3330 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 6 - 0 0 1.00 60.00 120.00 - 6660 3735 6885 3735 6885 4365 540 4365 540 3960 720 3780 -4 0 0 50 -1 2 12 0.0000 4 135 480 945 3375 model\001 -4 2 0 50 -1 0 12 0.0000 4 120 255 585 3375 M1\001 -4 0 0 50 -1 2 12 0.0000 4 135 480 5445 3375 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 735 945 3780 m2listener\001 -4 0 0 50 -1 0 12 0.0000 4 120 735 5445 3780 m1listener\001 -4 0 0 50 -1 0 12 0.0000 4 120 585 6660 3690 listeners\001 -4 0 0 50 -1 0 12 0.0000 4 120 435 6660 3465 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 435 2160 3465 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 585 2160 3690 listeners\001 -4 2 0 50 -1 0 12 0.0000 4 120 255 5220 3555 M2\001 -4 2 0 50 -1 0 12 0.0000 4 120 825 5220 3960 M1Listener\001 -4 2 0 50 -1 0 12 0.0000 4 120 825 585 3780 M2Listener\001 diff --git a/fractalgui/doc/javadoc/figures/mvc-synchro.gif b/fractalgui/doc/javadoc/figures/mvc-synchro.gif deleted file mode 100644 index 356da49d1e78f954084d32958d54f4805763328a..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/mvc-synchro.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/mvc.fig b/fractalgui/doc/javadoc/figures/mvc.fig deleted file mode 100644 index 9f097d45106c1c0fd2821b027a539f925193e61f..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/mvc.fig +++ /dev/null @@ -1,77 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -A4 -100.00 -Single --2 -1200 2 -2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 900 3150 2025 3150 2025 4050 900 4050 900 3150 -2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 5400 3150 6525 3150 6525 4050 5400 4050 5400 3150 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 4410 5580 5265 3690 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 6 - 0 0 1.00 60.00 120.00 - 6660 3330 6885 3330 6885 2700 540 2700 540 3105 720 3285 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 2160 3330 3015 5580 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 6 - 0 0 1.00 60.00 120.00 - 4410 5940 4590 5940 4590 6750 540 6750 540 3555 720 3375 -2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5 - 3150 5400 4275 5400 4275 6300 3150 6300 3150 5400 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3330 2025 3330 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 2115 3195 2115 3465 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4365 5580 4275 5580 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4365 5445 4365 5715 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4365 5940 4275 5940 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 4365 5805 4365 6075 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3330 6525 3330 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6615 3195 6615 3465 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 3060 5760 3060 6030 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 3150 5895 3060 5895 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 3060 5445 3060 5715 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 3150 5580 3060 5580 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5310 3195 5310 3465 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5400 3330 5310 3330 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5400 3690 5310 3690 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 5310 3555 5310 3825 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 810 3195 810 3465 -2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 900 3330 810 3330 -4 0 0 50 -1 2 12 0.0000 4 135 480 945 3375 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 600 5445 3735 vlistener\001 -4 0 0 50 -1 2 12 0.0000 4 135 795 5445 3375 controller\001 -4 2 0 50 -1 0 12 0.0000 4 120 120 5220 3375 C\001 -4 2 0 50 -1 0 12 0.0000 4 120 705 5220 3735 VListener\001 -4 2 0 50 -1 0 12 0.0000 4 120 165 585 3375 M\001 -4 2 0 50 -1 0 12 0.0000 4 120 735 2970 5625 MListener\001 -4 2 0 50 -1 0 12 0.0000 4 120 135 2970 5940 V\001 -4 0 0 50 -1 2 12 0.0000 4 135 375 3195 5940 view\001 -4 0 0 50 -1 0 12 0.0000 4 120 585 2205 3330 listeners\001 -4 0 0 50 -1 0 12 0.0000 4 120 585 4455 5715 listeners\001 -4 0 0 50 -1 0 12 0.0000 4 120 435 4455 5895 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 435 6705 3465 model\001 -4 0 0 50 -1 0 12 0.0000 4 120 645 3195 5625 mlistener\001 diff --git a/fractalgui/doc/javadoc/figures/mvc.gif b/fractalgui/doc/javadoc/figures/mvc.gif deleted file mode 100644 index e5eb7443d962b9056d9b3ceb2bab9d4f0dd09c6b..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/mvc.gif and /dev/null differ diff --git a/fractalgui/doc/javadoc/figures/sharing.fig b/fractalgui/doc/javadoc/figures/sharing.fig deleted file mode 100644 index c8e17f05ebfcc68d22f1921b63b8228d89ca73de..0000000000000000000000000000000000000000 --- a/fractalgui/doc/javadoc/figures/sharing.fig +++ /dev/null @@ -1,77 +0,0 @@ -#FIG 3.2 -Landscape -Center -Metric -Letter -100.00 -Single --2 -1200 2 -0 32 #808080 -0 33 #bab7ba -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 3465 5355 127 127 3465 5355 3592 5355 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 3735 4635 127 127 3735 4635 3862 4635 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 6390 5355 127 127 6390 5355 6517 5355 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 6660 4635 127 127 6660 4635 6787 4635 -1 3 0 1 4 7 50 -1 -1 0.000 1 0.0000 4815 2880 127 127 4815 2880 4942 2880 -1 3 0 1 12 7 50 -1 -1 0.000 1 0.0000 5355 2880 127 127 5355 2880 5482 2880 -1 3 0 1 0 7 50 -1 -1 0.000 1 0.0000 5085 2160 127 127 5085 2160 5212 2160 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 3600 4500 5490 4500 5490 6210 3600 6210 3600 4500 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 3458 5216 3728 4766 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3600 4635 3465 4635 3465 5175 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 6525 4500 8415 4500 8415 6210 6525 6210 6525 4500 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 6383 5216 6653 4766 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 6525 4635 6390 4635 6390 5175 -2 2 1 1 32 7 51 0 -1 4.000 0 0 -1 0 0 5 - 5220 2295 6570 2295 6570 3465 5220 3465 5220 2295 -2 2 1 1 32 33 53 0 -1 4.000 0 0 -1 0 0 5 - 4950 2025 6840 2025 6840 3735 4950 3735 4950 2025 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 4905 2790 5265 2790 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 5265 2970 4905 2970 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 4808 2741 5078 2291 -2 1 0 1 12 7 50 -1 -1 0.000 0 0 -1 1 0 2 - 0 0 1.00 60.00 120.00 - 5362 2741 5092 2291 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 4950 2205 4815 2205 4815 2700 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 5085 4230 6660 4230 6660 4500 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3735 4500 3735 2160 4950 2160 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 4 - 0 0 1.00 60.00 120.00 - 5085 2295 5085 4230 3780 4230 3780 4500 -2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 6705 4500 6705 2160 5220 2160 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 1 0 3 - 0 0 1.00 60.00 120.00 - 3600 5355 4815 5355 4815 3015 -2 1 0 1 4 7 50 -1 -1 0.000 0 0 -1 0 0 2 - 6255 5355 4815 5355 -4 1 0 50 -1 0 12 0.0000 4 165 1260 5085 4365 slave components\001 -4 0 0 50 -1 0 12 1.5708 4 150 1290 3690 3825 master component\001 -4 0 0 50 -1 0 12 1.5708 4 150 1290 6660 3825 master component\001 -4 1 4 50 -1 0 12 0.0000 4 120 1110 4815 5535 master interface\001 -4 0 4 50 -1 0 10 0.0000 4 60 360 3600 5130 owner\001 -4 0 4 50 -1 0 10 0.0000 4 60 360 6525 5130 owner\001 -4 0 4 50 -1 0 10 0.0000 4 60 360 4950 2655 owner\001 diff --git a/fractalgui/doc/javadoc/figures/sharing.gif b/fractalgui/doc/javadoc/figures/sharing.gif deleted file mode 100644 index e59ee36afd22331f27842fdcc0da06ec81377b9b..0000000000000000000000000000000000000000 Binary files a/fractalgui/doc/javadoc/figures/sharing.gif and /dev/null differ diff --git a/fractalgui/examples/common/README.txt b/fractalgui/examples/common/README.txt deleted file mode 100644 index 453bc6f610990e2408c5d483d7c2c4bedbc563ff..0000000000000000000000000000000000000000 --- a/fractalgui/examples/common/README.txt +++ /dev/null @@ -1,11 +0,0 @@ -This directory contains the examples. Its organization is the following: -- 'lib' directory (optional): jar files shared by all examples, -- 'etc' directory: configuration files shared by all examples, -- 'README' file: explains the organisation of the examples directory, -- Each other directory contains an example. - -The organization of each example directory is the following: -- 'README' file: describes the example and its configuration, -- 'lib' directory (optional): jar files needed by the example, -- 'etc' directory: configuration files needed by the example, -- 'src' directory: source code of the example. diff --git a/fractalgui/examples/common/build.xml b/fractalgui/examples/common/build.xml deleted file mode 100644 index 5db662ad722a9ba9929bbd2606d3afa8b9c0a326..0000000000000000000000000000000000000000 --- a/fractalgui/examples/common/build.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/common/etc/build.properties b/fractalgui/examples/common/etc/build.properties deleted file mode 100644 index 7ce2750c5208a2c8f11ddb4c4848b1ff5ce5a607..0000000000000000000000000000000000000000 --- a/fractalgui/examples/common/etc/build.properties +++ /dev/null @@ -1,42 +0,0 @@ -# Wich compiler do you want use ? - -build.compiler jikes - -# Class path for the ASM library (ASM_1_4_2) -# See http://asm.objectweb.org - -asm.path ../../externals/asm.jar - -# Class path for the Fractal API (FRACTAL_API_2_0) -# See http://fractal.objectweb.org - -fractal.path ../../externals/fractal.jar - -# Class path of Julia (JULIA_2_0) -# See http://fractal.objectweb.org - -julia.path ../lib/julia-asm.jar:../lib/julia-mixins.jar:../lib/julia-runtime.jar - -# Class path for the FractalADL parser (version 1.0) -# See http://fractal.objectweb.org - -fractaladl.path ../../externals/fractal-adl.jar:../../externals/ow_deployment_scheduling.jar:../../externals/dtdparser.jar - -# Class path for the FractalRMI ORB (version 0.1) -# See http://fractal.objectweb.org - -fractalrmi.path ../../externals/fractal-rmi.jar:../../externals/fractal-rmi-tmpl.jar:../../externals/jonathan.jar - -# Class path for the FractalSwing Components (FRACTAL_SWING_0_2) -# See http://fractal.objectweb.org - -fractalswing.path ../../externals/fractal-swing.jar - -# Class path for the SVGGraphics library (version ?) - -svggraphics.path ../../externals/SVGGraphics.jar - -# Class path for FractalGUI (FRACTAL_GUI_0_3) -# See http://fractal.objectweb.org - -fractalgui.path ../../lib/fractal-gui.jar \ No newline at end of file diff --git a/fractalgui/examples/common/lib/julia-asm.jar b/fractalgui/examples/common/lib/julia-asm.jar deleted file mode 100644 index 6a8a7de3de4e80f6315aae586593b3bd0bc57b72..0000000000000000000000000000000000000000 Binary files a/fractalgui/examples/common/lib/julia-asm.jar and /dev/null differ diff --git a/fractalgui/examples/common/lib/julia-mixins.jar b/fractalgui/examples/common/lib/julia-mixins.jar deleted file mode 100644 index 44af2f6006db94f97907c525be68dd9433cb6e1e..0000000000000000000000000000000000000000 Binary files a/fractalgui/examples/common/lib/julia-mixins.jar and /dev/null differ diff --git a/fractalgui/examples/common/lib/julia-runtime.jar b/fractalgui/examples/common/lib/julia-runtime.jar deleted file mode 100644 index b416b02e98d6e6c2433916f0be1c025a9bb1ac2b..0000000000000000000000000000000000000000 Binary files a/fractalgui/examples/common/lib/julia-runtime.jar and /dev/null differ diff --git a/fractalgui/examples/fractalgui/build.xml b/fractalgui/examples/fractalgui/build.xml deleted file mode 100644 index a375e38e79c9483afcf1c1496d4a8465753adcc7..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/build.xml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/fractalgui/etc/execute.properties b/fractalgui/examples/fractalgui/etc/execute.properties deleted file mode 100644 index 96b650a4433ca894488fc327ab7639b8c82dbbd6..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/etc/execute.properties +++ /dev/null @@ -1,14 +0,0 @@ -############################################################################## -# choose one of the following configuration of the FractalGUI tool: - -# full featured version -fractalgui.configuration fractalgui - -# reduced version (without upper tab pane and without some menu items) -#fractalgui.configuration fractalgui1 - -# further reduced version (without jtree, status view, zoom and move tools) -#fractalgui.configuration fractalgui2 - -# browser only (no tool to create or modify components) -#fractalgui.configuration fractalgui3 diff --git a/fractalgui/examples/fractalgui/src/fractalgui.fractal b/fractalgui/examples/fractalgui/src/fractalgui.fractal deleted file mode 100644 index 3fc9596c821276c1cac7b5e384ecfee6c1172230..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui.fractal +++ /dev/null @@ -1,1677 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui1.fractal b/fractalgui/examples/fractalgui/src/fractalgui1.fractal deleted file mode 100644 index 6085aa4e8de59f0542568cc8b2652b1529adffc4..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui1.fractal +++ /dev/null @@ -1,1539 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui1Type.fractal b/fractalgui/examples/fractalgui/src/fractalgui1Type.fractal deleted file mode 100644 index cdc83a673d1579f11b0d4c7afea8dc483869f4c9..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui1Type.fractal +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui2.fractal b/fractalgui/examples/fractalgui/src/fractalgui2.fractal deleted file mode 100644 index 8189afde49478577e4219b9e90ca07d7748611d5..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui2.fractal +++ /dev/null @@ -1,1376 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui2Type.fractal b/fractalgui/examples/fractalgui/src/fractalgui2Type.fractal deleted file mode 100644 index 3150ac528a187d5389a70cb37ab4ae9d8496be31..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui2Type.fractal +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui3.fractal b/fractalgui/examples/fractalgui/src/fractalgui3.fractal deleted file mode 100644 index 46a628796c6aa1651ae28923ed27f203d1a7a82a..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui3.fractal +++ /dev/null @@ -1,880 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalgui3Type.fractal b/fractalgui/examples/fractalgui/src/fractalgui3Type.fractal deleted file mode 100644 index 5117ac1d5b10e44771067eaa671872b68deb9747..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalgui3Type.fractal +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/fractalgui/examples/fractalgui/src/fractalguiType.fractal b/fractalgui/examples/fractalgui/src/fractalguiType.fractal deleted file mode 100644 index a1451dfb00bb80ef266adc13f683f7305b4e153a..0000000000000000000000000000000000000000 --- a/fractalgui/examples/fractalgui/src/fractalguiType.fractal +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/fractalgui/externals/README.txt b/fractalgui/externals/README.txt deleted file mode 100644 index 336e5a5f98d9fbe884814c08329ea286ea55a00a..0000000000000000000000000000000000000000 --- a/fractalgui/externals/README.txt +++ /dev/null @@ -1 +0,0 @@ -This directory contains the external libraries required for running the product. diff --git a/fractalgui/externals/SVGGraphics.jar b/fractalgui/externals/SVGGraphics.jar deleted file mode 100644 index 26e87779867c07a320796c7906513cb9d8c942de..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/SVGGraphics.jar and /dev/null differ diff --git a/fractalgui/externals/asm.jar b/fractalgui/externals/asm.jar deleted file mode 100644 index 41e00315ffb0dbd0a386c5a7d39f3bea178804ee..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/asm.jar and /dev/null differ diff --git a/fractalgui/externals/dtdparser.jar b/fractalgui/externals/dtdparser.jar deleted file mode 100644 index ddb33dc33e512b1394953e10a83d1fdad438dffc..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/dtdparser.jar and /dev/null differ diff --git a/fractalgui/externals/fractal-adl.jar b/fractalgui/externals/fractal-adl.jar deleted file mode 100644 index 58318c9d6ae20a262d282b03fca684cfc3c95dd1..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/fractal-adl.jar and /dev/null differ diff --git a/fractalgui/externals/fractal-rmi-tmpl.jar b/fractalgui/externals/fractal-rmi-tmpl.jar deleted file mode 100644 index 2a2edbfc348b5014bdd597800afada7e41f3571b..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/fractal-rmi-tmpl.jar and /dev/null differ diff --git a/fractalgui/externals/fractal-rmi.jar b/fractalgui/externals/fractal-rmi.jar deleted file mode 100644 index c98bfaacc900bedf154f632df5b55e3a82de3c98..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/fractal-rmi.jar and /dev/null differ diff --git a/fractalgui/externals/fractal-swing.jar b/fractalgui/externals/fractal-swing.jar deleted file mode 100644 index a73599f654a113db259e6523fef28bf2cd71863b..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/fractal-swing.jar and /dev/null differ diff --git a/fractalgui/externals/fractal.jar b/fractalgui/externals/fractal.jar deleted file mode 100644 index 6bf74c05aaf416490008ba43dce643df09adbbd5..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/fractal.jar and /dev/null differ diff --git a/fractalgui/externals/jonathan.jar b/fractalgui/externals/jonathan.jar deleted file mode 100644 index 43cf108691be61890d06400491b6d8c87d0f1ad9..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/jonathan.jar and /dev/null differ diff --git a/fractalgui/externals/ow_deployment_scheduling.jar b/fractalgui/externals/ow_deployment_scheduling.jar deleted file mode 100644 index 0f20b080a8d0979254b548c52dd40437060386ea..0000000000000000000000000000000000000000 Binary files a/fractalgui/externals/ow_deployment_scheduling.jar and /dev/null differ diff --git a/fractalgui/jdoc/README.txt b/fractalgui/jdoc/README.txt deleted file mode 100644 index a78cb67fa8d1679fe5fd3fe8efc3aab86e5b6db8..0000000000000000000000000000000000000000 --- a/fractalgui/jdoc/README.txt +++ /dev/null @@ -1,39 +0,0 @@ -This directory contains ant files to build the javadocs of the product. -The following rules describe the convention to write such files: - -- An ant file must build only one javadoc. - -- As there may exist several javadocs, all javadocs must be produced - in a sub dir of ${out.dist.jdoc}. For example the user javadoc could be - produced into the ${out.dist.jdoc}/user directory - -- The name of the ant file must be the name of the destination directory of the - javadoc it builds. - -- Only the default task is called on an xml file. - -Sample ant file: - - - - - - - - - - - - - - - - - - ... - - - - diff --git a/fractalgui/jdoc/fractal-gui.xml b/fractalgui/jdoc/fractal-gui.xml deleted file mode 100644 index dcb07b170da6deb9d913836b6ddf2663e5dc7867..0000000000000000000000000000000000000000 --- a/fractalgui/jdoc/fractal-gui.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/src/org/objectweb/fractal/gui/Constants.java b/fractalgui/src/org/objectweb/fractal/gui/Constants.java deleted file mode 100644 index 43bf4017e522aa463401502dac3c91d07c1faacc..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/Constants.java +++ /dev/null @@ -1,121 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Font; -import java.awt.Stroke; - -/** - * Defines font and color constants used in FractalGUI. - */ - -public interface Constants { - - /** - * Font used to draw component names. - */ - - Font NAME_FONT = new Font("MonoSpaced", Font.BOLD, 12); - - /** - * Font used to draw server interfaces. - */ - - Font PROVIDED_FONT = new Font("MonoSpaced", Font.PLAIN, 12); - - /** - * Font used to draw client interfaces. - */ - - Font REQUIRED_FONT = new Font("MonoSpaced", Font.ITALIC, 12); - - /** - * Color used to draw server interfaces. - */ - - Color PROVIDED_COLOR = Color.black; //Color.red; - - /** - * Color used to draw client interfaces. - */ - - Color REQUIRED_COLOR = Color.black; //new Color(0, 128, 0); - - /** - * Color used to draw component's controller part. - */ - -// Color COMPONENT_COLOR = new Color(153, 204, 153); // Color.lightGray; - Color COMPONENT_COLOR = new Color(255, 255, 183); - - /** - * Color used to draw bindings. - */ - - Color BINDING_COLOR = new Color(0, 128, 0); - - /** - * Color used to show errors (in graph, dialog, or tree views). - */ - - Color ERROR_COLOR = Color.red; - - /** - * Color used to show warnings (especially for bindings). - */ - - Color WARNING_COLOR = new Color (153, 0, 0); - - /** - * Color used to draw selected components or interfaces. - */ - - Color SELECTION_COLOR = new Color(255, 102, 51); //new Color(128, 128, 255); - - /** - * Default stroke. - */ - - Stroke NORMAL_STROKE = new BasicStroke(); - - /** - * Bold stroke. - */ - - Stroke BOLD_STROKE = new BasicStroke(2); - - /** - * Dashed stroke. - */ - - Stroke DASHED_STROKE = new BasicStroke( - 1, - BasicStroke.CAP_SQUARE, - BasicStroke.JOIN_MITER, - 10, - new float[] { 5, 5 }, - 0); -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.fractal b/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.fractal deleted file mode 100644 index 1ed1c9c400feed8452ea63b8f61949c7aff5286c..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.fractal +++ /dev/null @@ -1,1677 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.java b/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.java deleted file mode 100644 index baf8c0aab0c9a779d7236f73bc2057bc37a3281e..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/FractalGUI.java +++ /dev/null @@ -1,88 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui; - -import org.objectweb.fractal.adl.Factory; -import org.objectweb.fractal.adl.FactoryFactory; -import org.objectweb.fractal.api.Component; -import org.objectweb.fractal.api.NoSuchInterfaceException; -import org.objectweb.fractal.api.control.LifeCycleController; -import org.objectweb.fractal.util.Fractal; - -/** - * FractalGUI launcher. - */ - -public class FractalGUI { - - /** - * Launches FractalGUI. - * - * @param args the application's arguments. - */ - - public static void main (String[] args) throws Exception { - try { - if (System.getProperty("fractal.provider") == null) { - System.setProperty( - "fractal.provider", "org.objectweb.fractal.julia.Julia"); - System.setProperty( - "julia.loader", "org.objectweb.fractal.julia.loader.DynamicLoader"); - System.setProperty( - "julia.config", "org/objectweb/fractal/gui/julia.cfg"); - } - - String template = "org.objectweb.fractal.gui.FractalGUI"; - if (args.length > 0) { - template = args[0]; - } - - System.out.println("Creating components from ADL definition..."); - - ///* - Factory f = FactoryFactory.getFactory(FactoryFactory.FRACTAL_BACKEND); - Component comp = (Component)f.newComponent(template, null); - //*/ - - /* - Factory f = FactoryFactory.getFactory(); - Component comp = (Component)f.newComponent(template, null); - */ - - // starts the application if it has a lifecycle controller - System.out.println("Starting application..."); - LifeCycleController lc = null; - try { - lc = Fractal.getLifeCycleController(comp); - } catch (NoSuchInterfaceException ignored) { - } - if (lc != null) { - lc.startFc(); - } - System.out.println("Ready."); - } catch (Exception e) { - e.printStackTrace(); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/FractalGUIType.fractal b/fractalgui/src/org/objectweb/fractal/gui/FractalGUIType.fractal deleted file mode 100644 index b84843595dca7e261c0e22f3052d24dec4c87fff..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/FractalGUIType.fractal +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/fractalgui/src/org/objectweb/fractal/gui/TitlePane.java b/fractalgui/src/org/objectweb/fractal/gui/TitlePane.java deleted file mode 100644 index 571165e39515e32de24ecc006adce43b8ede7697..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/TitlePane.java +++ /dev/null @@ -1,199 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui; - -import org.objectweb.fractal.swing.JTabbedPaneImpl; -import org.objectweb.fractal.gui.model.ConfigurationListener; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Interface; -import org.objectweb.fractal.gui.model.ClientInterface; -import org.objectweb.fractal.gui.model.ServerInterface; - -public class TitlePane extends JTabbedPaneImpl - implements ConfigurationListener -{ - - // ------------------------------------------------------------------------- - // Implementation of the ConfigurationListener interface - // ------------------------------------------------------------------------- - - public void changeCountChanged (Component component, long changeCount) { - updateTitle(component); - } - - public void rootComponentChanged (final Component oldValue) { - // does nothing - } - - public void nameChanged (final Component component, final String oldValue) { - updateTitle(component); - } - - public void typeChanged (final Component component, final String oldValue) { - updateTitle(component); - } - - public void implementationChanged ( - final Component component, - final String oldValue) - { - updateTitle(component); - } - - public void interfaceNameChanged (final Interface i, final String oldValue) { - updateTitle(i.getOwner()); - } - - public void interfaceSignatureChanged ( - final Interface i, - final String oldValue) - { - updateTitle(i.getOwner()); - } - - public void interfaceContingencyChanged ( - final Interface i, - final boolean oldValue) - { - updateTitle(i.getOwner()); - } - - public void interfaceCardinalityChanged ( - final Interface i, - final boolean oldValue) - { - updateTitle(i.getOwner()); - } - - public void clientInterfaceAdded ( - final Component component, - final ClientInterface i, - final int index) - { - updateTitle(component); - } - - public void clientInterfaceRemoved ( - final Component component, - final ClientInterface i, - final int index) - { - updateTitle(component); - } - - public void serverInterfaceAdded ( - final Component component, - final ServerInterface i, - final int index) - { - updateTitle(component); - } - - public void serverInterfaceRemoved ( - final Component component, - final ServerInterface i, - final int index) - { - updateTitle(component); - } - - public void interfaceBound ( - final ClientInterface citf, final ServerInterface sitf) - { - updateTitle(citf.getOwner()); - } - - public void interfaceRebound ( - final ClientInterface citf, - final ServerInterface oldSitf) - { - updateTitle(citf.getOwner()); - } - - public void interfaceUnbound ( - final ClientInterface citf, - final ServerInterface sitf) - { - updateTitle(citf.getOwner()); - } - - public void attributeControllerChanged ( - final Component component, - final String oldValue) - { - updateTitle(component); - } - - public void attributeChanged ( - final Component component, - final String attributeName, - final String oldValue) - { - updateTitle(component); - } - - public void templateControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - updateTitle(component); - } - - public void componentControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - updateTitle(component); - } - - public void subComponentAdded ( - final Component parent, - final Component child, - final int index) - { - updateTitle(parent); - } - - public void subComponentRemoved ( - final Component parent, - final Component child, - final int index) - { - updateTitle(parent); - } - - // ------------------------------------------------------------------------- - // Other methods - // ------------------------------------------------------------------------- - - private void updateTitle (final Component c) { - String title = c.getRootComponent().getName(); - if (c.getConfiguration().getChangeCount() != 0) { - title += "*";//+c.getConfiguration().getChangeCount(); - } - if (!getTitleAt(0).equals(title)) { - setTitleAt(0, title); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/UserData.java b/fractalgui/src/org/objectweb/fractal/gui/UserData.java deleted file mode 100644 index 1befd85afac265f7c11131748d35879c3a8e1dd9..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/UserData.java +++ /dev/null @@ -1,180 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui; - -public interface UserData -{ - final static int CURRENT_DEPTH = 0; - final static int CURRENT_WIDTH = 1; - final static int CURRENT_HEIGHT = 2; - final static int CURRENT_CONFIG = 3; - - final static int LAST_OPEN_DIR = 10; - final static int LAST_SAVE_DIR = 11; - final static int LAST_OPEN_CONF = 12; - final static int LAST_OPEN_FILE = 13; - final static int LAST_SAVE_FILE = 14; - final static int LAST_EXEC_DIR = 15; - - final static int NB_DIR = 6; - final static int START_INDEX = 10; - - final static int NO_MODIFIED = 0; - final static int MODIFIED = 1; - - /** - * Open the file which contains all registered User Data. If this file doesn't - * exist, a new empty file is created. - * - */ - void open (); - - /** - * Save all registered data in the file of the user. If this file doesn't - * exist, a new empty file is created. - * - */ - void save (); - - /** - * Clean the user's data - */ - void clean (); - - /** - * set the value for a given type. The type must belong to the CURRENT_ - * family type. - * - * @param typ is the Data type. - * @param v is the int value for the type. - */ - void setIntData (int typ, int v) throws Exception; - - /** - * get the int value for a given type. The type must belong to the CURRENT_ - * family type. - * or else an Exception is thrown. - * - * @param typ is the Data type. - * @return the int data according to the typ - */ - int getIntData (int typ) throws Exception; - - /** - * set the value for a given type. The type must belong to the LAST_ family - * type. - * - * @param typ is the Data type. - * @param s is the String value for the type. - */ - void setStringData (int typ, String s) throws Exception; - - /** - * get the int value for a given type. The type must belong to the LAST_ - * family type or else an Exception is thrown. - * - * @param typ is the Data type. - * @return the String data according to the typ - */ - String getStringData (int typ) throws Exception; - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * - * @param id is the Data type. - * @return true if the FProject exist, false otherwise. - */ - boolean projectExists (int id); - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * If thomething goes wrong an Exception is thrown. - * - * @param proj is the FProject to add. - */ - void addProject (FProject proj) throws Exception; - - /** - * Removes the FProject with specified id from the project list. - * If the project doesn't exist, nothing is done. - * - * @param id is the FProject id to remove. - */ - void removeProject (int id); - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * If thomething goes wrong an Exception is thrown. - * - * @param id is the FProject identifier. - * @return the FProject if exists or null otherwise. - */ - FProject getProject (int id); - - /** - * Asks for a new FProject. - * - * @return the new FProject - */ - FProject getNewProject (); - - /* ------------------------------------------------------------- */ - - public interface FProject { - - /** - * set the id for the project - * - * @param id is the Data type. - */ - void setId (int id); - - /** - * get the id of the project - * - * @return the identifier of the FRroject. - */ - int getId (); - - /** - * set the value for a given type. The type must belong to the LAST_ family - * type. - * - * @param typ is the Data type. - * @param v is the String value for the type. - */ - void setStringData (int typ, String s) throws Exception; - - /** - * get the int value for a given type. The type must belong to the LAST_ - * family type or else an Exception is thrown. - * - * @param typ is the Data type. - */ - String getStringData (int typ) throws Exception; - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/UserDataStorage.java b/fractalgui/src/org/objectweb/fractal/gui/UserDataStorage.java deleted file mode 100644 index 330f8316ae46ac76c1c643455cec76e76aea5674..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/UserDataStorage.java +++ /dev/null @@ -1,329 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui; - -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.OutputStreamWriter; -import java.io.InputStreamReader; -import java.io.BufferedReader; -import java.io.PrintWriter; -import java.util.Enumeration; -import java.util.Hashtable; - -public class UserDataStorage implements UserData -{ - static String FS = new String (System.getProperty("file.separator")); - static String UH = new String (System.getProperty("user.home")); - static String UN = new String (System.getProperty("user.name")); - String filename = UH+FS+UN+".frtlgui"; - - int currentdepth = 0; - int currentwidth = 780; - int currentheight = 660; - int currentstatus = UserData.NO_MODIFIED; - private Integer ZERO = new Integer (0); - private int current_id = 0; - UFProject ufp = null; - Hashtable hfp = new Hashtable (); - - public UserDataStorage () { - open(); - } - - /** - * Open the file which contains all registered User Data. If this file doesn't - * exist, a new empty file is created. - * - */ - public void open () { - try { - FileInputStream fin = new FileInputStream (filename); - BufferedReader brd = new BufferedReader(new InputStreamReader(fin)); - String st = new String (""); - UFProject cufp = new UFProject (); - - while (st != null) { - st = brd.readLine(); - if (st == null) break; - int i = st.indexOf('='); - if (st.length() == i+1) continue; - Integer val = new Integer (st.substring(0, i)); - - int vali = val.intValue() % 100; - int valp = val.intValue() / 100; - - if (current_id < valp) current_id = valp+1; - ufp = (UFProject)getProject(valp); - if (ufp == null) { - ufp = new UFProject (); - ufp.setId(valp); - } - - switch (vali) { - case (UserData.CURRENT_DEPTH) : - currentdepth = intValue (st); break; - case (UserData.CURRENT_WIDTH) : - currentwidth = intValue (st); break; - case (UserData.CURRENT_HEIGHT) : - currentheight = intValue (st); break; - case (UserData.CURRENT_CONFIG) : - currentstatus = intValue (st); break; - default : - ufp.setStringData(vali, st.substring(i+1)); - cufp.setStringData(vali, st.substring(i+1)); - break; - } - addProject(ufp); - } - brd.close(); - if (hfp.size() == 0) { } - } - catch (Exception ex) { } - } - - // ----- - - private int intValue (String st) - { - int i = st.indexOf('='); - Integer val = new Integer (st.substring(i+1)); - return val.intValue(); - } - - /** - * Clean the user's data - */ - public void clean () { - hfp.clear(); - save (); - } - - /** - * Save all registered data in the file of the user. If this file doesn't exist, a new empty file - * is created. - * - */ - public void save () { - try { - FileOutputStream fos = new FileOutputStream (filename); - PrintWriter os = new PrintWriter (new OutputStreamWriter (fos)); - - os.println (UserData.CURRENT_DEPTH+"="+currentdepth); - os.println (UserData.CURRENT_WIDTH+"="+currentwidth); - os.println (UserData.CURRENT_HEIGHT+"="+currentheight); - - for (Enumeration en = hfp.keys(); en.hasMoreElements() ;) { - Integer key = (Integer)en.nextElement(); - UFProject fp = (UFProject)hfp.get(key); - int ind = fp.getId(); - for (int i = 0; i < UserData.NB_DIR; i++) { - String field = fp.getStringData(i); - if (field != null) { - os.println (((100*ind)+i+UserData.START_INDEX)+"="+field); - } else { os.println (((100*ind)+i+UserData.START_INDEX)+"="); } - } - } - os.close(); - } - catch (Exception ex) { } - } - - /** - * set the value for a given type. The type must belong to the CURRENT_ - * family type or else an Exceptioon is thrown. - * - * @param typ is the Data type. - * @param v is the int value for the type. - */ - public void setIntData (int typ, int v) throws Exception { - if (typ == UserData.CURRENT_DEPTH) currentdepth = v; - else if (typ == UserData.CURRENT_WIDTH) currentwidth = v; - else if (typ == UserData.CURRENT_HEIGHT) currentheight = v; - else throw new IllegalArgumentException(); - } - - /** - * get the int value for a given type. The type must belong to the CURRENT_ - * family type or else an Exception is thrown. - * - * @param typ is the Data type. - */ - public int getIntData (int typ) throws Exception { - if (typ == UserData.CURRENT_DEPTH) return currentdepth; - else if (typ == UserData.CURRENT_WIDTH) return currentwidth; - else if (typ == UserData.CURRENT_HEIGHT) return currentheight; - else throw new IllegalArgumentException(); - } - - /** - * set the value for a given type. The type must belong to the LAST_ - * family type. - * - * @param typ is the Data type. - * @param s is the String value for the type. - */ - public void setStringData (int typ, String s) throws Exception { - UFProject ufp = (UFProject)hfp.get(ZERO); - if (ufp == null) { - ufp = new UFProject (); - ufp.setId(0); - for (int i = 0; i < UserData.NB_DIR; i++) - ufp.setStringData(i+UserData.START_INDEX, ""); - hfp.put(ZERO, ufp); - save (); - } - if ((typ < UserData.START_INDEX) || - (typ > UserData.NB_DIR+UserData.START_INDEX-1)) throw - new IllegalArgumentException(); - ufp.setStringData(typ, s); - } - - /** - * get the int value for a given type. The type must belong to the LAST_ - * family type or else an Exception is thrown. - * - * @param typ is the Data type. - */ - public String getStringData (int typ) throws Exception { - UFProject ufp = (UFProject)hfp.get(ZERO); - if (ufp == null) return null; - if ((typ < UserData.START_INDEX) || - (typ > UserData.NB_DIR+UserData.START_INDEX-1)) throw - new IllegalArgumentException(); - return ufp.getStringData(typ-UserData.START_INDEX); - } - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * - * @param id is the Data type. - * @return true if the FProject exist, false otherwise. - */ - public boolean projectExists (int id) { - Object fp = hfp.get(new Integer(id)); - if (fp == null) return false; - else return true; - } - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * If thomething goes wrong an Exception is thrown. - * - * @param proj is the FProject to add. - */ - public void addProject (UserData.FProject proj) throws Exception { - int i = proj.getId(); - if (i < 0) throw new IllegalArgumentException(); - Integer in = new Integer(i); - if (hfp.get(in) != null) { - in = new Integer (current_id); - proj.setId(current_id); - } - hfp.put(in, proj); - return; - } - - /** - * Removes the FProject with specified id from the project list. - * If the project doesn't exist, nothing is done. - * - * @param id is the FProject id to remove. - */ - public void removeProject (int id) { - } - - /** - * Adds a new FProject to the project list. If the project already exists, - * nothing is done. - * If thomething goes wrong an Exception is thrown. - * - * @param id is the FProject identifier. - * @return the FProject if exists or null otherwise. - */ - public UserData.FProject getProject (int id) { - UserData.FProject fp = (UserData.FProject)hfp.get(new Integer(id)); - return fp; - } - - - /** - * Asks for a new FProject. - * - * @return the new FProject - */ - public UserData.FProject getNewProject () { - UFProject fp = new UFProject (); - fp.setId(current_id++); - return fp; - } - - - /* ---------------------------------------------------------- */ - - public class UFProject implements UserData.FProject { - String [] fields = new String[UserData.NB_DIR]; - private int ident = -1; - - /** - * set the id for the project - * - * @param i is the Data type. - */ - public void setId (int i) { ident = i; } - - /** - * get the id of the project - * - * @return the identifier of the FProject. - */ - public int getId () { return ident; } - - /** - * set the value for a given type. The type must belong to the LAST_ family - * type. - * - * @param typ is the Data type. - * @param s is the String value for the type. - */ - public void setStringData (int typ, String s) { - if ((typ < UserData.START_INDEX) || - (typ > UserData.NB_DIR+UserData.START_INDEX-1)) return; - fields[typ-UserData.START_INDEX] = new String (s); - } - - /** - * get the int value for a given type. The type must belong to the LAST_ - * family type or else an Exception is thrown. - * - * @param typ is the Data type. - */ - public String getStringData (int typ) { - if ((typ < 0) || (typ > UserData.NB_DIR-1)) return null; - return fields[typ]; - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/control/CreateInstanceAction.java b/fractalgui/src/org/objectweb/fractal/gui/admin/control/CreateInstanceAction.java deleted file mode 100644 index cda6cd61b1cf6bebcbcf42ab988b02f16194d918..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/control/CreateInstanceAction.java +++ /dev/null @@ -1,237 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.control; - -import org.objectweb.fractal.api.control.BindingController; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Configuration; -import org.objectweb.fractal.swing.AbstractAction; -import org.objectweb.fractal.gui.admin.model.AdminModel; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.selection.model.SelectionListener; -import org.objectweb.fractal.rmi.registry.*; - -import org.objectweb.fractal.util.Fractal; - -import java.awt.event.ActionEvent; -import java.net.URL; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; -import javax.swing.JOptionPane; - -/** - * An action to exit FractalGUI. - */ - -public class CreateInstanceAction extends AbstractAction - implements BindingController, SelectionListener -{ - /** - * A mandatory client interface bound to a {@link Configuration configuration} - * model. This is the configuration that is saved by this action. - */ - - public final static String CONFIGURATION_BINDING = "configuration"; - - /** - * A mandatory client interface bound to a {@link AdminModel AdminModel} - * model. - */ - - public final static String ADMIN_MODEL_BINDING = "admin-model"; - - /** - * An mandatory client interface bound to a {@link Selection Selection}. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * The configuration client interface. - */ - - private Configuration configuration; - - /** - * The AdminModel client interface. - */ - - private AdminModel adminmodel; - - /** - * The SelectionModel client interface. - */ - - private Selection selection; - - - /** - * Constructs a new {@link CreateInstanceAction} component. - */ - - public CreateInstanceAction () { - putValue(NAME, "Create Instance"); - putValue(SHORT_DESCRIPTION, "CreateInstance"); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/empty.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control shift C")); - } - - // ------------------------------------------------------------------------- - // Implementation of the BindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - CONFIGURATION_BINDING, - ADMIN_MODEL_BINDING, - SELECTION_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - return configuration; - } else if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - return adminmodel; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } - return null; - } - - public void bindFc (final String clientItfName, final Object serverItf) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = (Configuration)serverItf; - } else if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = (AdminModel)serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = null; - } else if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled (true); - } else { - setEnabled(false); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - - Object o = selection.getSelection(); - - String classpath = System.getProperty("java.class.path"); - //System.setProperty("java.rmi.server.codebase", configuration.getStorage()); - - try { - if (o instanceof Component) { - Component c = (Component)o; - - org.objectweb.fractal.api.Component boot = null; - - String rmi_url = "localhost"; - String port = null; - String name = "localhost"; - Integer in = new Integer (1234); - String oneMoreTime = ""; - String debut = "P"; - while (true) { - String input = (String)JOptionPane.showInputDialog ( - null, - "TODO", - debut+"lease input "+oneMoreTime+"the URL for wished registry"+"\n machine (host:port/name)", - JOptionPane.QUESTION_MESSAGE, - null, - null, - rmi_url+":1234/"+name); - if (input != null) { - int ina = input.indexOf(':'); - int inb = input.indexOf('/'); - if ((ina < 1) || (inb < ina)) { - oneMoreTime = "AGAIN "; - debut = "ERROR : p"; - continue; - } - rmi_url = input.substring(0, ina); - name = input.substring(inb+1); - port = input.substring(ina+1, inb); - in = new Integer (port); - if (in.intValue() < 80) { - oneMoreTime = "AGAIN "; - debut = "ERROR port number : p"; - continue; - } - - if ((rmi_url.equals("localhost")) && - (port.equals("1234")) && - (name.equals("localhost"))) { - boot = Fractal.getBootstrapComponent(); - } - else { - NamingService ns = Registry.getRegistry (rmi_url, in.intValue()); - boot = ns.lookup (name); - } - } - else { return; } - break; - } - - try { - adminmodel.createInstance (c, boot); - } catch (Exception ex) { - JOptionPane.showMessageDialog ( - null, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - return; - } - } - } catch (Exception ex) { - JOptionPane.showMessageDialog ( - null, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - } -} - diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/control/DeleteInstanceAction.java b/fractalgui/src/org/objectweb/fractal/gui/admin/control/DeleteInstanceAction.java deleted file mode 100644 index b18e44c49f39367d154f451182176a0b9b046bbe..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/control/DeleteInstanceAction.java +++ /dev/null @@ -1,153 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.control; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.swing.AbstractAction; -import org.objectweb.fractal.gui.admin.model.AdminModel; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.selection.model.SelectionListener; - -import java.awt.event.ActionEvent; -import java.net.URL; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; -import javax.swing.JOptionPane; - -/** - * An action to exit FractalGUI. - */ - -public class DeleteInstanceAction extends AbstractAction - implements BindingController, SelectionListener -{ - - /** - * A mandatory client interface bound to a {@link AdminModel AdminModel} - * model. - */ - - public final static String ADMIN_MODEL_BINDING = "admin-model"; - - /** - * An mandatory client interface bound to a {@link Selection Selection}. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * The AdminModel client interface. - */ - - private AdminModel adminmodel; - - /** - * The SelectionModel client interface. - */ - - private Selection selection; - - - /** - * Constructs a new {@link DeleteInstanceAction} component. - */ - - public DeleteInstanceAction () { - putValue(NAME, "Delete Instance"); - putValue(SHORT_DESCRIPTION, "DeleteInstance"); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/empty.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control shift D")); - } - - // ------------------------------------------------------------------------- - // Implementation of the UserBindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - ADMIN_MODEL_BINDING, - SELECTION_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - return adminmodel; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } - return null; - } - - public void bindFc (final String clientItfName, final Object serverItf) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = (AdminModel)serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled (true); - } else { - setEnabled(false); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - if (o instanceof Component) { - Component c = (Component)o; - try { - adminmodel.deleteInstance (c); - } catch (Exception ex) { - JOptionPane.showMessageDialog ( - null, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/control/StartAction.java b/fractalgui/src/org/objectweb/fractal/gui/admin/control/StartAction.java deleted file mode 100644 index 5863f98fee267dfce2c8509e65db0e7563b1405b..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/control/StartAction.java +++ /dev/null @@ -1,162 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.control; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.swing.AbstractAction; -import org.objectweb.fractal.gui.admin.model.AdminModel; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.selection.model.SelectionListener; - -import java.awt.event.ActionEvent; -import java.net.URL; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; -import javax.swing.JOptionPane; - -/** - * An action to start on AdminModel. - */ - -public class StartAction extends AbstractAction - implements BindingController, SelectionListener -{ - - /** - * A mandatory client interface bound to a {@link AdminModel AdminModel} - * model. - */ - - public final static String ADMIN_MODEL_BINDING = "admin-model"; - - /** - * An mandatory client interface bound to a {@link Selection Selection}. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * The AdminModel client interface. - */ - - private AdminModel adminmodel; - - /** - * The SelectionModel client interface. - */ - - private Selection selection; - - - /** - * Constructs a new {@link StartAction} component. - */ - - public StartAction () { - putValue(NAME, "Start"); - putValue(SHORT_DESCRIPTION, "Start"); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/run.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("F11")); - } - - // ------------------------------------------------------------------------- - // Implementation of the UserBindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - ADMIN_MODEL_BINDING, - SELECTION_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - return adminmodel; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } - return null; - } - - public void bindFc (final String clientItfName, final Object serverItf) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = (AdminModel)serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled (true); - } else { - setEnabled(false); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - try { - if (o instanceof Component) { - Component c = (Component)o; - - org.objectweb.fractal.api.Component ci = adminmodel.getInstance(c); - if (ci == null) { - JOptionPane.showMessageDialog (null, - "You must create an instance before starting it!", - "Alert ...", JOptionPane.ERROR_MESSAGE); - return; - } - adminmodel.start(c); - } - } catch (Exception ex) { - JOptionPane.showMessageDialog( - null, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - return; - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/control/StopAction.java b/fractalgui/src/org/objectweb/fractal/gui/admin/control/StopAction.java deleted file mode 100644 index 992008028fcd25e0c638dfbc410eba0e2eb823ed..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/control/StopAction.java +++ /dev/null @@ -1,170 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.control; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.swing.AbstractAction; -import org.objectweb.fractal.gui.admin.model.AdminModel; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.selection.model.SelectionListener; - -import java.awt.event.ActionEvent; -import java.net.URL; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; -import javax.swing.JOptionPane; - -/** - * An action to call stop method on an AdminModel - */ - -public class StopAction extends AbstractAction - implements BindingController, SelectionListener -{ - - /** - * A mandatory client interface bound to a {@link AdminModel AdminModel} - * model. - */ - - public final static String ADMIN_MODEL_BINDING = "admin-model"; - - /** - * A mandatory client interface bound to a {@link Selection selection} model. - * This model is used to know the component or interface to be deleted. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * The AdminModel client interface. - */ - - private AdminModel adminmodel; - - /** - * The SelectionModel client interface. - */ - - private Selection selection; - - /** - * Constructs a new {@link StopAction} component. - */ - - public StopAction () { - putValue(NAME, "Stop"); - putValue(SHORT_DESCRIPTION, "Stop"); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/stop.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("F12")); - } - - // ------------------------------------------------------------------------- - // Implementation of the UserBindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - ADMIN_MODEL_BINDING, - SELECTION_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - return adminmodel; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } - return null; - } - - public void bindFc (final String clientItfName, final Object serverItf) { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = (AdminModel)serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } - } - - public void unbindFc (final String clientItfName) - { - if (ADMIN_MODEL_BINDING.equals(clientItfName)) { - adminmodel = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled (true); - } else { - setEnabled(false); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - try { - if (o instanceof Component) { - Component c = (Component)o; - - org.objectweb.fractal.api.Component ci = adminmodel.getInstance(c); - if (ci == null) { - JOptionPane.showMessageDialog (null, - "The instance you want stop doesn't exist!", - "Alert ...", JOptionPane.ERROR_MESSAGE); - return; - } - - if (!adminmodel.isStarted(c)) { - JOptionPane.showMessageDialog (null, - "Instance not started!", - "Alert ...", JOptionPane.ERROR_MESSAGE); - return; - } - adminmodel.stop(c); - } - } catch (Exception ex) { - JOptionPane.showMessageDialog( - null, ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - return; - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModel.java b/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModel.java deleted file mode 100644 index 30f259f8a49f29f41a4bf8512526fc93b91f7848..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModel.java +++ /dev/null @@ -1,43 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.model; - -import org.objectweb.fractal.gui.model.Component; - -public interface AdminModel { - - org.objectweb.fractal.api.Component getInstance (Component model); - - org.objectweb.fractal.api.Component createInstance ( - Component model, - org.objectweb.fractal.api.Component bootstrapComponent) throws Exception; - - void deleteInstance (Component model) throws Exception; - - boolean isStarted (Component model); - - void start (Component model) throws Exception; - - void stop (Component model) throws Exception; -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModelListener.java b/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModelListener.java deleted file mode 100644 index 50a5edb41dbafcda37cc37b12acaea6cba6d2ec6..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/model/AdminModelListener.java +++ /dev/null @@ -1,37 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.model; - -import org.objectweb.fractal.gui.model.Component; - -public interface AdminModelListener { - - void componentCreated (Component model); - - void componentDeleted (Component model); - - void componentStarted (Component model); - - void componentStopped (Component model); -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/model/BasicAdminModel.java b/fractalgui/src/org/objectweb/fractal/gui/admin/model/BasicAdminModel.java deleted file mode 100644 index b033d1625b1c5145ca2ea356f820bf3e83c52505..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/model/BasicAdminModel.java +++ /dev/null @@ -1,1076 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.model; - -import org.objectweb.fractal.adl.Factory; -import org.objectweb.fractal.adl.FactoryFactory; -import org.objectweb.fractal.api.control.BindingController; -import org.objectweb.fractal.api.control.ContentController; -import org.objectweb.fractal.api.control.LifeCycleController; -import org.objectweb.fractal.api.control.AttributeController; -import org.objectweb.fractal.api.control.NameController; -import org.objectweb.fractal.api.control.IllegalLifeCycleException; -import org.objectweb.fractal.api.NoSuchInterfaceException; - -import org.objectweb.fractal.util.Fractal; - -import org.objectweb.fractal.gui.model.Binding; -import org.objectweb.fractal.gui.model.ClientInterface; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Configuration; -import org.objectweb.fractal.gui.model.ConfigurationListener; -import org.objectweb.fractal.gui.model.IllegalOperationException; -import org.objectweb.fractal.gui.model.Interface; -import org.objectweb.fractal.gui.model.ServerInterface; -import org.objectweb.fractal.gui.model.VetoableConfigurationListener; -import org.objectweb.fractal.gui.repository.api.Storage; -import org.objectweb.fractal.gui.repository.api.Repository; -import org.objectweb.fractal.gui.admin.model.AdminModelListener; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import java.util.WeakHashMap; -import java.util.List; - -import java.lang.reflect.Method; - -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; -import javax.swing.border.*; -import java.awt.FontMetrics; -import javax.swing.JOptionPane; - - -public class BasicAdminModel implements - BindingController, - AdminModel, - VetoableConfigurationListener, - ConfigurationListener -{ - - /** - * A mandatory client interface bound to a {@link Configuration configuration} - * model. This is the model on which this model is based and synchronized. - */ - - public final static String CONFIGURATION_BINDING = "configuration"; - - /** - * A mandatory client interface bound to a {@link Storage storage}. This is - * the storage into which the saved configurations are stored. - */ - - public final static String STORAGE_BINDING = "storage"; - - /** - * A mandatory client interface bound to a {@link Repository repository}. This - * repository is used to store the configurations in the storage. - */ - - public final static String REPOSITORY_BINDING = "repository"; - - /** - * A mandatory client interface bound to an {@link AdminModelListener}. - */ - - public final static String ADMIN_MODEL_LISTENER_BINDING = "admin-model-listener"; - - /** - * The configuration client interface. - */ - - private Configuration configuration; - - /** - * The storage client interface. - */ - - private Storage storage; - - /** - * The repository client interface. - */ - - private Repository repository; - - /** - * The admin model listener client interface. - */ - - private AdminModelListener adminlistener; - - /** - * A map associating ComponentIdentity interfaces to Component objects. - */ - - private Map instances; - - private int range = -1; - - public BasicAdminModel () { - instances = new WeakHashMap(); - } - - // ------------------------------------------------------------------------- - // Implementation of the BindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - CONFIGURATION_BINDING, - STORAGE_BINDING, - ADMIN_MODEL_LISTENER_BINDING, - REPOSITORY_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - return configuration; - } else if (STORAGE_BINDING.equals(clientItfName)) { - return storage; - } else if (ADMIN_MODEL_LISTENER_BINDING.equals(clientItfName)) { - return adminlistener; - } else if (REPOSITORY_BINDING.equals(clientItfName)) { - return repository; - } - return null; - } - - public void bindFc (final String clientItfName, final Object serverItf) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = (Configuration)serverItf; - } else if (STORAGE_BINDING.equals(clientItfName)) { - storage = (Storage)serverItf; - } else if (ADMIN_MODEL_LISTENER_BINDING.equals(clientItfName)) { - adminlistener = (AdminModelListener)serverItf; - } else if (REPOSITORY_BINDING.equals(clientItfName)) { - repository = (Repository)serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = null; - } else if (STORAGE_BINDING.equals(clientItfName)) { - storage = null; - } else if (ADMIN_MODEL_LISTENER_BINDING.equals(clientItfName)) { - adminlistener = null; - } else if (REPOSITORY_BINDING.equals(clientItfName)) { - repository = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the AdminModel interface - // ------------------------------------------------------------------------- - - public org.objectweb.fractal.api.Component getInstance (final Component model) { - if (!configuration.getRootComponent().contains(model)) { - return null; - } - return (org.objectweb.fractal.api.Component)instances.get(model); - } - - // --- createInstance - - public org.objectweb.fractal.api.Component createInstance ( - final Component model, - final org.objectweb.fractal.api.Component bootstrapComponent) throws Exception - { - if (!configuration.getRootComponent().contains (model)) { - return null; - } - if (getInstance(model) != null) { - throw new IllegalOperationException ( - "Instance already created !"); - } - - // ADL generation - storage.open ("tmp"); - try { - String root = repository.storeComponent (model, null, "inline"); - } catch (Exception ex) { - throw new IllegalOperationException (ex.getMessage()); - } finally { - storage.close(); - } - - Factory f = FactoryFactory.getFactory( - "org.objectweb.fractal.gui.admin.model.TmpFactory", - FactoryFactory.FRACTAL_BACKEND, new HashMap()); - - org.objectweb.fractal.api.Component comp; - - try { - Map ctxt = new HashMap(); - ctxt.put("bootstrap", bootstrapComponent); - comp = (org.objectweb.fractal.api.Component)f.newComponent(model.getType(), ctxt); - addInstance(model, comp); - if (model.getParent() != null && getInstance(model.getParent()) != null) { - subComponentAdded(model.getParent(), model, 0); - } - } catch (Exception ex) { - ex.printStackTrace(); - throw new IllegalOperationException ( - "No instance created : maybe, the exec. dir is no correct or missing"); - } - - adminlistener.componentCreated(model); - return comp; - } - - // --- addInstances - - private void addInstance ( - final Component model, - final org.objectweb.fractal.api.Component instance) throws Exception - { - Component c = model; - if (model.getMasterComponent() != null) { - c = model.getMasterComponent(); - } - instances.put(c, instance); - List slaves = c.getSlaveComponents(); - for (int i = 0; i < slaves.size(); ++i) { - instances.put(slaves.get(i), instance); - } - - List subComponents = model.getSubComponents(); - if (subComponents.size() > 0) { - ContentController cc = Fractal.getContentController(instance); - org.objectweb.fractal.api.Component[] subCi = cc.getFcSubComponents(); - - for (int i = 0; i < subComponents.size(); ++i) { - Component subC = (Component)subComponents.get(i); - Set s = new HashSet(); - if (subC.getMasterComponent() != null) { - s.add(subC.getMasterComponent().getName()); - List l = subC.getMasterComponent().getSlaveComponents(); - for (int j = 0; j < l.size(); ++j) { - s.add(((Component)l.get(j)).getName()); - } - } else { - s.add(subC.getName()); - List l = subC.getSlaveComponents(); - for (int j = 0; j < l.size(); ++j) { - s.add(((Component)l.get(j)).getName()); - } - } - - org.objectweb.fractal.api.Component subM = null; - for (int j = 0; j < subCi.length; ++j) { - org.objectweb.fractal.api.Component sci = subCi[j]; - if (s.contains(Fractal.getNameController(sci).getFcName())) { - subM = sci; - break; - } - } - - if (subM == null) { - throw new Exception("No instance for sub component '" + subC.getName() + "' " + s); - } - - addInstance(subC, subM); - } - } - } - - // --- deleteInstance - - public void deleteInstance (final Component model) { - if (!configuration.getRootComponent().contains(model)) { - return; - } - if (getInstance(model) == null) { - throw new IllegalOperationException( - "Instance does not exist"); - } - if (isStarted(model)) { - throw new IllegalOperationException( - "Cannot delete an instance which is started"); - } - - if (model.getParent() != null) { - if (isStarted(model.getParent())) { - throw new IllegalOperationException( - "Cannot delete an instance whose parent is started"); - } - - org.objectweb.fractal.api.Component p = getInstance(model.getParent()); - org.objectweb.fractal.api.Component c = getInstance(model); - - subComponentRemoved(model.getParent(), model, 0); - } - - removeInstance(model); - - adminlistener.componentDeleted(model); - } - - private void removeInstance (final Component model) { - Component c = model; - if (model.getMasterComponent() != null) { - c = model.getMasterComponent(); - } - instances.remove(c); - List slaves = c.getSlaveComponents(); - for (int i = 0; i < slaves.size(); ++i) { - instances.remove(slaves.get(i)); - } - - List subComponents = model.getSubComponents(); - for (int i = 0; i < subComponents.size(); ++i) { - removeInstance((Component)subComponents.get(i)); - } - } - - // --- isStarted - - public boolean isStarted (final Component model) { - org.objectweb.fractal.api.Component ci = getInstance(model); - if (ci != null) { - try { - LifeCycleController lc = Fractal.getLifeCycleController(ci); - return lc.getFcState().equals("STARTED"); - } catch (NoSuchInterfaceException e) { - return true; - } - } - return false; - } - - // --- start - - public void start (final Component model) { - org.objectweb.fractal.api.Component ci = getInstance(model); - - if (ci != null) { - try { - LifeCycleController lc = Fractal.getLifeCycleController(ci); - if (lc != null) { - lc.startFc(); - - // faire comme runAction ? - List lser = model.getServerInterfaces(); - /*if (lser.size() > 0) { - ServerInterface ser = (ServerInterface)lser.get(0); - String signat = ser.getSignature(); - String lien = ser.getName(); - - Object iref = null; - try { - iref = ci.getFcInterface (lien); - } catch (Exception ex) { - ex.printStackTrace(); - } - - // call main method - ClassLoader cl = this.getClass().getClassLoader(); - try { - Class cla = cl.loadClass(signat); - - java.lang.reflect.Method[] meth = cla.getMethods(); - if (meth.length > 0) { - Object[] arguments = new Object[] { }; - String [] items = new String [meth.length]; - for (int i = 0; i < meth.length; i++) { - items[i] = meth[i].getName(); - } - FrameChoiceBox fcb = - new FrameChoiceBox ("Method for start", items); - if (range < 0) return; - meth[range].invoke(iref, arguments); - } - } catch (Exception ex) { - //ex.printStackTrace(); - avert ("Invocation failed : "+ex.getMessage()); - return; - } - }*/ - } - adminlistener.componentStarted(model); - } catch (NoSuchInterfaceException e) { - } catch (IllegalLifeCycleException e) { -// throw new IllegalOperationException ( - avert ("Cannot start this instance"); - } - } - } - - // --- stop - - public void stop (final Component model) { - org.objectweb.fractal.api.Component ci = getInstance(model); - if (ci != null) { - try { - LifeCycleController lc = Fractal.getLifeCycleController(ci); - if (lc != null) { - lc.stopFc(); - - // faire comme runAction ? - List lser = model.getServerInterfaces(); - /*if (lser.size() > 0) { - ServerInterface ser = (ServerInterface)lser.get(0); - String signat = ser.getSignature(); - String lien = ser.getName(); - - Object iref = null; - try { - iref = ci.getFcInterface (lien); - } catch (Exception ex) { - ex.printStackTrace(); - } - - // call main method - ClassLoader cl = this.getClass().getClassLoader(); - try { - Class cla = cl.loadClass(signat); - - java.lang.reflect.Method[] meth = cla.getMethods(); - if (meth.length > 0) { - Object[] arguments = new Object[] { }; - String [] items = new String [meth.length]; - for (int i = 0; i < meth.length; i++) { - items[i] = meth[i].getName(); - } - FrameChoiceBox fcb = - new FrameChoiceBox ("Method for stop", items); - if (range < 0) return; - meth[range].invoke(iref, arguments); - } - } catch (Exception ex) { return; } - }*/ - } - adminlistener.componentStopped(model); - } catch (NoSuchInterfaceException e) { - } catch (IllegalLifeCycleException e) { - throw new IllegalOperationException ( - "Cannot stop this instance"); - } - } - } - - // ------------------------------------------------------------------------- - // Implementation of the VetoableConfigurationListener interface - // ------------------------------------------------------------------------- - - public void canChangeRootComponent () { - // nothing to do (no veto) - } - - public void canChangeName (final Component component) { - // nothing to do (no veto) - } - - public void canChangeType (final Component component) { - // nothing to do (no veto) - } - - public void canChangeImplementation (final Component component) { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the implementation of an instanciated component"); - } - } - - public void canChangeInterfaceName (final Interface i) { - org.objectweb.fractal.api.Component ci = getInstance(i.getOwner()); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the name of an interface of an instanciated component"); - } - } - - public void canChangeInterfaceSignature (final Interface i) { - org.objectweb.fractal.api.Component ci = getInstance(i.getOwner()); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the signature of an interface of an instanciated component"); - } - } - - public void canChangeInterfaceContingency (final Interface i) { - org.objectweb.fractal.api.Component ci = getInstance(i.getOwner()); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the contingency of an interface of an instanciated component"); - } - } - - public void canChangeInterfaceCardinality (final Interface i) { - org.objectweb.fractal.api.Component ci = getInstance(i.getOwner()); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the cardinality of an interface of an instanciated component"); - } - } - - public void canAddClientInterface ( - final Component component, - final ClientInterface i) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - if (i.getMasterCollectionInterface() == null) { -// throw new IllegalOperationException( - avert ("Cannot add an interface to an instanciated component"); - } - } - } - - public void canRemoveClientInterface ( - final Component component, - final ClientInterface i) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - if (i.getMasterCollectionInterface() == null) { -// throw new IllegalOperationException( - avert ("Cannot remove an interface from an instanciated component"); - } - } - } - - public void canAddServerInterface ( - final Component component, - final ServerInterface i) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - if (i.getMasterCollectionInterface() == null) { -// throw new IllegalOperationException( - avert ("Cannot add an interface to an instanciated component"); - } - } - } - - public void canRemoveServerInterface ( - final Component component, - final ServerInterface i) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - if (i.getMasterCollectionInterface() == null) { -// throw new IllegalOperationException( - avert ("Cannot remove an interface from an instanciated component"); - } - } - } - - public void canBindInterface (final ClientInterface citf) { - if (isStarted(citf.getOwner())) { -// throw new IllegalOperationException( - // avert ("Cannot bind a client interface of a started component"); - } - } - - public void canRebindInterface (final ClientInterface citf) { - if (isStarted(citf.getOwner())) { -// throw new IllegalOperationException( - avert ("Cannot rebind a client interface of a started component"); - } - } - - public void canUnbindInterface (final ClientInterface citf) { - if (isStarted(citf.getOwner())) { -// throw new IllegalOperationException( - avert ("Cannot unbind a client interface of a started component"); - } - } - - public void canChangeAttributeController (final Component component) { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the attribute controller " - +"of an instanciated component"); - } - } - - public void canChangeAttribute ( - final Component component, - final String attributeName) - { - // nothing to do (no veto) - } - - public void canChangeTemplateControllerDescriptor ( - final Component component) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the template controller descriptor" - +" of an instanciated component"); - } - } - - public void canChangeComponentControllerDescriptor ( - final Component component) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { -// throw new IllegalOperationException( - avert ("Cannot change the controller descriptor " - +"of an instanciated component"); - } - } - - public void canAddSubComponent ( - final Component parent, - final Component child) - { - if (isStarted(parent) && getInstance(child) != null) { -// throw new IllegalOperationException( - avert ("Cannot add an instantiated sub component in a started component"); - } - } - - public void canRemoveSubComponent ( - final Component parent, - final Component child) - { - if (isStarted(parent) && getInstance(child) != null) { -// throw new IllegalOperationException( - avert ("Cannot remove an instantiated sub component from a started component"); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ConfigurationListener interface - // ------------------------------------------------------------------------- - - public void changeCountChanged (final Component component, long changeCount) { - // does nothing - } - - public void rootComponentChanged (final Component oldValue) { - // does nothing - } - - public void nameChanged (final Component component, final String oldValue) { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - try { - NameController nc = Fractal.getNameController(ci); - nc.setFcName(component.getName()); - } catch (NoSuchInterfaceException e) { - avert (e.getMessage()); - } - } - } - - public void typeChanged (final Component component, final String oldValue) { - // does nothing - } - - public void implementationChanged ( - final Component component, - final String oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void interfaceNameChanged (final Interface i, final String oldValue) { - // nothing to do (should never be called, because of veto) - } - - public void interfaceSignatureChanged ( - final Interface i, - final String oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void interfaceContingencyChanged ( - final Interface i, - final boolean oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void interfaceCardinalityChanged ( - final Interface i, - final boolean oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void clientInterfaceAdded ( - final Component component, - final ClientInterface i, - final int index) - { - // only called for collection interface - Binding b = i.getBinding(); - if (b != null) { - interfaceBound(i, b.getServerInterface()); - } - } - - public void clientInterfaceRemoved ( - final Component component, - final ClientInterface i, - final int index) - { - // only called for collection interface - Binding b = i.getBinding(); - if (b != null) { - interfaceUnbound(i, b.getServerInterface()); - } - } - - public void serverInterfaceAdded ( - final Component component, - final ServerInterface i, - final int index) - { - // nothing to do (should never be called, because of veto) - } - - public void serverInterfaceRemoved ( - final Component component, - final ServerInterface i, - final int index) - { - // nothing to do (should never be called, because of veto) - } - - public void interfaceBound ( - final ClientInterface citf, - final ServerInterface sitf) - { - org.objectweb.fractal.api.Component ci = getInstance(citf.getOwner()); - org.objectweb.fractal.api.Component si = getInstance(sitf.getOwner()); - if (ci != null && si != null) { - BindingController bc; - try { - bc = Fractal.getBindingController(ci); - Object itf; - if (sitf.isInternal()) { - itf = Fractal.getContentController(si).getFcInternalInterface(sitf.getName()); - } else { - itf = si.getFcInterface(sitf.getName()); - } - bc.bindFc (citf.getName(), itf); - } catch (Exception e) { - avert (e.getMessage()); - return; - } - } - } - - public void interfaceRebound ( - final ClientInterface citf, - final ServerInterface oldSitf) - { - org.objectweb.fractal.api.Component ci = getInstance(citf.getOwner()); - interfaceUnbound(citf, oldSitf); - interfaceBound(citf, citf.getBinding().getServerInterface()); - } - - public void interfaceUnbound ( - final ClientInterface citf, - final ServerInterface sitf) - { - org.objectweb.fractal.api.Component ci = getInstance(citf.getOwner()); - org.objectweb.fractal.api.Component si = getInstance(sitf.getOwner()); - if (ci != null && si != null) { - BindingController bc; - try { - bc = Fractal.getBindingController(ci); - bc.unbindFc (citf.getName()); - } catch (Exception e) { - avert (e.getMessage()); - } - } - } - - public void attributeControllerChanged ( - final Component component, - final String oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void attributeChanged ( - final Component component, - final String attributeName, - final String oldValue) - { - org.objectweb.fractal.api.Component ci = getInstance(component); - if (ci != null) { - try { - AttributeController ac = (AttributeController)ci.getFcInterface( - "attribute-controller"); - if (ac != null) { - Class acc = ac.getClass(); - - String attrName = Character.toUpperCase(attributeName.charAt(0)) + attributeName.substring(1); - String getterName = "get" + attrName; - String setterName = "set" + attrName; - Method getter = acc.getMethod (getterName, new Class[0]); - Method setter = acc.getMethod (setterName, new Class[] { - getter.getReturnType() - }); - - Class attrType = getter.getReturnType(); - String v = component.getAttribute(attributeName); - Object value; - if (attrType.equals(String.class)) { - value = v; - } else if (attrType.isPrimitive()) { - if (attrType.equals(Integer.TYPE)) { - value = Integer.valueOf(v); - } else if (attrType.equals(Long.TYPE)) { - value = Long.valueOf(v); - } else if (attrType.equals(Float.TYPE)) { - value = Float.valueOf(v); - } else if (attrType.equals(Double.TYPE)) { - value = Double.valueOf(v); - } else if (attrType.equals(Byte.TYPE)) { - value = Byte.valueOf(v); - } else if (attrType.equals(Character.TYPE)) { - if (v.length() != 1) { - avert ("Bad char value: " + v); - return; - } - value = new Character(v.charAt(0)); - } else if (attrType.equals(Short.TYPE)) { - value = Short.valueOf(v); - } else if (attrType.equals(Boolean.TYPE)) { - if (!v.equals("true") && - !v.equals("false")) - { - avert ("Bad boolean value: " + v); - return; - } - value = new Boolean(v.equals("true")); - } else { - avert ("Unexpected case"); - return; - } - } else { - avert ("Unsupported attribute type: " + attrType); - return; - } - setter.invoke(ac, new Object[]{value}); - } - } catch (Exception ex) { - avert (ex.getMessage()); - } - } - } - - public void templateControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void componentControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - // nothing to do (should never be called, because of veto) - } - - public void subComponentAdded ( - final Component parent, - final Component child, - final int index) - { - org.objectweb.fractal.api.Component pi = getInstance(parent); - org.objectweb.fractal.api.Component ci = getInstance(child); - if (pi != null && ci != null) { - try { - ContentController cc = Fractal.getContentController(pi); - cc.addFcSubComponent(ci); - List itfs = child.getClientInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - Binding b = ((ClientInterface)itfs.get(i)).getBinding(); - if (b != null) { - addBinding(b, parent, child); - } - } - itfs = child.getServerInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - List bs = ((ServerInterface)itfs.get(i)).getBindings(); - for (int j = 0; j < bs.size(); ++j) { - Binding b = (Binding)bs.get(j); - addBinding(b, parent, child); - } - } - } catch (Exception e) { - avert(e.getMessage()); - } - } - } - - private void addBinding (Binding b, Component parent, Component child) throws Exception { - Component c = b.getClientInterface().getOwner(); - org.objectweb.fractal.api.Component ci = getInstance(c); - String citf = b.getClientInterface().getName(); - Component s = b.getServerInterface().getOwner(); - if ((child == s || parent == s || parent == s.getParent()) && - (child == c || parent == c || parent == c.getParent())) - { - org.objectweb.fractal.api.Component si = getInstance(s); - Object sitf; - if (b.getServerInterface().isInternal()) { - sitf = Fractal.getContentController(si).getFcInternalInterface( - b.getServerInterface().getName()); - } else { - sitf = si.getFcInterface(b.getServerInterface().getName()); - } - Fractal.getBindingController(ci).bindFc(citf, sitf); - } - } - - public void subComponentRemoved ( - final Component parent, - final Component child, - final int index) - { - org.objectweb.fractal.api.Component pi = getInstance(parent); - org.objectweb.fractal.api.Component ci = (org.objectweb.fractal.api.Component)instances.get(child); - if (pi != null && ci != null) { - try { - List itfs = child.getClientInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - Binding b = ((ClientInterface)itfs.get(i)).getBinding(); - if (b != null) { - removeBinding(b, parent, child); - } - } - itfs = child.getServerInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - List bs = ((ServerInterface)itfs.get(i)).getBindings(); - for (int j = 0; j < bs.size(); ++j) { - Binding b = (Binding)bs.get(j); - removeBinding(b, parent, child); - } - } - - ContentController cc; - cc = Fractal.getContentController(pi); - cc.removeFcSubComponent(ci); - } catch (Exception e) { - e.printStackTrace(); - avert (e.getMessage()); - } - } - } - - private void removeBinding (Binding b, Component parent, Component child) throws Exception { - Component c = b.getClientInterface().getOwner(); - org.objectweb.fractal.api.Component ci = - (org.objectweb.fractal.api.Component)instances.get(c); - Component s = b.getServerInterface().getOwner(); - if ((child == s || parent == s || parent == s.getParent()) && - (child == c || parent == c || parent == c.getParent())) - { - Fractal.getBindingController(ci).unbindFc(b.getClientInterface().getName()); - } - } - - private void avert (String motif) { - JOptionPane.showMessageDialog ( - null, motif, "Error", JOptionPane.ERROR_MESSAGE); - throw new IllegalOperationException(motif); - } - -/** - * This subclass asks for a method name. - */ - - /** - * Font Arial, plain, 13 pts - */ - static public final Font fnta13 = new Font ("Arial", Font.PLAIN, 13); - - class FrameChoiceBox extends JDialog implements ActionListener { - JPanel panel = new JPanel(); - JButton [] unit; - - protected void processWindowEvent(WindowEvent e) { - if (e.getID() == WindowEvent.WINDOW_CLOSING) { cancel(); } - super.processWindowEvent(e); - } - - void cancel() { range = -1; dispose(); } - - public void actionPerformed (ActionEvent e) { - range = -1; - for (int i = 0; i < unit.length; i++) { - if (e.getActionCommand().equals(unit[i].getText())) { - range = i; break; - } - } - dispose(); - } - - public FrameChoiceBox (String titre, String [] items) { - unit = new JButton [items.length]; - enableEvents (AWTEvent.WINDOW_EVENT_MASK); - Dimension dim = new Dimension (300, 20+items.length*25); - - try { - this.setTitle(titre); - Container cp = getContentPane (); - cp.setLayout(new BoxLayout(cp, BoxLayout.Y_AXIS)); - setResizable(true); - - Color curcol = Color.lightGray; - for (int i = 0; i < items.length; i++) { - unit[i] = new JButton (items[i]); - unit[i].setPreferredSize(new Dimension(150, 20)); - unit[i].setFont(fnta13); - FontMetrics fm = unit[i].getFontMetrics(fnta13); - int d = 0; - for (int z = 0; z < items[i].length(); z++) - d = d + fm.charWidth(items[i].charAt(z)); - unit[i].setBorder(new EmptyBorder (2, 1, 2, 70-d)); - unit[i].setBackground(curcol); - unit[i].setForeground(Color.black); - unit[i].addActionListener(this); - cp.add(unit[i]); - } - setModal(true); - this.setSize(dim); - this.setLocation(300, 300); - pack (); - show (); - } - catch(Exception e) { e.printStackTrace(); } - } - } -// -------------------------- -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpFactory.fractal b/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpFactory.fractal deleted file mode 100644 index 48a2d6e1ba8757eeaca6fdf4cab3cf53d06fc7dd..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpFactory.fractal +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpStorageLoader.java b/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpStorageLoader.java deleted file mode 100644 index 83a6f450683c646b2723e7cb9898a2d67001fa09..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/admin/model/TmpStorageLoader.java +++ /dev/null @@ -1,56 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.admin.model; - -import java.util.Map; - -import org.objectweb.fractal.adl.ADLException; -import org.objectweb.fractal.adl.Definition; -import org.objectweb.fractal.adl.Loader; -import org.objectweb.fractal.gui.repository.api.Storage; -import org.objectweb.fractal.gui.repository.lib.XMLFileStorage; - -public class TmpStorageLoader implements Loader { - - // ------------------------------------------------------------------------- - // Implementation of the Loader interface - // ------------------------------------------------------------------------- - - public Definition load (final String name, final Map context) - throws ADLException - { - Storage storage = new XMLFileStorage(); - try { - storage.open("tmp"); - try { - return (Definition)storage.load(name); - } finally { - storage.close(); - } - } catch (Exception e) { - throw new ADLException("Cannot load '" + name + "'", null, e); - } - } -} - diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/ClipboardAction.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/ClipboardAction.java deleted file mode 100644 index 467889da66ac319ece7736a272c8ae94d36958d4..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/ClipboardAction.java +++ /dev/null @@ -1,160 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.control; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.selection.model.SelectionListener; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.graph.model.GraphModel; -import org.objectweb.fractal.gui.model.Factory; -import org.objectweb.fractal.gui.clipboard.model.Clipboard; -import org.objectweb.fractal.swing.AbstractAction; - -/** - * Super class of actions that acts on a clipboard model. This action - * listens to a {@link Selection selection} model in order to enable or disable - * itfself when the selection changes. - */ - -public abstract class ClipboardAction extends AbstractAction implements - SelectionListener, - BindingController -{ - - /** - * A mandatory client interface bound to a {@link Selection selection} model. - * This model is used to known the component that must be cut or copied, or - * the component into which the clipboard's content must be pasted. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * A mandatory client interface bound to a {@link GraphModel graph} model. - * This graph model is passed as argument to the clipboard model methods by - * this controller component. - */ - - public final static String GRAPH_BINDING = "graph"; - - /** - * A mandatory client interface bound to a {@link Factory factory}. This - * factory is passed as argument to the clipboard model methods by this - * controller component. - */ - - public final static String FACTORY_BINDING = "configuration-factory"; - - /** - * A mandatory client interface bound to a {@link Clipboard clipboard} model. - * This is the model that is modified by this controller component. - */ - - public final static String CLIPBOARD_BINDING = "clipboard"; - - /** - * The selection client interface. - */ - - Selection selection; - - /** - * The graph client interface. - */ - - GraphModel graph; - - /** - * The factory client interface. - */ - - Factory factory; - - /** - * The clipboard client interface. - */ - - Clipboard clipboard; - - /** - * Constructs a new {@link ClipboardAction} component. - */ - - public ClipboardAction () { - } - - // ------------------------------------------------------------------------- - // Implementation of the BindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - SELECTION_BINDING, - GRAPH_BINDING, - FACTORY_BINDING, - CLIPBOARD_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } else if (GRAPH_BINDING.equals(clientItfName)) { - return graph; - } else if (FACTORY_BINDING.equals(clientItfName)) { - return factory; - } else if (CLIPBOARD_BINDING.equals(clientItfName)) { - return clipboard; - } - return null; - } - - public void bindFc ( - final String clientItfName, - final Object serverItf) - { - if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } else if (GRAPH_BINDING.equals(clientItfName)) { - graph = (GraphModel)serverItf; - } else if (FACTORY_BINDING.equals(clientItfName)) { - factory = (Factory)serverItf; - } else if (CLIPBOARD_BINDING.equals(clientItfName)) { - clipboard = (Clipboard)serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } else if (GRAPH_BINDING.equals(clientItfName)) { - graph = null; - } else if (FACTORY_BINDING.equals(clientItfName)) { - factory = null; - } else if (CLIPBOARD_BINDING.equals(clientItfName)) { - clipboard = null; - } - } -} \ No newline at end of file diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CopyAction.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CopyAction.java deleted file mode 100644 index ea3bf8071e25f6220aef15ea03b8d0c76c5fa5bb..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CopyAction.java +++ /dev/null @@ -1,77 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.control; - -import org.objectweb.fractal.gui.model.Component; - -import java.net.URL; -import java.awt.event.ActionEvent; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; - -/** - * An action that just calls the {@link - * org.objectweb.fractal.gui.clipboard.model.Clipboard#copy copy} method on a - * {@link org.objectweb.fractal.gui.clipboard.model.Clipboard}. - */ - -public class CopyAction extends ClipboardAction { - - /** - * Constructs a new {@link CopyAction} component. - */ - - public CopyAction () { - putValue(NAME, "Copy"); - putValue(SHORT_DESCRIPTION, "Copy"); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control C")); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/editcopy.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - setEnabled(false); - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled(clipboard.canCopy((Component)o)); - } else { - setEnabled(clipboard.canCopy(null)); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - clipboard.copy((Component)o, graph, factory); - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CutAction.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CutAction.java deleted file mode 100644 index d9cd51a8f5e1006416522563ba6f8c53fdaddc49..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/CutAction.java +++ /dev/null @@ -1,85 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.control; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.IllegalOperationException; - -import java.net.URL; -import java.awt.event.ActionEvent; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; -import javax.swing.JOptionPane; - -/** - * An action that just calls the {@link - * org.objectweb.fractal.gui.clipboard.model.Clipboard#cut cut} method on a - * {@link org.objectweb.fractal.gui.clipboard.model.Clipboard}. - */ - -public class CutAction extends ClipboardAction { - - /** - * Constructs a new {@link CutAction} component. - */ - - public CutAction () { - putValue(NAME, "Cut"); - putValue(SHORT_DESCRIPTION, "Cut"); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control X")); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/editcut.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - setEnabled(false); - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled(clipboard.canCut((Component)o)); - } else { - setEnabled(clipboard.canCut(null)); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - try { - clipboard.cut((Component)o, graph, factory); - } catch (IllegalOperationException ioe) { - JOptionPane.showMessageDialog( - null, ioe.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - selection.clearSelection(); - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAction.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAction.java deleted file mode 100644 index 5a36b2ba1fb639f1f021989944b1284e394e6153..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAction.java +++ /dev/null @@ -1,78 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.control; - -import org.objectweb.fractal.gui.model.Component; - -import java.net.URL; -import java.awt.event.ActionEvent; - -import javax.swing.ImageIcon; -import javax.swing.KeyStroke; - -/** - * An action that just calls the {@link - * org.objectweb.fractal.gui.clipboard.model.Clipboard#paste paste} method on a - * {@link org.objectweb.fractal.gui.clipboard.model.Clipboard}. - */ - -public class PasteAction extends ClipboardAction { - - /** - * Constructs a new {@link PasteAction} component. - */ - - public PasteAction () { - putValue(NAME, "Paste"); - putValue(SHORT_DESCRIPTION, "Paste"); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control V")); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/editpaste.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - setEnabled(false); - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled(clipboard.canPaste((Component)o)); - } else { - setEnabled(clipboard.canPaste(null)); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - clipboard.paste((Component)o, graph, factory); - } -} - diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAsSharedAction.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAsSharedAction.java deleted file mode 100644 index c06bba5cfdb90f58c7c543d89a2674ccd79f79d9..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/PasteAsSharedAction.java +++ /dev/null @@ -1,85 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.control; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.IllegalOperationException; - -import java.net.URL; -import java.awt.event.ActionEvent; - -import javax.swing.ImageIcon; -import javax.swing.JOptionPane; -import javax.swing.KeyStroke; - -/** - * An action that just calls the {@link - * org.objectweb.fractal.gui.clipboard.model.Clipboard#pasteAsShared - * pasteAsShared} method on a {@link - * org.objectweb.fractal.gui.clipboard.model.Clipboard}. - */ - -public class PasteAsSharedAction extends ClipboardAction { - - /** - * Constructs a new {@link PasteAsSharedAction} component. - */ - - public PasteAsSharedAction () { - putValue(NAME, "Paste as shared"); - putValue(SHORT_DESCRIPTION, "Paste as shared"); - putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke("control shift V")); - URL url = getClass().getResource( - "/org/objectweb/fractal/gui/resources/empty.gif"); - putValue(SMALL_ICON, new ImageIcon(url)); - setEnabled(false); - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o instanceof Component) { - setEnabled(clipboard.canPasteAsShared((Component)o)); - } else { - setEnabled(clipboard.canPasteAsShared(null)); - } - } - - // ------------------------------------------------------------------------- - // Implementation of the ActionListener interface - // ------------------------------------------------------------------------- - - public void actionPerformed (final ActionEvent e) { - Object o = selection.getSelection(); - try { - clipboard.pasteAsShared((Component)o, graph, factory); - } catch (IllegalOperationException ioe) { - JOptionPane.showMessageDialog( - null, ioe.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/package.html b/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/package.html deleted file mode 100644 index 1d28620b3cd9a5229632a4303e8d1f56d054674b..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/control/package.html +++ /dev/null @@ -1,5 +0,0 @@ - -Provides actions to modify the clipboard model, in reaction to clipboard view -events. -@since Fractal 1.1 - \ No newline at end of file diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/BasicClipboard.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/BasicClipboard.java deleted file mode 100644 index ab0cef6629c70b497d4a2128ed23c89da1877cdb..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/BasicClipboard.java +++ /dev/null @@ -1,403 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.model; - -import org.objectweb.fractal.gui.model.Factory; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Interface; -import org.objectweb.fractal.gui.model.ClientInterface; -import org.objectweb.fractal.gui.model.ServerInterface; -import org.objectweb.fractal.gui.graph.model.GraphModel; -import org.objectweb.fractal.gui.graph.model.BasicGraphModel; - -import java.util.List; -import java.util.Map; -import java.util.HashMap; - -/** - * Basic implementation of the {@link Clipboard} interface. - */ - -public class BasicClipboard implements Clipboard { - - /** - * Reference to the last component that was cut or copied. - */ - - private Component original; - - /** - * Clone of {@link #original}, i.e. of the last component that was cut or - * copied. This clone is null if original is a slave component. - */ - - private Component copy; - - /** - * Internal graph model used to store the coordinates of {@link #clone}. - */ - - private GraphModel graph; - - /** - * Constructs a new {@link Clipboard} component. - */ - - public BasicClipboard () { - graph = new BasicGraphModel(); - } - - // ------------------------------------------------------------------------- - // Implementation of the Clipboard interface - // ------------------------------------------------------------------------- - - public boolean canCut (final Component srcComponent) { - return srcComponent != null && srcComponent.getParent() != null; - } - - public void cut ( - final Component srcComponent, - final GraphModel srcGraph, - final Factory srcFactory) - { - original = srcComponent; - if (original.getMasterComponent() == null) { - copy = clone(srcComponent, srcGraph, graph, srcFactory); - } - Component parent = srcComponent.getParent(); - parent.removeSubComponent(srcComponent); - } - - public boolean canCopy (final Component srcComponent) { - return srcComponent != null; - } - - public void copy ( - final Component srcComponent, - final GraphModel srcGraph, - final Factory srcFactory) - { - original = srcComponent; - if (original.getMasterComponent() == null) { - copy = clone(srcComponent, srcGraph, graph, srcFactory); - } - } - - public boolean canPaste (final Component dstComponent) { - if (original != null && original.getMasterComponent() != null) { - return canPasteAsShared(dstComponent); - } else if (dstComponent != null && copy != null) { - if (copy.containsSlaveOfExternalComponent(copy)) { - return dstComponent.getRootComponent() == original.getRootComponent(); - } else { - return true; - } - } - return false; - } - - public void paste ( - final Component dstComponent, - final GraphModel dstGraph, - final Factory dstFactory) - { - if (original != null && original.getMasterComponent() != null) { - pasteAsShared(dstComponent, dstGraph, dstFactory); - } else { - Component child = clone(copy, graph, dstGraph, dstFactory); - dstComponent.addSubComponent(child); - } - } - - public boolean canPasteAsShared (final Component dstComponent) { - if (dstComponent != null && original != null) { - // can paste as shared only if the components have the same root component - return dstComponent.getRootComponent() == original.getRootComponent(); - } - return false; - } - - public void pasteAsShared ( - final Component dstComponent, - final GraphModel dstGraph, - final Factory dstFactory) - { - Component child = dstFactory.createComponent(original); - dstComponent.addSubComponent(child); - } - - // ------------------------------------------------------------------------- - // Other methods - // ------------------------------------------------------------------------- - - /** - * Clones the given component and all its sub components. - * - * @param c the component to be cloned. Must not be a slave component. - * @param srcGraph the model containing the coordinates of c. - * @param dstGraph the model into which the clone's coordinates must be put. - * @param f the factory to be used to create the clone. - * @return a clone of the given component. - */ - - private Component clone ( - final Component c, - final GraphModel srcGraph, - final GraphModel dstGraph, - final Factory f) - { - if (c.getMasterComponent() != null) { - throw new RuntimeException("Internal error"); - } - Map clones = new HashMap(); - cloneMasterComponents(c, f, clones); - cloneSlaveComponents(c, f, clones); - return clone(c, srcGraph, dstGraph, clones); - } - - /** - * Clones all the master components in the given component. This method just - * clones the components and their interfaces (except slave collection - * interfaces): it does not clone any binding or component's coordinates. - * - * @param c the component whose master sub components must be cloned. - * @param f the factory to be used to create the clones. - * @param clones a map associating the {@link BasicClipboard.Clone - * clones} to the original components. This map is filled in by this - * method. - */ - - private void cloneMasterComponents ( - final Component c, - final Factory f, - final Map clones) - { - if (c.getMasterComponent() == null) { - Component d = f.createComponent(); - Clone clone = new Clone(d); - - // clone server interface - List itfs = c.getServerInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - Interface itf = (Interface)itfs.get(i); - if (itf.isCollection() && itf.getMasterCollectionInterface() != null) { - // do not clone slave collection interfaces - continue; - } - Interface citf = f.createServerInterface(d); - citf.setName(itf.getName()); - citf.setSignature(itf.getSignature()); - citf.setIsOptional(itf.isOptional()); - citf.setIsCollection(itf.isCollection()); - d.addServerInterface((ServerInterface)citf); - clone.interfaceClones.put(itf, citf); - clone.interfaceClones.put( - itf.getComplementaryInterface(), citf.getComplementaryInterface()); - } - - // clone client interfaces - itfs = c.getClientInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - Interface itf = (Interface)itfs.get(i); - if (itf.isCollection() && itf.getMasterCollectionInterface() != null) { - // do not clone slave collection interfaces - continue; - } - Interface citf = f.createClientInterface(d); - citf.setName(itf.getName()); - citf.setSignature(itf.getSignature()); - citf.setIsOptional(itf.isOptional()); - citf.setIsCollection(itf.isCollection()); - d.addClientInterface((ClientInterface)citf); - clone.interfaceClones.put(itf, citf); - clone.interfaceClones.put( - itf.getComplementaryInterface(), citf.getComplementaryInterface()); - } - - clones.put(c, clone); - } - List subComponents = c.getSubComponents(); - for (int i = 0; i < subComponents.size(); ++i) { - cloneMasterComponents((Component)subComponents.get(i), f, clones); - } - } - - /** - * Clones all the slave components in the given component. This method just - * clones the components: it does not clone any interface, binding or - * component's coordinates. - * - * @param c the component whose slave sub components must be cloned. - * @param f the factory to be used to create the clones. - * @param clones a map associating the {@link BasicClipboard.Clone clones} to - * the original components. This map is used to find the clone of the - * master components of the slave components, and to store the clones - * created by this method. - */ - - private void cloneSlaveComponents ( - final Component c, - final Factory f, - final Map clones) - { - Component master = c.getMasterComponent(); - if (master != null) { - if (clones.get(master) != null) { - master = ((Clone)clones.get(master)).clone; - } - clones.put(c, new Clone(f.createComponent(master))); - } - List subComponents = c.getSubComponents(); - for (int i = 0; i < subComponents.size(); ++i) { - cloneSlaveComponents((Component)subComponents.get(i), f, clones); - } - } - - /** - * Finishes the cloning of the given component. This method does not clone any - * component: it just completes the initialization of the cloned components, - * that have been previously constructed, and are available in the give map. - * This method constructs the clones hierarchy (by adding sub component clones - * in the clone of their parent component). It also clones the bindings and - * the component's coordinates. - * - * @param c the component whose cloning must be finished. - * @param srcGraph the model containing the coordinates of c. - * @param dstGraph the model into which the clone's coordinates must be put. - * @param clones a map associating the {@link BasicClipboard.Clone clones} to - * the original components. This map is just read by this method. It must - * be properly initialized before calling this method. - * @return the clone of the given component. - */ - - private Component clone ( - final Component c, - final GraphModel srcGraph, - final GraphModel dstGraph, - final Map clones) - { - Clone clone = (Clone)clones.get(c); - Component d = clone.clone; - d.setName(c.getName()); - d.setType(c.getType()); - d.setImplementation(c.getImplementation()); - - // controller part - d.setAttributeController(c.getAttributeController()); - List attrNames = c.getAttributeNames(); - for (int i = 0; i < attrNames.size(); ++i) { - String attrName = (String)attrNames.get(i); - d.setAttribute(attrName, c.getAttribute(attrName)); - } - d.setTemplateControllerDescriptor(c.getTemplateControllerDescriptor()); - d.setComponentControllerDescriptor(c.getComponentControllerDescriptor()); - - // sub components - List subComponents = c.getSubComponents(); - for (int i = 0; i < subComponents.size(); ++i) { - d.addSubComponent( - clone((Component)subComponents.get(i), srcGraph, dstGraph, clones)); - } - - // bindings - // TODO attention aux itfs de type collection - List itfs = c.getServerInterfaces(); - for (int i = 0; i < itfs.size(); ++i) { - Interface itf = (Interface)itfs.get(i); - ClientInterface citf = (ClientInterface)itf.getComplementaryInterface(); - if (citf.getBinding() != null) { - ServerInterface sitf = citf.getBinding().getServerInterface(); - Clone sclone = (Clone)clones.get(sitf.getOwner()); - if (sclone != null) { - citf = (ClientInterface)clone.interfaceClones.get(citf); - sitf = (ServerInterface)sclone.interfaceClones.get(sitf); - if (citf != null && sitf != null) { - citf.getOwner().bind(citf, citf.getName(), sitf); - } - } - } - } - for (int i = 0; i < subComponents.size(); ++i) { - Component subComponent = (Component)subComponents.get(i); - itfs = subComponent.getClientInterfaces(); - for (int j = 0; j < itfs.size(); ++j) { - ClientInterface citf = (ClientInterface)itfs.get(j); - if (citf.getBinding() != null) { - ServerInterface sitf = citf.getBinding().getServerInterface(); - Clone cclone = (Clone)clones.get(citf.getOwner()); - Clone sclone = (Clone)clones.get(sitf.getOwner()); - if (cclone != null && sclone != null) { - if (citf.getMasterCollectionInterface() != null) { - citf = (ClientInterface)citf.getMasterCollectionInterface(); - } - citf = (ClientInterface)cclone.interfaceClones.get(citf); - sitf = (ServerInterface)sclone.interfaceClones.get(sitf); - if (citf != null && sitf != null) { - citf.getOwner().bind(citf, citf.getName(), sitf); - } - } - } - } - } - - // positions and colors - if (srcGraph != null && dstGraph != null) { - dstGraph.setComponentPosition(d, srcGraph.getComponentPosition(c)); - dstGraph.setComponentColor(d, srcGraph.getComponentColor(c)); - } - - return d; - } - - /** - * Information about a cloned component. - */ - - static class Clone { - - /** - * The clone component. - */ - - public Component clone; - - /** - * A map associating the interfaces of {@link #clone} to the interfaces of - * the original component. - */ - - public Map interfaceClones; - - /** - * Constructs a new {@link BasicClipboard.Clone} object. - * - * @param clone a cloned component. - */ - - public Clone (final Component clone) { - this.clone = clone; - this.interfaceClones = new HashMap(); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/Clipboard.java b/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/Clipboard.java deleted file mode 100644 index c8d1ef075fca9fd22a3d0a3957a85e592db66317..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/Clipboard.java +++ /dev/null @@ -1,133 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.clipboard.model; - -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Factory; -import org.objectweb.fractal.gui.graph.model.GraphModel; - -/** - * A model for the clipboard. - */ - -public interface Clipboard { - - /** - * Returns true if the given component can be cut. - * - * @param srcComponent the component to be cut. - * @return true if the given component can be cut. - */ - - boolean canCut (Component srcComponent); - - /** - * Cuts the given component. - * - * @param srcComponent the component to be cut. - * @param srcGraph the graph model that contains the coordinates of the - * component. - * @param srcFactory the factory to be used to create a clone of the given - * component. This clone is then stored in the clipboard. - */ - - void cut (Component srcComponent, GraphModel srcGraph, Factory srcFactory); - - /** - * Returns true if the given component can be copied. - * - * @param srcComponent the component to be copied. - * @return true if the given component can be copie. - */ - - boolean canCopy (Component srcComponent); - - /** - * Copies the given component. - * - * @param srcComponent the component to be copied. - * @param srcGraph the graph model that contains the coordinates of the - * component. - * @param srcFactory the factory to be used to create a clone of the given - * component. This clone is then stored in the clipboard. - */ - - void copy (Component srcComponent, GraphModel srcGraph, Factory srcFactory); - - /** - * Returns true if the clipboard's content can be pasted into the - * given component. - * - * @param dstComponent the component into which the clipboard's content must - * be pasted. - * @return true if the clipboard is not empty, and if its content can - * be pasted into the given component. - */ - - boolean canPaste (Component dstComponent); - - /** - * Pastes the clipboard's content into the given component. - * - * @param dstComponent the component into which the clipboard's content must - * be pasted. - * @param dstGraph the graph model into which the coordinates of the - * clipboard's component must be pasted. - * @param dstFactory the factory to be used to create a clone of the - * clipboard's content. This clone is then added as a sub component of - * the given component. - */ - - void paste (Component dstComponent, GraphModel dstGraph, Factory dstFactory); - - /** - * Returns true if the clipboard's content can be pasted into the - * given component as a shared component. - * - * @param dstComponent the component into which the clipboard's content must - * be pasted as a shared component. - * @return true if the clipboard is not empty, and if its content can - * be pasted into the given component as a shared component. - */ - - boolean canPasteAsShared (Component dstComponent); - - /** - * Pastes the clipboard's content into the given component, as a shared - * component. - * - * @param dstComponent the component into which the clipboard's content must - * be pasted. - * @param dstGraph the graph model into which the coordinates of the - * clipboard's component must be pasted. - * @param dstFactory the factory to be used to create a slave component of the - * clipboard's content. This slave component is then added as a sub - * component of the given component. - */ - - void pasteAsShared ( - Component dstComponent, - GraphModel dstGraph, - Factory dstFactory); -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/package.html b/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/package.html deleted file mode 100644 index 3227308d3e348d8aab1e8ad1d88d7849dcf86d9f..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/clipboard/model/package.html +++ /dev/null @@ -1,4 +0,0 @@ - -Provides a model for the clipboard. -@since Fractal 1.1 - diff --git a/fractalgui/src/org/objectweb/fractal/gui/dialog/control/BasicDialogController.java b/fractalgui/src/org/objectweb/fractal/gui/dialog/control/BasicDialogController.java deleted file mode 100644 index 8f91bb0dc59c3b17275aa1185390b97ca7dc2ecd..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/dialog/control/BasicDialogController.java +++ /dev/null @@ -1,218 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.dialog.control; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.dialog.model.DialogModel; -import org.objectweb.fractal.gui.dialog.view.DialogViewListener; -import org.objectweb.fractal.gui.model.ClientInterface; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Configuration; -import org.objectweb.fractal.gui.model.Factory; -import org.objectweb.fractal.gui.model.ServerInterface; -import org.objectweb.fractal.gui.model.IllegalOperationException; -import org.objectweb.fractal.gui.selection.model.Selection; - -import javax.swing.JOptionPane; - -/** - * A controller component for dialog view components. This component modifies - * a dialog model, in reaction to events emitted by a dialog view. - */ - -public class BasicDialogController implements - DialogViewListener, - BindingController -{ - - /** - * A mandatory client interface bound to a {@link Configuration configuration} - * model. This model is used to get the component to which interfaces or - * attributes must be added or removed by this controller (the component used - * is the root component of the configuration). - */ - - public final static String CONFIGURATION_BINDING = "configuration"; - - /** - * A mandatory client interface bound to a {@link Selection selection} - * model. This model is used to get the interface that must be removed when - * a "remove interface" button is clicked. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * A mandatory client interface bound to a {@link DialogModel dialog} model. - * This model is used to get selection model of the attribute table, which is - * itself used to find the attribute to be removed when the "remove attribute" - * button is clicked. - */ - - public final static String DIALOG_MODEL_BINDING = "dialog-model"; - - /** - * A mandatory client interface bound to a {@link Factory factory}. This - * factory is used to create interfaces when a "add interface" button is - * clicked. - */ - - public final static String FACTORY_BINDING = "configuration-factory"; - - /** - * The configuration client interface. - */ - - private Configuration configuration; - - /** - * The selection client interface. - */ - - private Selection selection; - - /** - * The dialog model client interface. - */ - - private DialogModel model; - - /** - * The factory client interface. - */ - - private Factory factory; - - /** - * Constructs a new {@link BasicDialogController} component. - */ - - public BasicDialogController () { - } - - // ------------------------------------------------------------------------- - // Implementation of the BindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - CONFIGURATION_BINDING, - SELECTION_BINDING, - DIALOG_MODEL_BINDING, - FACTORY_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - return configuration; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } else if (DIALOG_MODEL_BINDING.equals(clientItfName)) { - return model; - } else if (FACTORY_BINDING.equals(clientItfName)) { - return factory; - } - return null; - } - - public void bindFc ( - final String clientItfName, - final Object serverItf) - { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = (Configuration) serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - } else if (DIALOG_MODEL_BINDING.equals(clientItfName)) { - model = (DialogModel) serverItf; - } else if (FACTORY_BINDING.equals(clientItfName)) { - factory = (Factory) serverItf; - } - } - - public void unbindFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - } else if (DIALOG_MODEL_BINDING.equals(clientItfName)) { - model = null; - } else if (FACTORY_BINDING.equals(clientItfName)) { - factory = null; - } - } - - // ------------------------------------------------------------------------- - // Implementation of the DialogViewListener interface - // ------------------------------------------------------------------------- - - public void addClientInterfaceButtonClicked () { - Component component = configuration.getRootComponent(); - ClientInterface i = factory.createClientInterface(component); - component.addClientInterface(i); - } - - public void removeClientInterfaceButtonClicked () { - try { - ClientInterface i = (ClientInterface)selection.getSelection(); - i.getOwner().removeClientInterface(i); - selection.clearSelection(); - } catch (IllegalOperationException ioe) { - JOptionPane.showMessageDialog( - null, ioe.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - } - - public void addServerInterfaceButtonClicked () { - Component component = configuration.getRootComponent(); - ServerInterface i = factory.createServerInterface(component); - component.addServerInterface(i); - } - - public void removeServerInterfaceButtonClicked () { - try { - ServerInterface i = (ServerInterface)selection.getSelection(); - i.getOwner().removeServerInterface(i); - selection.clearSelection(); - } catch (IllegalOperationException ioe) { - JOptionPane.showMessageDialog( - null, ioe.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); - } - } - - public void addAttributeButtonClicked () { - Component component = configuration.getRootComponent(); - int index = component.getAttributeNames().size(); - component.setAttribute("attribute " + index, "empty"); - } - - public void removeAttributeButtonClicked () { - Component component = configuration.getRootComponent(); - int index = model.getAttributesTableSelectionModel().getMinSelectionIndex(); - String name = (String)component.getAttributeNames().get(index); - component.setAttribute(name, null); - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/dialog/control/package.html b/fractalgui/src/org/objectweb/fractal/gui/dialog/control/package.html deleted file mode 100644 index 954cd057407d08910fdb057cbc47674891254ed2..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/dialog/control/package.html +++ /dev/null @@ -1,5 +0,0 @@ - -Provides a controller to modify the dialog model, in reaction to dialog view -events. -@since Fractal 1.1 - \ No newline at end of file diff --git a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/AttributeTableModel.java b/fractalgui/src/org/objectweb/fractal/gui/dialog/model/AttributeTableModel.java deleted file mode 100644 index c4d66f4a24ad51472e05ee61e10cc198447c065b..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/AttributeTableModel.java +++ /dev/null @@ -1,112 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.dialog.model; - -import org.objectweb.fractal.gui.model.Component; - -import javax.swing.table.AbstractTableModel; - -/** - * A {@link javax.swing.table.TableModel} based on a {@link Component} model - * that represents attribute names and values. This model makes a conversion - * from a {@link Component} model to a {@link javax.swing.table.TableModel}. - */ - -public class AttributeTableModel extends AbstractTableModel { - - /** - * The component model on which this model is based. - */ - - private Component model; - - /** - * Sets the component model on which this model is based. - * - * @param model a component. - */ - - void setComponentModel (final Component model) { - this.model = model; - fireTableDataChanged(); - } - - /** - * Notifies this model that an attribute has changed in {@link #model}. - * - * @param attributeName the attribute that has changed. - * @param oldValue the old value of this attribute. - */ - - void attributeChanged (final String attributeName, final String oldValue) { - fireTableDataChanged(); - } - - // ------------------------------------------------------------------------- - // Implementation of the TableModel interface - // ------------------------------------------------------------------------- - - public int getRowCount () { - if (model == null) { - return 0; - } - return model.getAttributeNames().size(); - } - - public int getColumnCount () { - return 2; - } - - public String getColumnName (final int column) { - return column == 0 ? "Name" : "Value"; - } - - public boolean isCellEditable (final int rowIndex, final int columnIndex) { - return true; - } - - public Object getValueAt (final int rowIndex, final int columnIndex) { - Object key = model.getAttributeNames().get(rowIndex); - if (columnIndex == 0) { - return key; - } else { - return model.getAttribute((String)key); - } - } - - public void setValueAt ( - final Object aValue, - final int rowIndex, - final int columnIndex) - { - String key = (String)model.getAttributeNames().get(rowIndex); - if (columnIndex == 0) { - String value = model.getAttribute(key); - model.setAttribute(key, null); - model.setAttribute((String)aValue, value); - } else { - model.setAttribute(key, (String)aValue); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/BasicDialogModel.java b/fractalgui/src/org/objectweb/fractal/gui/dialog/model/BasicDialogModel.java deleted file mode 100644 index 70c8dc0cf32eee16de550665d65730f329e9a357..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/BasicDialogModel.java +++ /dev/null @@ -1,497 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.objectweb.fractal.gui.dialog.model; - -import org.objectweb.fractal.api.control.BindingController; - -import org.objectweb.fractal.gui.model.ClientInterface; -import org.objectweb.fractal.gui.model.Component; -import org.objectweb.fractal.gui.model.Configuration; -import org.objectweb.fractal.gui.model.ConfigurationListener; -import org.objectweb.fractal.gui.model.Interface; -import org.objectweb.fractal.gui.model.ServerInterface; -import org.objectweb.fractal.gui.selection.model.Selection; -import org.objectweb.fractal.gui.selection.model.SelectionListener; - -import javax.swing.DefaultListSelectionModel; -import javax.swing.ListSelectionModel; -import javax.swing.table.TableModel; -import javax.swing.text.Document; - -/** - * Basic implementation of the {@link DialogModel} interface. This mode listens - * to the configuration and selection models in order to update itself when the - * configuration or the selection changes. - */ - -public class BasicDialogModel implements - DialogModel, - ConfigurationListener, - SelectionListener, - BindingController -{ - - /** - * A mandatory client interface bound to a {@link Configuration configuration} - * model. This configuration is used to get the component on which this dialog - * model is based (this component is the root component of the configuration). - */ - - public final static String CONFIGURATION_BINDING = "configuration"; - - /** - * A mandatory client interface bound to a {@link Selection selection} model. - * This is the model on which the Swing list selection models of this model - * are based. - */ - - public final static String SELECTION_BINDING = "selection"; - - /** - * The configuration client interface. - */ - - private Configuration configuration; - - /** - * The selection client interface. - */ - - private Selection selection; - - /** - * The table models representing the external interfaces. - */ - - private InterfaceTableModel[] itfTableModel; - - /** - * The table selection models representing the external interfaces. - */ - - private InterfaceTableSelectionModel[] itfTableSelectionModel; - - /** - * The table model representing the attributes. - */ - - private AttributeTableModel attrTableModel; - - /** - * The table selection model representing the attributes. - */ - - private ListSelectionModel attrTableSelectionModel; - - /** - * The text field model representing the component's name. - */ - - private TextFieldModel nameFieldModel; - - /** - * The text field model representing the component's type. - */ - - private TextFieldModel typeFieldModel; - - /** - * The text field model representing the component's implementation. - */ - - private TextFieldModel implementationFieldModel; - - /** - * The text field model representing the component's attribute controller. - */ - - private TextFieldModel attrControllerFieldModel; - - /** - * The text field model representing the component's template controller - * descriptor. - */ - - private TextFieldModel tmplControllerDescFieldModel; - - /** - * The text field model representing the component's controller descriptor. - */ - - private TextFieldModel compControllerDescFieldModel; - - /** - * Constructs a new {@link BasicDialogModel} component. - */ - - public BasicDialogModel () { - itfTableModel = new InterfaceTableModel[2]; - itfTableSelectionModel = new InterfaceTableSelectionModel[2]; - for (int i = 0; i < 2; ++i) { - itfTableModel[i] = new InterfaceTableModel(i == 0); - itfTableSelectionModel[i] = new InterfaceTableSelectionModel(i == 0); - } - - attrTableModel = new AttributeTableModel(); - attrTableSelectionModel = new DefaultListSelectionModel(); - attrTableSelectionModel.setSelectionMode( - ListSelectionModel.SINGLE_SELECTION); - - nameFieldModel = new TextFieldModel(TextFieldModel.NAME); - typeFieldModel = new TextFieldModel(TextFieldModel.TYPE); - implementationFieldModel = - new TextFieldModel(TextFieldModel.IMPLEMENTATION); - attrControllerFieldModel = - new TextFieldModel(TextFieldModel.ATTRIBUTE_CONTROLLER); - tmplControllerDescFieldModel = - new TextFieldModel(TextFieldModel.TEMPLATE_CONTROLLER_DESC); - compControllerDescFieldModel = - new TextFieldModel(TextFieldModel.COMPONENT_CONTROLLER_DESC); - } - - // ------------------------------------------------------------------------- - // Implementation of the BindingController interface - // ------------------------------------------------------------------------- - - public String[] listFc () { - return new String[] { - CONFIGURATION_BINDING, - SELECTION_BINDING - }; - } - - public Object lookupFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - return configuration; - } else if (SELECTION_BINDING.equals(clientItfName)) { - return selection; - } - return null; - } - - public void bindFc ( - final String clientItfName, - final Object serverItf) - { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = (Configuration) serverItf; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = (Selection)serverItf; - for (int i = 0; i < itfTableSelectionModel.length; ++i) { - itfTableSelectionModel[i].setSelection(selection); - } - } - } - - public void unbindFc (final String clientItfName) { - if (CONFIGURATION_BINDING.equals(clientItfName)) { - configuration = null; - } else if (SELECTION_BINDING.equals(clientItfName)) { - selection = null; - for (int i = 0; i < itfTableSelectionModel.length; ++i) { - itfTableSelectionModel[i].setSelection(null); - } - } - } - - // ------------------------------------------------------------------------- - // Implementation of the DialogModel interface - // ------------------------------------------------------------------------- - - public TableModel getClientInterfacesTableModel () { - return itfTableModel[0]; - } - - public ListSelectionModel getClientInterfacesTableSelectionModel() { - return itfTableSelectionModel[0]; - } - - public TableModel getServerInterfacesTableModel() { - return itfTableModel[1]; - } - - public InterfaceTableSelectionModel getServerInterfacesTableSelectionModel() { - return itfTableSelectionModel[1]; - } - - public TableModel getAttributesTableModel() { - return attrTableModel; - } - - public ListSelectionModel getAttributesTableSelectionModel() { - return attrTableSelectionModel; - } - - public Document getNameFieldModel() { - return nameFieldModel; - } - - public Document getTypeFieldModel() { - return typeFieldModel; - } - - public Document getImplementationFieldModel() { - return implementationFieldModel; - } - - public Document getAttrControllerFieldModel() { - return attrControllerFieldModel; - } - - public Document getTmplControllerDescFieldModel() { - return tmplControllerDescFieldModel; - } - - public Document getCompControllerDescFieldModel() { - return compControllerDescFieldModel; - } - - // ------------------------------------------------------------------------- - // Implementation of the ConfigurationListener interface - // ------------------------------------------------------------------------- - - public void changeCountChanged (Component component, long changeCount) { - // does nothing - } - - public void rootComponentChanged (final Component oldValue) { - final Component root = configuration.getRootComponent(); - for (int i = 0; i < itfTableModel.length; ++i) { - itfTableModel[i].setComponentModel(root); - itfTableSelectionModel[i].setComponentModel(root); - } - - attrTableModel.setComponentModel(root); - - nameFieldModel.setComponentModel(root); - typeFieldModel.setComponentModel(root); - implementationFieldModel.setComponentModel(root); - attrControllerFieldModel.setComponentModel(root); - tmplControllerDescFieldModel.setComponentModel(root); - compControllerDescFieldModel.setComponentModel(root); - } - - public void nameChanged (final Component component, final String oldValue) { - if (component == configuration.getRootComponent()) { - nameFieldModel.componentTextChanged(component.getName()); - } - } - - public void typeChanged (final Component component, final String oldValue) { - if (component == configuration.getRootComponent()) { - typeFieldModel.componentTextChanged(component.getType()); - } - } - - public void implementationChanged ( - final Component component, - final String oldValue) - { - if (component == configuration.getRootComponent()) { - implementationFieldModel.componentTextChanged( - component.getImplementation()); - } - } - - public void interfaceNameChanged (final Interface i, final String oldValue) { - interfaceChanged(i); - } - - public void interfaceSignatureChanged ( - final Interface i, - final String oldValue) - { - interfaceChanged(i); - } - - public void interfaceContingencyChanged ( - final Interface i, - final boolean oldValue) - { - interfaceChanged(i); - } - - public void interfaceCardinalityChanged ( - final Interface i, - final boolean oldValue) - { - interfaceChanged(i); - } - - /** - * Notifies the appropriate table model that an interface has changed. - * - * @param i the interface that has changed. - */ - - private void interfaceChanged (final Interface i) { - if (i.getOwner() == configuration.getRootComponent()) { - if (i instanceof ClientInterface) { - itfTableModel[0].interfaceChanged(i); - } else { - itfTableModel[1].interfaceChanged(i); - } - } - } - - public void clientInterfaceAdded ( - final Component component, - final ClientInterface i, - final int index) - { - if (component == configuration.getRootComponent()) { - itfTableModel[0].interfaceAdded(i, index); - } - } - - public void clientInterfaceRemoved ( - final Component component, - final ClientInterface i, - final int index) - { - if (component == configuration.getRootComponent()) { - itfTableModel[0].interfaceRemoved(i, index); - } - } - - public void serverInterfaceAdded ( - final Component component, - final ServerInterface i, - final int index) - { - if (component == configuration.getRootComponent()) { - itfTableModel[1].interfaceAdded(i, index); - } - } - - public void serverInterfaceRemoved ( - final Component component, - final ServerInterface i, - final int index) - { - if (component == configuration.getRootComponent()) { - itfTableModel[1].interfaceRemoved(i, index); - } - } - - public void interfaceBound ( - final ClientInterface citf, - final ServerInterface sitf) - { - if (citf.getOwner() == configuration.getRootComponent()) { - // TODO - } - } - - public void interfaceRebound ( - final ClientInterface citf, - final ServerInterface oldSitf) - { - if (citf.getOwner() == configuration.getRootComponent()) { - // TODO - } - } - - public void interfaceUnbound ( - final ClientInterface citf, - final ServerInterface sitf) - { - if (citf.getOwner() == configuration.getRootComponent()) { - // TODO - } - } - - public void attributeControllerChanged ( - final Component component, - final String oldValue) - { - if (component == configuration.getRootComponent()) { - attrControllerFieldModel.componentTextChanged( - component.getAttributeController()); - } - } - - public void attributeChanged ( - final Component component, - final String attributeName, - final String oldValue) - { - if (component == configuration.getRootComponent()) { - attrTableModel.attributeChanged(attributeName, oldValue); - } - } - - public void templateControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - if (component == configuration.getRootComponent()) { - tmplControllerDescFieldModel.componentTextChanged( - component.getTemplateControllerDescriptor()); - } - } - - public void componentControllerDescriptorChanged ( - final Component component, - final String oldValue) - { - if (component == configuration.getRootComponent()) { - compControllerDescFieldModel.componentTextChanged( - component.getComponentControllerDescriptor()); - } - } - - public void subComponentAdded ( - final Component parent, - final Component child, - final int index) - { - // does nothing - } - - public void subComponentRemoved ( - final Component parent, - final Component child, - final int index) - { - // does nothing - } - - // ------------------------------------------------------------------------- - // Implementation of the SelectionListener interface - // ------------------------------------------------------------------------- - - public void selectionChanged () { - Object o = selection.getSelection(); - if (o != null) { - if (o instanceof Interface) { - o = ((Interface)o).getOwner(); - } - configuration.setRootComponent((Component)o); - } - for (int i = 0; i < itfTableSelectionModel.length; ++i) { - itfTableSelectionModel[i].selectionChanged(); - } - } -} diff --git a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/DialogModel.java b/fractalgui/src/org/objectweb/fractal/gui/dialog/model/DialogModel.java deleted file mode 100644 index ccf41c76275c548ba8f0b5349e7eea1d0bc54164..0000000000000000000000000000000000000000 --- a/fractalgui/src/org/objectweb/fractal/gui/dialog/model/DialogModel.java +++ /dev/null @@ -1,150 +0,0 @@ -/*** - * FractalGUI: a graphical tool to edit Fractal component configurations. - * Copyright (C) 2003 France Telecom R&D - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact: fractal@objectweb.org - * - * Authors: Eric Bruneton, Patrice Fauvel - */ - -package org.ob