krysalis-version/src/java/org/krysalis/version/eclipse/plugin/util MarkElement.java,NONE,1.1 ConstraintImages.java,NONE,1.1 messages.properties,NONE,1.1 IConstraintConstants.java,NONE,1.1 MessageUtil.java,NONE,1.1

[email protected] Fri, 21 Mar 2003 15:33:00 -0800
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-version/src/java/org/krysalis/version/eclipse/plugin/util
In directory sc8-pr-cvs1:/tmp/cvs-serv22996/src/java/org/krysalis/version/eclipse/plugin/util

Added Files:
	MarkElement.java ConstraintImages.java messages.properties 
	IConstraintConstants.java MessageUtil.java 
Log Message:
Constraint changes

--- NEW FILE: MarkElement.java ---
/*****************************************************************************
 * Copyright (C) The Krysalis project. All rights reserved.                  *
 * ------------------------------------------------------------------------- *
 * This software is published under the terms of the Krysalis Patchy         *
 * Software License version 1.1_01, a copy of which has been included        *
 * at the bottom of this file.                                               *
 *****************************************************************************/
package org.krysalis.version.eclipse.plugin.util;

import java.util.Vector;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.eclipse.ui.views.properties.IPropertySource;

import org.krysalis.version.eclipse.plugin.property.MarkElementProperties;

/**
 * This class represents a marked location in the constraint
 * file text.  
 *
 * TIP: By implementing the <code>IWorkbenchAdapter</code> interface,
 * we can easily add objects of this type to viewers and parts in
 * the workbench.  When a viewer contains <code>IWorkbenchAdapter</code>,
 * the generic <code>WorkbenchContentProvider</code> and
 * <code>WorkbenchLabelProvider</code> can be used to provide
 * navigation and display for that viewer.
 */
public class MarkElement implements IWorkbenchAdapter, IAdaptable
{
	private String headingName;
	private IAdaptable parent;
	private int offset;
	private int numberOfLines;
	private int length;
	private Vector children;
	/**
	 * Creates a new MarkElement and stores parent element and
	 * location in the text.
	 *
	 * @param parent  the parent of this element
	 * @param heading text corresponding to the heading
	 * @param offset  the offset into the constraint text
	 * @param length  the length of the element
	 */
	public MarkElement(IAdaptable parent, String heading, int offset, int length)
	{
		this.parent = parent;
		if (parent instanceof MarkElement)
		{
			((MarkElement) parent).addChild(this);
		}
		this.headingName = heading;
		this.offset = offset;
		this.length = length;
	}
	/**
	 * Adds a child to this element
	 */
	private void addChild(MarkElement child)
	{
		if (children == null)
		{
			children = new Vector();
		}
		children.add(child);
	}
	/* (non-Javadoc)
	 * Method declared on IAdaptable
	 */
	public Object getAdapter(Class adapter)
	{
		if (adapter == IWorkbenchAdapter.class)
			return this;
		if (adapter == IPropertySource.class)
			return new MarkElementProperties(this);
		return null;
	}
	/* (non-Javadoc)
	 * Method declared on IWorkbenchAdapter
	 */
	public Object[] getChildren(Object object)
	{
		if (children != null)
		{
			return children.toArray();
		}
		return new Object[0];
	}
	/* (non-Javadoc)
	 * Method declared on IWorkbenchAdapter
	 */
	public ImageDescriptor getImageDescriptor(Object object)
	{
		IWorkbenchAdapter parentElement = (IWorkbenchAdapter) parent.getAdapter(IWorkbenchAdapter.class);
		if (parentElement != null)
		{
			return parentElement.getImageDescriptor(object);
		}
		return null;
	}
	/* (non-Javadoc)
	 * Method declared on IWorkbenchAdapter
	 */
	public String getLabel(Object o)
	{
		return headingName;
	}
	/**
	 * Returns the number of characters in this section.
	 */
	public int getLength()
	{
		return length;
	}
	/**
	 * Returns the number of lines in the element.
	 *
	 * @return the number of lines in the element
	 */
	public int getNumberOfLines()
	{
		return numberOfLines;
	}
	/* (non-Javadoc)
	 * Method declared on IWorkbenchAdapter
	 */
	public Object getParent(Object o)
	{
		return null;
	}
	/**
	 * Returns the offset of this section in the file.
	 */
	public int getStart()
	{
		return offset;
	}
	/**
	 * Sets the number of lines in the element
	 *
	 * @param newNumberOfLines  the number of lines in the element
	 */
	public void setNumberOfLines(int newNumberOfLines)
	{
		numberOfLines = newNumberOfLines;
	}
}
/*
The Krysalis Patchy Software License, Version 1.1_01
Copyright (c) 2002-2003  Nicola Ken Barozzi.  All rights reserved.

This Licence is compatible with the BSD licence as described and 
approved by http://www.opensource.org/, and is based on the
Apache Software Licence Version 1.1.

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

1. Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
   "This product includes software developed for project 
	Krysalis (http://www.krysalis.org/)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.

4. The names "Krysalis" and "Nicola Ken Barozzi" and
"Krysalis Centipede" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact [email protected].

5. Products derived from this software may not be called "Krysalis",
"Krysalis Centipede", nor may "Krysalis" appear in their name,
without prior written permission of Nicola Ken Barozzi.

6. This software may contain voluntary contributions made by many 
individuals, who decided to donate the code to this project in
respect of this licence.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE KRYSALIS PROJECT OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
====================================================================*/
--- NEW FILE: ConstraintImages.java ---
package org.krysalis.version.eclipse.plugin.util;


import java.net.MalformedURLException;
import java.net.URL;

import org.eclipse.jface.resource.ImageDescriptor;
import org.krysalis.version.eclipse.plugin.VersionPlugin;
/**
 * Convenience class for storing references to image descriptors
 * used by the constraint tool.
 */
public class ConstraintImages {
	public static final URL BASE_URL = VersionPlugin.getDefault().getDescriptor().getInstallURL();
	public static final ImageDescriptor EDITOR_ACTION1_IMAGE;
	public static final ImageDescriptor EDITOR_ACTION2_IMAGE;
	public static final ImageDescriptor EDITOR_ACTION3_IMAGE;
	public static final ImageDescriptor EDITOR_ACTION1_IMAGE_DISABLE;
	public static final ImageDescriptor EDITOR_ACTION2_IMAGE_DISABLE;
	public static final ImageDescriptor EDITOR_ACTION3_IMAGE_DISABLE;
	public static final ImageDescriptor EDITOR_ACTION1_IMAGE_ENABLE;
	public static final ImageDescriptor EDITOR_ACTION2_IMAGE_ENABLE;
	public static final ImageDescriptor EDITOR_ACTION3_IMAGE_ENABLE;
	public static final ImageDescriptor CONSTRAINT_WIZARD_BANNER;

	static {
		String iconPath = "icons/";
		
		String prefix = iconPath + "ctool16/"; //$NON-NLS-1$
		EDITOR_ACTION1_IMAGE = createImageDescriptor(prefix + "action1.gif"); //$NON-NLS-1$
		EDITOR_ACTION2_IMAGE = createImageDescriptor(prefix + "action2.gif"); //$NON-NLS-1$
		EDITOR_ACTION3_IMAGE = createImageDescriptor(prefix + "action3.gif"); //$NON-NLS-1$

		prefix = iconPath + "dtool16/"; //$NON-NLS-1$
		EDITOR_ACTION1_IMAGE_DISABLE = createImageDescriptor(prefix + "action1.gif"); //$NON-NLS-1$
		EDITOR_ACTION2_IMAGE_DISABLE = createImageDescriptor(prefix + "action2.gif"); //$NON-NLS-1$
		EDITOR_ACTION3_IMAGE_DISABLE = createImageDescriptor(prefix + "action3.gif"); //$NON-NLS-1$
		
		prefix = iconPath + "etool16/"; //$NON-NLS-1$
		EDITOR_ACTION1_IMAGE_ENABLE = createImageDescriptor(prefix + "action1.gif"); //$NON-NLS-1$
		EDITOR_ACTION2_IMAGE_ENABLE = createImageDescriptor(prefix + "action2.gif"); //$NON-NLS-1$
		EDITOR_ACTION3_IMAGE_ENABLE = createImageDescriptor(prefix + "action3.gif"); //$NON-NLS-1$
		
		prefix = iconPath + "wizban/"; //$NON-NLS-1$
		CONSTRAINT_WIZARD_BANNER = createImageDescriptor(prefix + "newConstraint_wiz.gif"); //$NON-NLS-1$
	}
/**
 * Utility method to create an <code>ImageDescriptor</code>
 * from a path to a file.
 */
private static ImageDescriptor createImageDescriptor(String path) {
	try {
		URL url = new URL(BASE_URL, path);
		return ImageDescriptor.createFromURL(url);
	} catch (MalformedURLException e) {
	}
	return ImageDescriptor.getMissingImageDescriptor();
}
}

--- NEW FILE: messages.properties ---
Add=&Add
Clean=Clean
Save_Needed=Save Needed
Editor_Action_executed=Editor Action executed
Constraint_Editor=Constraint Editor
Constraint_Outline=Constraint Outline
Line_count=Line count
Title_length=Title length
Title_start=Title start
Popup_Menu_Action_executed=Popup Menu Action executed
Constraint_Example=Constraint Example
Automatic_sample_constraint_generation=Automatic sample constraint generation
Create_Constraint_File=Create Constraint File
Create_a_new_Constraint_file_resource=Create a new Constraint file resource.
Generate_sample_constraint=&Generate sample constraint
Open_file_for_editing_when_done=&Open file for editing when done
Constraint_file_name=&Constraint file name:
SAMPLE_CONSTRAINT_FILE=\n\n     SAMPLE CONSTRAINT FILE\n\n
SAMPLE_CONSTRAINT1=org.krysalis.version = 1.0\n
SAMPLE_CONSTRAINT2=org.krysalis.version >= 1.0\n
New_Constraint_File=New Constraint File
Exception_in_constraint_drop_adapter=Exception in Constraint drop adapter: 
Editor_Action1=Editor Action &1
Editor_Action2=Editor Action &2
Editor_Action3=Editor Action &3
Editor_Action4=Editor Action &4
Editor_Action5=Editor Action &5
Outline_Action2=Outline Action &2
Outline_Action3=Outline Action &3
Outline_Action4=Outline Action &4
Outline_Action5=Outline Action &5
Editor_is_active=Editor is active
Empty_Editor_Name=Empty
Constraint_Editor_Action1=Constraint Editor Action 1
Constraint_Editor_Action2=Constraint Retarget Editor Action 2
Constraint_Editor_Action3=Constraint Label Retarget Editor Action 3
Constraint_Editor_Action5=Constraint Label Retarget Editor Action 5
Constraint_Outline_Action3=Constraint Label Retarget Outline Action 3
Constraint_Outline_Action5=Constraint Label Retarget Outline Action 5
Constraint_Menu=&Constraint
ConstraintEditorActionExecuted=Constraint Editor Action executed: {0} for: {1}
ConstraintOutlineActionExecuted=Constraint Outline Action executed
<Unknown>=<Unknown>
<file_contents_not_local>=<file contents not local>
Additional_information=Additional information about the Constraint file can go here.
File_name=File name:
Number_of_sections=Number of sections:
Path=Path: 
Size=Size: 
Additional_Constraint_properties_not_available.=Additional Constraint properties not available.
Had_it_been_less_than_256_bytes_this_page_would_be_a_placeholder_page.=Had it been less than 256 bytes, this page would be a placeholder page.
The_size_of_the_Constraint_file_is_at_least_256_bytes.=The size of the Constraint file is at least 256 bytes.
This_illustrates_a_property_page_that_is_dynamically_determined=This illustrates a property page that is dynamically determined
not_to_be_available_based_on_the_state_of_the_object.=not to be available based on the state of the object.
to_be_available_based_on_the_state_of_the_object.=to be available based on the state of the object.
Unable_to_create_file_parser=Unable to create file parser.
Default_text=Default text
Change=Chan&ge
Check_Box_Options=Check Box Options
Check_box_1=&Check box 1
Check_box_2=C&heck box 2
Check_box_3=Check bo&x 3
Radio_Button_Options=Radio Button Options
Radio_button_1=&Radio button 1
Radio_button_2=Rad&io button 2
Radio_button_3=Radio b&utton 3
Text_Field=&Text Field
Constraint_Sections=Constraint Sections
View_Action_executed=View Action executed
Add_Sentence=Add Sentence
Resolution_Error=Resolution Error
Unable_to_open_file_editor=Unable to open file editor
Simple_sentence=This is a simple sentence.\n
Constraint_marker_message_example=Constraint marker example 
Add_constraint_marker_action_label=Constraint Marker Example &

--- NEW FILE: IConstraintConstants.java ---
/*****************************************************************************
 * Copyright (C) The Krysalis project. All rights reserved.                  *
 * ------------------------------------------------------------------------- *
 * This software is published under the terms of the Krysalis Patchy         *
 * Software License version 1.1_01, a copy of which has been included        *
 * at the bottom of this file.                                               *
 *****************************************************************************/
package org.krysalis.version.eclipse.plugin.util;

public interface IConstraintConstants {
	public static final String PLUGIN_ID ="org.krysalis.version.eclipse.plugin.VersionPlugin"; //$NON-NLS-1$
	public static final String PREFIX = PLUGIN_ID+"."; //$NON-NLS-1$
	public static final String P_CONTENT_OUTLINE=PREFIX+"content_outline"; //$NON-NLS-1$
	public static final String P_SECTIONS=PREFIX+"sections"; //$NON-NLS-1$
	public static final String EXTENSION = "vcnt"; //$NON-NLS-1$
	public static final String TAG_PARSER = "parser"; //$NON-NLS-1$
	public static final String ATT_CLASS = "class"; //$NON-NLS-1$
	public static final String PP_SECTION_PARSER = "sectionParser"; //$NON-NLS-1$

	// Global actions
	public static final String RETARGET2 = PREFIX + "retarget2";
	public static final String LABELRETARGET3 = PREFIX + "labelretarget3";

	public static final String ACTION_SET_RETARGET4 = "org_krysalis_version_eclipse_plugin_constraint_constraintRetargetAction";
	public static final String ACTION_SET_LABELRETARGET5 = "org_krysalis_version_eclipse_plugin_constraint_constraintRelabelRetargetAction";

	// Preference constants
	public static final String PRE_CHECK1=PREFIX+"check1"; //$NON-NLS-1$
	public static final String PRE_CHECK2=PREFIX+"check2"; //$NON-NLS-1$
	public static final String PRE_CHECK3=PREFIX+"check3"; //$NON-NLS-1$
	public static final String PRE_RADIO_CHOICE = PREFIX+"radio_choice"; //$NON-NLS-1$
	public static final String PRE_TEXT = PREFIX+"text"; //$NON-NLS-1$

	// Help context ids
	public static final String EDITOR_ACTION1_CONTEXT = PREFIX+"editor_action1_context"; //$NON-NLS-1$
	public static final String EDITOR_ACTION2_CONTEXT = PREFIX+"editor_action2_context"; //$NON-NLS-1$
	public static final String EDITOR_ACTION3_CONTEXT = PREFIX+"editor_action3_context"; //$NON-NLS-1$
	public static final String SECTIONS_VIEW_CONTEXT = PREFIX+"sections_view_context"; //$NON-NLS-1$
	public static final String PREFERENCE_PAGE_CONTEXT = PREFIX+"preference_page_context"; //$NON-NLS-1$
	public static final String PROPERTY_PAGE_CONTEXT = PREFIX+"property_page_context"; //$NON-NLS-1$
	public static final String PROPERTY_PAGE2_CONTEXT = PREFIX+"property_page2_context"; //$NON-NLS-1$
	public static final String EDITOR_CONTEXT = PREFIX+"editor_context"; //$NON-NLS-1$
	public static final String SECTIONS_DIALOG_CONTEXT = PREFIX+"sections_dialog_context"; //$NON-NLS-1$
	public static final String CONTENT_OUTLINE_PAGE_CONTEXT = PREFIX+"content_outline_page_context"; //$NON-NLS-1$
	public static final String CREATION_WIZARD_PAGE_CONTEXT = PREFIX+"creation_wizard_page_context"; //$NON-NLS-1$
	
	// Marker attributes
	public static final String MARKER_ATT_ID = PREFIX+"id"; //$NON-NLS-1$
	public static final String MARKER_ATT_LEVEL = PREFIX+"level"; //$NON-NLS-1$
	public static final String MARKER_ATT_DEPT = PREFIX+"department"; //$NON-NLS-1$
	public static final String MARKER_ATT_CODE = PREFIX+"code"; //$NON-NLS-1$
	public static final String MARKER_ATT_LANG = PREFIX+"language"; //$NON-NLS-1$
}
/*
The Krysalis Patchy Software License, Version 1.1_01
Copyright (c) 2002-2003  Nicola Ken Barozzi.  All rights reserved.

This Licence is compatible with the BSD licence as described and 
approved by http://www.opensource.org/, and is based on the
Apache Software Licence Version 1.1.

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

1. Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
   "This product includes software developed for project 
	Krysalis (http://www.krysalis.org/)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.

4. The names "Krysalis" and "Nicola Ken Barozzi" and
"Krysalis Centipede" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact [email protected].

5. Products derived from this software may not be called "Krysalis",
"Krysalis Centipede", nor may "Krysalis" appear in their name,
without prior written permission of Nicola Ken Barozzi.

6. This software may contain voluntary contributions made by many 
individuals, who decided to donate the code to this project in
respect of this licence.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE KRYSALIS PROJECT OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
====================================================================*/
--- NEW FILE: MessageUtil.java ---
/*****************************************************************************
 * Copyright (C) The Krysalis project. All rights reserved.                  *
 * ------------------------------------------------------------------------- *
 * This software is published under the terms of the Krysalis Patchy         *
 * Software License version 1.1_01, a copy of which has been included        *
 * at the bottom of this file.                                               *
 *****************************************************************************/
package org.krysalis.version.eclipse.plugin.util;

import java.text.MessageFormat;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * Utility class which helps with managing messages.
 */
public class MessageUtil {

	private static final String RESOURCE_BUNDLE= "org.krysalis.version.eclipse.plugin.util.messages";//$NON-NLS-1$

	private static ResourceBundle fgResourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);

	private MessageUtil() {
		// prevent instantiation of class
	}

	/**
	 * Returns the formatted message for the given key in
	 * the resource bundle. 
	 *
	 * @param key the resource name
	 * @param args the message arguments
	 * @return the string
	 */	
	public static String format(String key, Object[] args) {
		return MessageFormat.format(getString(key),args);
	}

	/**
	 * Returns the resource object with the given key in
	 * the resource bundle. If there isn't any value under
	 * the given key, the key is returned, surrounded by '!'s.
	 *
	 * @param key the resource name
	 * @return the string
	 */	
	public static String getString(String key) {
		try {
			return fgResourceBundle.getString(key);
		} catch (MissingResourceException e) {
			return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$
		}
	}
}
/*
The Krysalis Patchy Software License, Version 1.1_01
Copyright (c) 2002-2003  Nicola Ken Barozzi.  All rights reserved.

This Licence is compatible with the BSD licence as described and 
approved by http://www.opensource.org/, and is based on the
Apache Software Licence Version 1.1.

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

1. Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
   "This product includes software developed for project 
	Krysalis (http://www.krysalis.org/)."
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.

4. The names "Krysalis" and "Nicola Ken Barozzi" and
"Krysalis Centipede" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact [email protected].

5. Products derived from this software may not be called "Krysalis",
"Krysalis Centipede", nor may "Krysalis" appear in their name,
without prior written permission of Nicola Ken Barozzi.

6. This software may contain voluntary contributions made by many 
individuals, who decided to donate the code to this project in
respect of this licence.

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



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en