diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal')
127 files changed, 0 insertions, 7729 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/Logger.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/Logger.java deleted file mode 100644 index ab40d83a9..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/Logger.java +++ /dev/null @@ -1,283 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal; - -import java.io.PrintStream; -import java.util.StringTokenizer; - -import org.eclipse.core.runtime.IStatus; -import org.eclipse.core.runtime.Platform; -import org.eclipse.core.runtime.Plugin; -import org.eclipse.core.runtime.Status; -import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin; - - -/** - * Small convenience class to log messages to plugin's log file and also, if desired, - * the console. This class should only be used by classes in this plugin. Other - * plugins should make their own copy, with appropriate ID. - */ -public class Logger { - private static Plugin fPlugin; - private static String fPluginId; - - /** - * Controls whether or not log/trace messages also go to the console. - * Normally, leave this as false. Change to true temporarily, if desired, for debugging. - */ - private static boolean displayToConsole = false; - - private static final String TRACEFILTER_LOCATION = "/debug/tracefilter"; //$NON-NLS-1$ - - private static final int OK = IStatus.OK; // 0 - private static final int INFO = IStatus.INFO; // 1 - private static final int WARNING = IStatus.WARNING; // 2 - private static final int ERROR = IStatus.ERROR; // 4 - - private static final int OK_DEBUG = 200 + OK; - private static final int INFO_DEBUG = 200 + INFO; - private static final int WARNING_DEBUG = 200 + WARNING; - private static final int ERROR_DEBUG = 200 + ERROR; - - /** - * Adds message to log. - * @param level severity level of the message (OK, INFO, WARNING, ERROR, OK_DEBUG, INFO_DEBUG, WARNING_DEBUG, ERROR_DEBUG) - * @param message text to add to the log - * @param exception exception thrown - */ - protected static void _log(int level, String message, Throwable exception) { - if (level == OK_DEBUG || level == INFO_DEBUG || level == WARNING_DEBUG || level == ERROR_DEBUG) { - if (!isDebugging()) - return; - } - - int severity = IStatus.OK; - switch (level) { - case INFO_DEBUG : - case INFO : - severity = IStatus.INFO; - break; - case WARNING_DEBUG : - case WARNING : - severity = IStatus.WARNING; - break; - case ERROR_DEBUG : - case ERROR : - severity = IStatus.ERROR; - } - message = (message != null) ? message : "null"; //$NON-NLS-1$ - Status statusObj = new Status(severity, getPluginId(), severity, message, exception); - getPlugin().getLog().log(statusObj); - } - - /** - * Prints message to log if category matches /debug/tracefilter option. - * @param message text to print - * @param category category of the message, to be compared with /debug/tracefilter - * @param exception - */ - protected static void _trace(String category, String message, Throwable exception) { - if (isTracing(category)) { - message = (message != null) ? message : "null"; //$NON-NLS-1$ - Status statusObj = new Status(IStatus.OK, getPluginId(), IStatus.OK, message, exception); - getPlugin().getLog().log(statusObj); - } - } - - /** - * @return true if the plugin for this logger is debugging - */ - public static boolean isDebugging() { - return getPlugin().isDebugging(); - } - - /** - * Determines if currently tracing a category - * @param category - * @return true if tracing category, false otherwise - */ - public static boolean isTracing(String category) { - if (!isDebugging()) - return false; - - String traceFilter = Platform.getDebugOption(getPluginId() + TRACEFILTER_LOCATION); - if (traceFilter != null) { - StringTokenizer tokenizer = new StringTokenizer(traceFilter, ","); //$NON-NLS-1$ - while (tokenizer.hasMoreTokens()) { - String cat = tokenizer.nextToken().trim(); - if (category.equals(cat)) { - return true; - } - } - } - return false; - } - - /** - * @param level - * @param message - */ - public static void log(int level, String message) { - _log(level, message, null); - } - - /** - * @param level - * @param message - * @param exception - */ - public static void log(int level, String message, Throwable exception) { - _log(level, message, exception); - } - - /** - * @param source - * @param message - */ - public static void log(Object source, String message) { - doLog(source, message, null); - } - - /** - * @param source - * @param message - * @param throwable - */ - public static void log(Object source, String message, Throwable throwable) { - doLog(source, message, throwable); - } - - /** - * @param source - * @param throwable - */ - public static void log(Object source, Throwable throwable) { - doLog(source, null, throwable); - } - - /** - * @param message - */ - public static void log(String message) { - doLog(message, null); - } - - private static void doLog(String message, Throwable exception) { - _log(ERROR, message, exception); - } - - private static void doLog(Object source, String message, Throwable exception) { - _log(ERROR, getMessageFor(source, message), exception); - } - - private static final String getMessageFor(Object source, String message) { - StringBuffer buffer = new StringBuffer(); - buffer.append(source); - if (message != null) { - buffer.append(": "); //$NON-NLS-1$ - buffer.append(message); - } - return buffer.toString(); - } - - /** - * @param message - * @param exception - */ - public static void logException(String message, Throwable exception) { - _log(ERROR, message, exception); - } - - /** - * @param exception - */ - public static void logException(Throwable exception) { - _log(ERROR, exception.getMessage(), exception); - } - - /** - * @param category - * @param message - * @param exception - */ - public static void traceException(String category, String message, Throwable exception) { - _trace(category, message, exception); - } - - /** - * @param category - * @param exception - */ - public static void traceException(String category, Throwable exception) { - _trace(category, exception.getMessage(), exception); - } - - /** - * @param category - * @param message - */ - public static void trace(String category, String message) { - _trace(category, message, null); - } - - private static Plugin getFacesPlugin() { - return FacesConfigPlugin.getPlugin(); - } - - private static Plugin getPlugin() { - - if (fPlugin == null) { - fPlugin = getFacesPlugin(); - } - return fPlugin; - } - - /** - * @return the plugin id - */ - private static String getPluginId() { - - if (fPluginId == null) { - fPluginId = ((Plugin) (FacesConfigPlugin.getPlugin())).getBundle().getSymbolicName() ; - } - return fPluginId; - } - - private static final void doConsole(String message, Throwable throwable) { - if (displayToConsole) { - PrintStream out = System.out; - out.println(message); - if (throwable != null) - throwable.printStackTrace(out); - } - } - - private static final void doTrace(String category, Object source, String message) { - message = getMessageFor(source, message); - try { - _trace(category, message, null); - } catch (Exception ignored) { - // Empty block intended. - } finally { - doConsole(message, null); - } - } - - /** - * @param category - * @param source - * @param message - */ - public static void trace(String category, Object source, String message) { - doTrace(category, source, message); - } - -}
\ No newline at end of file diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/Messages.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/Messages.java deleted file mode 100644 index b5897e31f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/Messages.java +++ /dev/null @@ -1,1408 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.nls; - -import org.eclipse.osgi.util.NLS; - -/** - * @author cbateman - * - */ -public final class Messages extends NLS { - - private static final String BUNDLE_NAME = "org.eclipse.jst.jsf.facesconfig.internal.nls.messages";//$NON-NLS-1$ - - private Messages() { - // Do not instantiate - } - - /** - * see messages.properties - */ - public static String Source_UI_; - /** - * see messages.properties - */ - public static String FaceConfigEditor_Title; - /** - * see messages.properties - */ - public static String Overview_Page_Title; - /** - * see messages.properties - */ - public static String Application_Page_Title; - /** - * see messages.properties - */ - public static String Factory_Page_Title; - /** - * see messages.properties - */ - public static String Component_Page_Title; - /** - * see messages.properties - */ - public static String Converter_Page_Title; - /** - * see messages.properties - */ - public static String ManagedBean_Page_Title; - /** - * see messages.properties - */ - public static String NavigationRule_Page_Title; - /** - * see messages.properties - */ - public static String ReferencedBean_Page_Title; - /** - * see messages.properties - */ - public static String RenderKit_Page_Title; - /** - * see messages.properties - */ - public static String Lifecycle_Page_Title; - /** - * see messages.properties - */ - public static String Validator_Page_Title; - /** - * see messages.properties - */ - public static String MANAGEDBEAN_MAIN_SEC_TITLE; - /** - * see messages.properties - */ - public static String MANAGEDBEAN_MAIN_SEC_DESC; - /** - * see messages.properties - */ - public static String Invalid_Config_File; - /** - * see messages.properties - */ - public static String OPEN_TO_FACESCONFIG_SOURCE_PAGE_MENU_LABEL; - /** - * see messages.properties - */ - public static String _UI_CreateChild_text; - /** - * see messages.properties - */ - public static String _UI_CreateChild_text2; - /** - * see messages.properties - */ - public static String _UI_CreateChild_tooltip; - /** - * see messages.properties - */ - public static String _UI_CreateChild_description; - /** - * see messages.properties - */ - public static String _UI_CreateSibling_description; - /** - * see messages.properties - */ - public static String _UI_PropertyDescriptor_description; - /** - * see messages.properties - */ - public static String _UI_ActionListenerType_type; - /** - * see messages.properties - */ - public static String _UI_ApplicationFactoryType_type; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_type; - /** - * see messages.properties - */ - public static String _UI_AttributeExtensionType_type; - /** - * see messages.properties - */ - public static String _UI_AttributeNameType_type; - /** - * see messages.properties - */ - public static String _UI_AttributeType_type; - /** - * see messages.properties - */ - public static String _UI_ComponentClassType_type; - /** - * see messages.properties - */ - public static String _UI_ComponentExtensionType_type; - /** - * see messages.properties - */ - public static String _UI_ComponentType_type; - /** - * see messages.properties - */ - public static String _UI_ComponentTypeType_type; - /** - * see messages.properties - */ - public static String _UI_ConverterType_type; - /** - * see messages.properties - */ - public static String _UI_DefaultLocaleType_type; - /** - * see messages.properties - */ - public static String _UI_DescriptionType_type; - /** - * see messages.properties - */ - public static String _UI_DisplayNameType_type; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_type; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_type; - /** - * see messages.properties - */ - public static String _UI_FacesContextFactoryType_type; - /** - * see messages.properties - */ - public static String _UI_FactoryType_type; - /** - * see messages.properties - */ - public static String _UI_IconType_type; - /** - * see messages.properties - */ - public static String _UI_LifecycleFactoryType_type; - /** - * see messages.properties - */ - public static String _UI_LifecycleType_type; - /** - * see messages.properties - */ - public static String _UI_ListEntriesType_type; - /** - * see messages.properties - */ - public static String _UI_LocaleConfigType_type; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_type; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_type; - /** - * see messages.properties - */ - public static String _UI_MapEntriesType_type; - /** - * see messages.properties - */ - public static String _UI_MapEntryType_type; - /** - * see messages.properties - */ - public static String _UI_MessageBundleType_type; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_type; - /** - * see messages.properties - */ - public static String _UI_NavigationHandlerType_type; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_type; - /** - * see messages.properties - */ - public static String _UI_NullValueType_type; - /** - * see messages.properties - */ - public static String _UI_PhaseListenerType_type; - /** - * see messages.properties - */ - public static String _UI_PropertyExtensionType_type; - /** - * see messages.properties - */ - public static String _UI_PropertyResolverType_type; - /** - * see messages.properties - */ - public static String _UI_PropertyType_type; - /** - * see messages.properties - */ - public static String _UI_RedirectType_type; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_type; - /** - * see messages.properties - */ - /** - * see messages.properties - */ - public static String _UI_RendererExtensionType_type; - /** - * see messages.properties - */ - public static String _UI_RendererType_type; - /** - * see messages.properties - */ - public static String _UI_RenderKitFactoryType_type; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_type; - /** - * see messages.properties - */ - public static String _UI_StateManagerType_type; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentClassType_type; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentTypeType_type; - /** - * see messages.properties - */ - public static String _UI_SupportedLocaleType_type; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_type; - /** - * see messages.properties - */ - public static String _UI_ValueType_type; - /** - * see messages.properties - */ - public static String _UI_VariableResolverType_type; - /** - * see messages.properties - */ - public static String _UI_ViewHandlerType_type; - /** - * see messages.properties - */ - public static String _UI_Unknown_type; - /** - * see messages.properties - */ - public static String _UI_ActionListenerType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ActionListenerType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationFactoryType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationFactoryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_actionListener_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_messageBundle_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_navigationHandler_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_viewHandler_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_stateManager_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_propertyResolver_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_variableResolver_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_localeConfig_feature; - /** - * see messages.properties - */ - public static String _UI_ApplicationType_id_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeExtensionType_mixed_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeExtensionType_group_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeExtensionType_any_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeExtensionType_id_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeNameType_value_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeNameType_id_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_description_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_attributeName_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_attributeExtension_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_attributeClass_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_defaultValue_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_id_feature; - /** - * see messages.properties - */ - public static String _UI_AttributeType_suggestedValue_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentClassType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentClassType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentExtensionType_mixed_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentExtensionType_group_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentExtensionType_any_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentExtensionType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_componentType_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_componentClass_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_attribute_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_property_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_componentExtension_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentTypeType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ComponentTypeType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_attribute_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_property_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_converterClass_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_converterForClass_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_converterId_feature; - /** - * see messages.properties - */ - public static String _UI_ConverterType_id_feature; - /** - * see messages.properties - */ - public static String _UI_DefaultLocaleType_value_feature; - /** - * see messages.properties - */ - public static String _UI_DefaultLocaleType_id_feature; - /** - * see messages.properties - */ - public static String _UI_DescriptionType_value_feature; - /** - * see messages.properties - */ - public static String _UI_DescriptionType_id_feature; - /** - * see messages.properties - */ - public static String _UI_DescriptionType_lang_feature; - /** - * see messages.properties - */ - public static String _UI_DisplayNameType_value_feature; - /** - * see messages.properties - */ - public static String _UI_DisplayNameType_id_feature; - /** - * see messages.properties - */ - public static String _UI_DisplayNameType_lang_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_mixed_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_xMLNSPrefixMap_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_xSISchemaLocation_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_actionListener_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_application_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_applicationFactory_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_attribute_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_attributeExtension_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_attributeName_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_component_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_componentClass_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_componentExtension_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_componentType_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_converter_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_defaultLocale_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_description_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_facesConfig_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_facesContextFactory_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_factory_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_icon_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_lifecycle_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_lifecycleFactory_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_listEntries_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_localeConfig_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_managedBean_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_managedProperty_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_mapEntries_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_mapEntry_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_messageBundle_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_navigationCase_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_navigationHandler_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_navigationRule_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_nullValue_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_phaseListener_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_property_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_propertyExtension_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_propertyResolver_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_redirect_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_referencedBean_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_renderer_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_rendererExtension_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_renderKit_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_renderKitFactory_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_stateManager_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_supportedComponentClass_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_supportedComponentType_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_supportedLocale_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_validator_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_value_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_variableResolver_feature; - /** - * see messages.properties - */ - public static String _UI_DocumentRoot_viewHandler_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_application_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_factory_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_component_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_converter_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_managedBean_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_navigationRule_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_referencedBean_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_renderKit_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_lifecycle_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_validator_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_id_feature; - /** - * see messages.properties - */ - public static String _UI_FacesConfigType_xmlns00000_feature; - /** - * see messages.properties - */ - public static String _UI_FacesContextFactoryType_value_feature; - /** - * see messages.properties - */ - public static String _UI_FacesContextFactoryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_FactoryType_applicationFactory_feature; - /** - * see messages.properties - */ - public static String _UI_FactoryType_facesContextFactory_feature; - /** - * see messages.properties - */ - public static String _UI_FactoryType_lifecycleFactory_feature; - /** - * see messages.properties - */ - public static String _UI_FactoryType_renderKitFactory_feature; - /** - * see messages.properties - */ - public static String _UI_FactoryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_IconType_id_feature; - /** - * see messages.properties - */ - public static String _UI_IconType_lang_feature; - /** - * see messages.properties - */ - public static String _UI_IconType_largeIcon_feature; - /** - * see messages.properties - */ - public static String _UI_IconType_smallIcon_feature; - /** - * see messages.properties - */ - public static String _UI_LifecycleFactoryType_value_feature; - /** - * see messages.properties - */ - public static String _UI_LifecycleFactoryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_LifecycleType_phaseListener_feature; - /** - * see messages.properties - */ - public static String _UI_LifecycleType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ListEntriesType_nullValue_feature; - /** - * see messages.properties - */ - public static String _UI_ListEntriesType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ListEntriesType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ListEntriesType_valueClass_feature; - /** - * see messages.properties - */ - public static String _UI_LocaleConfigType_defaultLocale_feature; - /** - * see messages.properties - */ - public static String _UI_LocaleConfigType_supportedLocale_feature; - /** - * see messages.properties - */ - public static String _UI_LocaleConfigType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_managedProperty_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_mapEntries_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_listEntries_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_managedBeanClass_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_managedBeanName_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedBeanType_managedBeanScope_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_mapEntries_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_listEntries_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_nullValue_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_propertyClass_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_propertyName_feature; - /** - * see messages.properties - */ - public static String _UI_ManagedPropertyType_value_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntriesType_mapEntry_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntriesType_id_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntriesType_keyClass_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntriesType_valueClass_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntryType_key_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntryType_nullValue_feature; - /** - * see messages.properties - */ - public static String _UI_MapEntryType_value_feature; - /** - * see messages.properties - */ - public static String _UI_MessageBundleType_value_feature; - /** - * see messages.properties - */ - public static String _UI_MessageBundleType_id_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_description_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_redirect_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_fromAction_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_fromOutcome_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_id_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationCaseType_toViewId_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationHandlerType_value_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationHandlerType_id_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_description_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_navigationCase_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_fromViewId_feature; - /** - * see messages.properties - */ - public static String _UI_NavigationRuleType_id_feature; - /** - * see messages.properties - */ - public static String _UI_NullValueType_id_feature; - /** - * see messages.properties - */ - public static String _UI_PhaseListenerType_value_feature; - /** - * see messages.properties - */ - public static String _UI_PhaseListenerType_id_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyExtensionType_mixed_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyExtensionType_group_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyExtensionType_any_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyExtensionType_id_feature; - /** - * see messages.properties - */ - /** - * see messages.properties - */ - public static String _UI_PropertyResolverType_value_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyResolverType_id_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_description_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_propertyExtension_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_defaultValue_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_id_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_propertyClass_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_propertyName_feature; - /** - * see messages.properties - */ - public static String _UI_PropertyType_suggestedValue_feature; - /** - * see messages.properties - */ - public static String _UI_RedirectType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_referencedBeanClass_feature; - /** - * see messages.properties - */ - public static String _UI_ReferencedBeanType_referencedBeanName_feature; - /** - * see messages.properties - */ - public static String _UI_RendererExtensionType_mixed_feature; - /** - * see messages.properties - */ - public static String _UI_RendererExtensionType_group_feature; - /** - * see messages.properties - */ - public static String _UI_RendererExtensionType_any_feature; - /** - * see messages.properties - */ - public static String _UI_RendererExtensionType_id_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_description_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_attribute_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_supportedComponentType_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_supportedComponentClass_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_rendererExtension_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_id_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_rendererClass_feature; - /** - * see messages.properties - */ - public static String _UI_RendererType_rendererType_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitFactoryType_value_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitFactoryType_id_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_description_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_renderer_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_id_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_renderKitClass_feature; - /** - * see messages.properties - */ - public static String _UI_RenderKitType_renderKitId_feature; - /** - * see messages.properties - */ - /** - * see messages.properties - */ - public static String _UI_StateManagerType_value_feature; - /** - * see messages.properties - */ - public static String _UI_StateManagerType_id_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentClassType_componentClass_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentClassType_attributeName_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentClassType_id_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentTypeType_componentType_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentTypeType_attributeName_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedComponentTypeType_id_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedLocaleType_value_feature; - /** - * see messages.properties - */ - public static String _UI_SupportedLocaleType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_description_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_displayName_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_icon_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_attribute_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_property_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_validatorClass_feature; - /** - * see messages.properties - */ - public static String _UI_ValidatorType_validatorId_feature; - /** - * see messages.properties - */ - public static String _UI_ValueType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ValueType_id_feature; - /** - * see messages.properties - */ - public static String _UI_VariableResolverType_value_feature; - /** - * see messages.properties - */ - public static String _UI_VariableResolverType_id_feature; - /** - * see messages.properties - */ - public static String _UI_ViewHandlerType_value_feature; - /** - * see messages.properties - */ - public static String _UI_ViewHandlerType_id_feature; - /** - * see messages.properties - */ - public static String _UI_Unknown_feature; - /** - * see messages.properties - */ - public static String scValidation_duplicate_definition; - - static { - NLS.initializeMessages(BUNDLE_NAME, Messages.class); - } -}
\ No newline at end of file diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/messages.properties b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/messages.properties deleted file mode 100644 index 7353707a3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/nls/messages.properties +++ /dev/null @@ -1,369 +0,0 @@ -############################################################################### -# Copyright (c) 2001, 2007 Oracle Corporation and others. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -# -# Contributors: -# Oracle Corporation - initial API and implementation -############################################################################### -#/*************************************************************************************************** -# * Copyright (c) 2005, 2006 IBM Corporation and others. -# * All rights reserved. This program and the accompanying materials -# * are made available under the terms of the Eclipse Public License v1.0 -# * which accompanies this distribution, and is available at -# * http://www.eclipse.org/legal/epl-v10.html -# * -# * Contributors: -# * IBM Corporation - initial API and implementation -# **************************************************************************************************/ -Source_UI_ = XML Source -FaceConfigEditor_Title=Faces Configuration File Editor - -Overview_Page_Title=Overview -Application_Page_Title=Application -Factory_Page_Title=Factory -Component_Page_Title=Components -Converter_Page_Title=Converter -ManagedBean_Page_Title=Managed Beans -NavigationRule_Page_Title=Navigation Rules -ReferencedBean_Page_Title=Referenced Beans -RenderKit_Page_Title=RenderKits -Lifecycle_Page_Title=Lifecycle -Validator_Page_Title=Validator - -MANAGEDBEAN_MAIN_SEC_TITLE=Managed Beans -MANAGEDBEAN_MAIN_SEC_DESC=The following Managed Beans are defined for this config file -Invalid_Config_File = The Faces Configuration File editor cannot open the file because it is not a valid Faces configuration file. The XML editor will be opened. -OPEN_TO_FACESCONFIG_SOURCE_PAGE_MENU_LABEL=Faces Configuration File Editor Source Page - -_UI_CreateChild_text = {0} -_UI_CreateChild_text2 = {1} {0} -_UI_CreateChild_tooltip = Create New {0} Under {1} Feature -_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}. -_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent. - -_UI_PropertyDescriptor_description = The {0} of the {1} - -_UI_ActionListenerType_type = Action Listener Type -_UI_ApplicationFactoryType_type = Application Factory Type -_UI_ApplicationType_type = Application Type -_UI_AttributeExtensionType_type = Attribute Extension Type -_UI_AttributeNameType_type = Attribute Name Type -_UI_AttributeType_type = Attribute Type -_UI_ComponentClassType_type = Component Class Type -_UI_ComponentExtensionType_type = Component Extension Type -_UI_ComponentType_type = Component Type -_UI_ComponentTypeType_type = Component Type Type -_UI_ConverterType_type = Converter Type -_UI_DefaultLocaleType_type = Default Locale Type -_UI_DescriptionType_type = Description Type -_UI_DisplayNameType_type = Display Name Type -_UI_DocumentRoot_type = Document Root -_UI_FacesConfigType_type = Type -_UI_FacesContextFactoryType_type = Faces Context Factory Type -_UI_FactoryType_type = Factory Type -_UI_IconType_type = Icon Type -_UI_LifecycleFactoryType_type = Lifecycle Factory Type -_UI_LifecycleType_type = Lifecycle Type -_UI_ListEntriesType_type = List Entries Type -_UI_LocaleConfigType_type = Locale Config Type -_UI_ManagedBeanType_type = Managed Bean Type -_UI_ManagedPropertyType_type = Managed Property Type -_UI_MapEntriesType_type = Map Entries Type -_UI_MapEntryType_type = Map Entry Type -_UI_MessageBundleType_type = Message Bundle Type -_UI_NavigationCaseType_type = Navigation Case Type -_UI_NavigationHandlerType_type = Navigation Handler Type -_UI_NavigationRuleType_type = Navigation Rule Type -_UI_NullValueType_type = Null Value Type -_UI_PhaseListenerType_type = Phase Listener Type -_UI_PropertyExtensionType_type = Property Extension Type -_UI_PropertyResolverType_type = Property Resolver Type -_UI_PropertyType_type = Property Type -_UI_RedirectType_type = Redirect Type -_UI_ReferencedBeanType_type = Referenced Bean Type -_UI_RendererExtensionType_type = Renderer Extension Type -_UI_RendererType_type = Renderer Type -_UI_RenderKitFactoryType_type = Render Kit Factory Type -_UI_RenderKitType_type = Render Kit Type -_UI_StateManagerType_type = State Manager Type -_UI_SupportedComponentClassType_type = Supported Component Class Type -_UI_SupportedComponentTypeType_type = Supported Component Type Type -_UI_SupportedLocaleType_type = Supported Locale Type -_UI_ValidatorType_type = Validator Type -_UI_ValueType_type = Value Type -_UI_VariableResolverType_type = Variable Resolver Type -_UI_ViewHandlerType_type = View Handler Type -_UI_Unknown_type = Object - -_UI_ActionListenerType_value_feature = Value -_UI_ActionListenerType_id_feature = Id -_UI_ApplicationFactoryType_value_feature = Value -_UI_ApplicationFactoryType_id_feature = Id -_UI_ApplicationType_actionListener_feature = Action Listener -_UI_ApplicationType_messageBundle_feature = Message Bundle -_UI_ApplicationType_navigationHandler_feature = Navigation Handler -_UI_ApplicationType_viewHandler_feature = View Handler -_UI_ApplicationType_stateManager_feature = State Manager -_UI_ApplicationType_propertyResolver_feature = Property Resolver -_UI_ApplicationType_variableResolver_feature = Variable Resolver -_UI_ApplicationType_localeConfig_feature = Locale Config -_UI_ApplicationType_id_feature = Id -_UI_AttributeExtensionType_mixed_feature = Mixed -_UI_AttributeExtensionType_group_feature = Group -_UI_AttributeExtensionType_any_feature = Any -_UI_AttributeExtensionType_id_feature = Id -_UI_AttributeNameType_value_feature = Value -_UI_AttributeNameType_id_feature = Id -_UI_AttributeType_description_feature = Description -_UI_AttributeType_displayName_feature = Display Name -_UI_AttributeType_icon_feature = Icon -_UI_AttributeType_attributeName_feature = Attribute Name -_UI_AttributeType_attributeExtension_feature = Attribute Extension -_UI_AttributeType_attributeClass_feature = Attribute Class -_UI_AttributeType_defaultValue_feature = Default Value -_UI_AttributeType_id_feature = Id -_UI_AttributeType_suggestedValue_feature = Suggested Value -_UI_ComponentClassType_value_feature = Value -_UI_ComponentClassType_id_feature = Id -_UI_ComponentExtensionType_mixed_feature = Mixed -_UI_ComponentExtensionType_group_feature = Group -_UI_ComponentExtensionType_any_feature = Any -_UI_ComponentExtensionType_id_feature = Id -_UI_ComponentType_description_feature = Description -_UI_ComponentType_displayName_feature = Display Name -_UI_ComponentType_icon_feature = Icon -_UI_ComponentType_componentType_feature = Component Type -_UI_ComponentType_componentClass_feature = Component Class -_UI_ComponentType_attribute_feature = Attribute -_UI_ComponentType_property_feature = Property -_UI_ComponentType_componentExtension_feature = Component Extension -_UI_ComponentType_id_feature = Id -_UI_ComponentTypeType_value_feature = Value -_UI_ComponentTypeType_id_feature = Id -_UI_ConverterType_description_feature = Description -_UI_ConverterType_displayName_feature = Display Name -_UI_ConverterType_icon_feature = Icon -_UI_ConverterType_attribute_feature = Attribute -_UI_ConverterType_property_feature = Property -_UI_ConverterType_converterClass_feature = Converter Class -_UI_ConverterType_converterForClass_feature = Converter For Class -_UI_ConverterType_converterId_feature = Converter Id -_UI_ConverterType_id_feature = Id -_UI_DefaultLocaleType_value_feature = Value -_UI_DefaultLocaleType_id_feature = Id -_UI_DescriptionType_value_feature = Value -_UI_DescriptionType_id_feature = Id -_UI_DescriptionType_lang_feature = Lang -_UI_DisplayNameType_value_feature = Value -_UI_DisplayNameType_id_feature = Id -_UI_DisplayNameType_lang_feature = Lang -_UI_DocumentRoot_mixed_feature = Mixed -_UI_DocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map -_UI_DocumentRoot_xSISchemaLocation_feature = XSI Schema Location -_UI_DocumentRoot_actionListener_feature = Action Listener -_UI_DocumentRoot_application_feature = Application -_UI_DocumentRoot_applicationFactory_feature = Application Factory -_UI_DocumentRoot_attribute_feature = Attribute -_UI_DocumentRoot_attributeExtension_feature = Attribute Extension -_UI_DocumentRoot_attributeName_feature = Attribute Name -_UI_DocumentRoot_component_feature = Component -_UI_DocumentRoot_componentClass_feature = Component Class -_UI_DocumentRoot_componentExtension_feature = Component Extension -_UI_DocumentRoot_componentType_feature = Component Type -_UI_DocumentRoot_converter_feature = Converter -_UI_DocumentRoot_defaultLocale_feature = Default Locale -_UI_DocumentRoot_description_feature = Description -_UI_DocumentRoot_displayName_feature = Display Name -_UI_DocumentRoot_facesConfig_feature = Faces Config -_UI_DocumentRoot_facesContextFactory_feature = Faces Context Factory -_UI_DocumentRoot_factory_feature = Factory -_UI_DocumentRoot_icon_feature = Icon -_UI_DocumentRoot_lifecycle_feature = Lifecycle -_UI_DocumentRoot_lifecycleFactory_feature = Lifecycle Factory -_UI_DocumentRoot_listEntries_feature = List Entries -_UI_DocumentRoot_localeConfig_feature = Locale Config -_UI_DocumentRoot_managedBean_feature = Managed Bean -_UI_DocumentRoot_managedProperty_feature = Managed Property -_UI_DocumentRoot_mapEntries_feature = Map Entries -_UI_DocumentRoot_mapEntry_feature = Map Entry -_UI_DocumentRoot_messageBundle_feature = Message Bundle -_UI_DocumentRoot_navigationCase_feature = Navigation Case -_UI_DocumentRoot_navigationHandler_feature = Navigation Handler -_UI_DocumentRoot_navigationRule_feature = Navigation Rule -_UI_DocumentRoot_nullValue_feature = Null Value -_UI_DocumentRoot_phaseListener_feature = Phase Listener -_UI_DocumentRoot_property_feature = Property -_UI_DocumentRoot_propertyExtension_feature = Property Extension -_UI_DocumentRoot_propertyResolver_feature = Property Resolver -_UI_DocumentRoot_redirect_feature = Redirect -_UI_DocumentRoot_referencedBean_feature = Referenced Bean -_UI_DocumentRoot_renderer_feature = Renderer -_UI_DocumentRoot_rendererExtension_feature = Renderer Extension -_UI_DocumentRoot_renderKit_feature = Render Kit -_UI_DocumentRoot_renderKitFactory_feature = Render Kit Factory -_UI_DocumentRoot_stateManager_feature = State Manager -_UI_DocumentRoot_supportedComponentClass_feature = Supported Component Class -_UI_DocumentRoot_supportedComponentType_feature = Supported Component Type -_UI_DocumentRoot_supportedLocale_feature = Supported Locale -_UI_DocumentRoot_validator_feature = Validator -_UI_DocumentRoot_value_feature = Value -_UI_DocumentRoot_variableResolver_feature = Variable Resolver -_UI_DocumentRoot_viewHandler_feature = View Handler -_UI_FacesConfigType_application_feature = Application -_UI_FacesConfigType_factory_feature = Factory -_UI_FacesConfigType_component_feature = Component -_UI_FacesConfigType_converter_feature = Converter -_UI_FacesConfigType_managedBean_feature = Managed Bean -_UI_FacesConfigType_navigationRule_feature = Navigation Rule -_UI_FacesConfigType_referencedBean_feature = Referenced Bean -_UI_FacesConfigType_renderKit_feature = Render Kit -_UI_FacesConfigType_lifecycle_feature = Lifecycle -_UI_FacesConfigType_validator_feature = Validator -_UI_FacesConfigType_id_feature = Id -_UI_FacesConfigType_xmlns00000_feature = Xmlns00000 -_UI_FacesContextFactoryType_value_feature = Value -_UI_FacesContextFactoryType_id_feature = Id -_UI_FactoryType_applicationFactory_feature = Application Factory -_UI_FactoryType_facesContextFactory_feature = Faces Context Factory -_UI_FactoryType_lifecycleFactory_feature = Lifecycle Factory -_UI_FactoryType_renderKitFactory_feature = Render Kit Factory -_UI_FactoryType_id_feature = Id -_UI_IconType_id_feature = Id -_UI_IconType_lang_feature = Lang -_UI_IconType_largeIcon_feature = Large Icon -_UI_IconType_smallIcon_feature = Small Icon -_UI_LifecycleFactoryType_value_feature = Value -_UI_LifecycleFactoryType_id_feature = Id -_UI_LifecycleType_phaseListener_feature = Phase Listener -_UI_LifecycleType_id_feature = Id -_UI_ListEntriesType_nullValue_feature = Null Value -_UI_ListEntriesType_value_feature = Value -_UI_ListEntriesType_id_feature = Id -_UI_ListEntriesType_valueClass_feature = Value Class -_UI_LocaleConfigType_defaultLocale_feature = Default Locale -_UI_LocaleConfigType_supportedLocale_feature = Supported Locale -_UI_LocaleConfigType_id_feature = Id -_UI_ManagedBeanType_description_feature = Description -_UI_ManagedBeanType_displayName_feature = Display Name -_UI_ManagedBeanType_icon_feature = Icon -_UI_ManagedBeanType_managedProperty_feature = Managed Property -_UI_ManagedBeanType_mapEntries_feature = Map Entries -_UI_ManagedBeanType_listEntries_feature = List Entries -_UI_ManagedBeanType_id_feature = Id -_UI_ManagedBeanType_managedBeanClass_feature = Managed Bean Class -_UI_ManagedBeanType_managedBeanName_feature = Managed Bean Name -_UI_ManagedBeanType_managedBeanScope_feature = Managed Bean Scope -_UI_ManagedPropertyType_description_feature = Description -_UI_ManagedPropertyType_displayName_feature = Display Name -_UI_ManagedPropertyType_icon_feature = Icon -_UI_ManagedPropertyType_mapEntries_feature = Map Entries -_UI_ManagedPropertyType_listEntries_feature = List Entries -_UI_ManagedPropertyType_id_feature = Id -_UI_ManagedPropertyType_nullValue_feature = Null Value -_UI_ManagedPropertyType_propertyClass_feature = Property Class -_UI_ManagedPropertyType_propertyName_feature = Property Name -_UI_ManagedPropertyType_value_feature = Value -_UI_MapEntriesType_mapEntry_feature = Map Entry -_UI_MapEntriesType_id_feature = Id -_UI_MapEntriesType_keyClass_feature = Key Class -_UI_MapEntriesType_valueClass_feature = Value Class -_UI_MapEntryType_id_feature = Id -_UI_MapEntryType_key_feature = Key -_UI_MapEntryType_nullValue_feature = Null Value -_UI_MapEntryType_value_feature = Value -_UI_MessageBundleType_value_feature = Value -_UI_MessageBundleType_id_feature = Id -_UI_NavigationCaseType_description_feature = Description -_UI_NavigationCaseType_displayName_feature = Display Name -_UI_NavigationCaseType_icon_feature = Icon -_UI_NavigationCaseType_redirect_feature = Redirect -_UI_NavigationCaseType_fromAction_feature = From Action -_UI_NavigationCaseType_fromOutcome_feature = From Outcome -_UI_NavigationCaseType_id_feature = Id -_UI_NavigationCaseType_toViewId_feature = To View Id -_UI_NavigationHandlerType_value_feature = Value -_UI_NavigationHandlerType_id_feature = Id -_UI_NavigationRuleType_description_feature = Description -_UI_NavigationRuleType_displayName_feature = Display Name -_UI_NavigationRuleType_icon_feature = Icon -_UI_NavigationRuleType_navigationCase_feature = Navigation Case -_UI_NavigationRuleType_fromViewId_feature = From View Id -_UI_NavigationRuleType_id_feature = Id -_UI_NullValueType_id_feature = Id -_UI_PhaseListenerType_value_feature = Value -_UI_PhaseListenerType_id_feature = Id -_UI_PropertyExtensionType_mixed_feature = Mixed -_UI_PropertyExtensionType_group_feature = Group -_UI_PropertyExtensionType_any_feature = Any -_UI_PropertyExtensionType_id_feature = Id -_UI_PropertyResolverType_value_feature = Value -_UI_PropertyResolverType_id_feature = Id -_UI_PropertyType_description_feature = Description -_UI_PropertyType_displayName_feature = Display Name -_UI_PropertyType_icon_feature = Icon -_UI_PropertyType_propertyExtension_feature = Property Extension -_UI_PropertyType_defaultValue_feature = Default Value -_UI_PropertyType_id_feature = Id -_UI_PropertyType_propertyClass_feature = Property Class -_UI_PropertyType_propertyName_feature = Property Name -_UI_PropertyType_suggestedValue_feature = Suggested Value -_UI_RedirectType_id_feature = Id -_UI_ReferencedBeanType_description_feature = Description -_UI_ReferencedBeanType_displayName_feature = Display Name -_UI_ReferencedBeanType_icon_feature = Icon -_UI_ReferencedBeanType_id_feature = Id -_UI_ReferencedBeanType_referencedBeanClass_feature = Referenced Bean Class -_UI_ReferencedBeanType_referencedBeanName_feature = Referenced Bean Name -_UI_RendererExtensionType_mixed_feature = Mixed -_UI_RendererExtensionType_group_feature = Group -_UI_RendererExtensionType_any_feature = Any -_UI_RendererExtensionType_id_feature = Id -_UI_RendererType_description_feature = Description -_UI_RendererType_displayName_feature = Display Name -_UI_RendererType_icon_feature = Icon -_UI_RendererType_attribute_feature = Attribute -_UI_RendererType_supportedComponentType_feature = Supported Component Type -_UI_RendererType_supportedComponentClass_feature = Supported Component Class -_UI_RendererType_rendererExtension_feature = Renderer Extension -_UI_RendererType_id_feature = Id -_UI_RendererType_rendererClass_feature = Renderer Class -_UI_RendererType_rendererType_feature = Renderer Type -_UI_RenderKitFactoryType_value_feature = Value -_UI_RenderKitFactoryType_id_feature = Id -_UI_RenderKitType_description_feature = Description -_UI_RenderKitType_displayName_feature = Display Name -_UI_RenderKitType_icon_feature = Icon -_UI_RenderKitType_renderer_feature = Renderer -_UI_RenderKitType_id_feature = Id -_UI_RenderKitType_renderKitClass_feature = Render Kit Class -_UI_RenderKitType_renderKitId_feature = Render Kit Id -_UI_StateManagerType_value_feature = Value -_UI_StateManagerType_id_feature = Id -_UI_SupportedComponentClassType_componentClass_feature = Component Class -_UI_SupportedComponentClassType_attributeName_feature = Attribute Name -_UI_SupportedComponentClassType_id_feature = Id -_UI_SupportedComponentTypeType_componentType_feature = Component Type -_UI_SupportedComponentTypeType_attributeName_feature = Attribute Name -_UI_SupportedComponentTypeType_id_feature = Id -_UI_SupportedLocaleType_value_feature = Value -_UI_SupportedLocaleType_id_feature = Id -_UI_ValidatorType_description_feature = Description -_UI_ValidatorType_displayName_feature = Display Name -_UI_ValidatorType_icon_feature = Icon -_UI_ValidatorType_attribute_feature = Attribute -_UI_ValidatorType_property_feature = Property -_UI_ValidatorType_id_feature = Id -_UI_ValidatorType_validatorClass_feature = Validator Class -_UI_ValidatorType_validatorId_feature = Validator Id -_UI_ValueType_value_feature = Value -_UI_ValueType_id_feature = Id -_UI_VariableResolverType_value_feature = Value -_UI_VariableResolverType_id_feature = Id -_UI_ViewHandlerType_value_feature = Value -_UI_ViewHandlerType_id_feature = Id -_UI_Unknown_feature = Unspecified - -scValidation_duplicate_definition=Duplicate {0} {1}
\ No newline at end of file diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AbsoluteOrderingTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AbsoluteOrderingTranslator.java deleted file mode 100644 index 9b0475f7b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AbsoluteOrderingTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class AbsoluteOrderingTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public AbsoluteOrderingTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new NameTranslator("name", facesPackage.getAbsoluteOrderingType_Name()), //$NON-NLS-1$ - new OrderingOthersTranslator("others", facesPackage.getAbsoluteOrderingType_Others()) //$NON-NLS-1$ -// new Translator("id", facesPackage.getAbsoluteOrderingType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ActionListenerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ActionListenerTranslator.java deleted file mode 100644 index a1e061726..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ActionListenerTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ActionListenerTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ActionListenerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getActionListenerType_TextContent()), - new Translator("id", facesPackage.getActionListenerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationExtensionTranslator.java deleted file mode 100644 index 5fa3beb93..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationExtensionTranslator.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Transtor for application extensions - * - * @author cbateman - * - */ -public class ApplicationExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public ApplicationExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationFactoryTranslator.java deleted file mode 100644 index 333ac0029..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ApplicationFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ApplicationFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getApplicationFactoryType_TextContent()), - new Translator("id", facesPackage.getApplicationFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationTranslator.java deleted file mode 100644 index 5a396acf7..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ApplicationTranslator.java +++ /dev/null @@ -1,57 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class ApplicationTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ApplicationTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ActionListenerTranslator("action-listener", facesPackage.getApplicationType_ActionListener()), //$NON-NLS-1$ - new DefaultRenderKitIdTranslator("default-render-kit-id", facesPackage.getApplicationType_DefaultRenderKitId()), //$NON-NLS-1$ - new MessageBundleTranslator("message-bundle", facesPackage.getApplicationType_MessageBundle()), //$NON-NLS-1$ - new NavigationHandlerTranslator("navigation-handler", facesPackage.getApplicationType_NavigationHandler()), //$NON-NLS-1$ -// new PartialTraversalTranslator("partial-traversal", facesPackage.getApplicationType_PartialTraversal()), //$NON-NLS-1$ - new ViewHandlerTranslator("view-handler", facesPackage.getApplicationType_ViewHandler()), //$NON-NLS-1$ - new StateManagerTranslator("state-manager", facesPackage.getApplicationType_StateManager()), //$NON-NLS-1$ - new ELResolverTypeTranslator("el-resolver", facesPackage.getApplicationType_ELResolver()), //$NON-NLS-1$ - new PropertyResolverTranslator("property-resolver", facesPackage.getApplicationType_PropertyResolver()), //$NON-NLS-1$ - new VariableResolverTranslator("variable-resolver", facesPackage.getApplicationType_VariableResolver()), //$NON-NLS-1$ - new ResourceHandlerTranslator("resource-handler", facesPackage.getApplicationType_ResourceHandler()), //$NON-NLS-1$ - new SystemEventListenerTranslator("system-event-listener", facesPackage.getApplicationType_SystemEventListener()), //$NON-NLS-1$ - new LocaleConfigTranslator("locale-config", facesPackage.getApplicationType_LocaleConfig()), //$NON-NLS-1$ - new ResourceBundleTranslator("resource-bundle", facesPackage.getApplicationType_ResourceBundle()), //$NON-NLS-1$ - new ApplicationExtensionTranslator("application-extension", facesPackage.getApplicationType_ApplicationExtension()), //$NON-NLS-1$ - new DefaultValidatorsTranslator("default-validators", facesPackage.getApplicationType_DefaultValidators()), //$NON-NLS-1$ - new Translator("id", facesPackage.getApplicationType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeClassTranslator.java deleted file mode 100644 index fd9ca23f4..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for attributes - * - */ -public class AttributeClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public AttributeClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getAttributeClassType_TextContent()), - new Translator("id", facesPackage.getAttributeClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeExtensionTranslator.java deleted file mode 100644 index cc990051d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeExtensionTranslator.java +++ /dev/null @@ -1,28 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * @author xnjiang, itrimble - * - */ -public class AttributeExtensionTranslator extends ExtensionTypeTranslator { - /** - * @param domNameAndPath - * @param aFeature - */ - public AttributeExtensionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeNameTranslator.java deleted file mode 100644 index 71ee9f1a9..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeNameTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for attribute names - * - * @author cbateman - * - */ -public class AttributeNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public AttributeNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getAttributeNameType_TextContent()), - new Translator("id", facesPackage.getAttributeNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeTranslator.java deleted file mode 100644 index 3916ed179..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/AttributeTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class AttributeTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public AttributeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getAttributeType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getAttributeType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getAttributeType_Icon()), //$NON-NLS-1$ - new AttributeNameTranslator("attribute-name", facesPackage.getAttributeType_AttributeName()), //$NON-NLS-1$ - new AttributeClassTranslator("attribute-class", facesPackage.getAttributeType_AttributeClass()), //$NON-NLS-1$ - new DefaultValueTranslator("default-value", facesPackage.getAttributeType_DefaultValue()), //$NON-NLS-1$ - new SuggestedValueTranslator("suggested-value", facesPackage.getAttributeType_SuggestedValue()), //$NON-NLS-1$ - new AttributeExtensionTranslator("attribute-extension", facesPackage.getAttributeType_AttributeExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getAttributeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BaseNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BaseNameTranslator.java deleted file mode 100644 index b5296cfc3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BaseNameTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the base name on a message bundle - * - * @author cbateman - * - */ -public class BaseNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param feature - */ - public BaseNameTranslator(String domNameAndPath, EStructuralFeature feature) { - super(domNameAndPath, feature, END_TAG_NO_INDENT); - } - - public Translator[] getChildren() - { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getBaseNameType_TextContent()), - new Translator("id", facesPackage.getBaseNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorClassTranslator.java deleted file mode 100644 index 90bb48ca5..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorClassTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class BehaviorClassTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public BehaviorClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getBehaviorClassType_TextContent()), - new Translator("id", facesPackage.getBehaviorClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorExtensionTranslator.java deleted file mode 100644 index a7d452f29..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorExtensionTranslator.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Transtor for application extensions - * - * @author cbateman - * - */ -public class BehaviorExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public BehaviorExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorIdTranslator.java deleted file mode 100644 index 8d45df57f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the validator id - * - */ -public class BehaviorIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public BehaviorIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getBehaviorIdType_TextContent()), - new Translator("id", facesPackage.getBehaviorIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorTranslator.java deleted file mode 100644 index c72342d7b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/BehaviorTranslator.java +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class BehaviorTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public BehaviorTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getBehaviorType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getBehaviorType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getBehaviorType_Icon()), //$NON-NLS-1$ - new BehaviorIdTranslator("behavior-id", facesPackage.getBehaviorType_BehaviorId()), //$NON-NLS-1$ - new BehaviorClassTranslator("behavior-class", facesPackage.getBehaviorType_BehaviorClass()), //$NON-NLS-1$ - new AttributeTranslator("attribute", facesPackage.getBehaviorType_Attribute()), //$NON-NLS-1$ - new PropertyTranslator("property", facesPackage.getBehaviorType_Property()), //$NON-NLS-1$ - new BehaviorExtensionTranslator("behavior-extension", facesPackage.getBehaviorType_BehaviorExtension()) //$NON-NLS-1$ - //new Translator("id", facesPackage.getBehaviorType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererClassTranslator.java deleted file mode 100644 index 2c64b6781..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererClassTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ClientBehaviorRendererClassTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ClientBehaviorRendererClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getClientBehaviorRendererClassType_TextContent()), - new Translator("id", facesPackage.getClientBehaviorRendererClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTranslator.java deleted file mode 100644 index ac3279c98..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ClientBehaviorRendererTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ClientBehaviorRendererTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ClientBehaviorRendererTypeTranslator("client-behavior-renderer-type", facesPackage.getClientBehaviorRendererType_ClientBehaviorRendererType()), //$NON-NLS-1$ - new ClientBehaviorRendererClassTranslator("client-behavior-renderer-class", facesPackage.getClientBehaviorRendererType_ClientBehaviorRendererClass()) //$NON-NLS-1$ - //new Translator("id", facesPackage.getClientBehaviorRendererType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTypeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTypeTranslator.java deleted file mode 100644 index 2ddd9ea5b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ClientBehaviorRendererTypeTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ClientBehaviorRendererTypeTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ClientBehaviorRendererTypeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getClientBehaviorRendererTypeType_TextContent()), - new Translator("id", facesPackage.getClientBehaviorRendererTypeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentClassTranslator.java deleted file mode 100644 index 1a10fd709..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentClassTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Component class translator - * - * @author cbateman - * - */ -public class ComponentClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ComponentClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getComponentClassType_TextContent()), - new Translator("id", facesPackage.getComponentClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentExtensionTranslator.java deleted file mode 100644 index 759aa58ae..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentExtensionTranslator.java +++ /dev/null @@ -1,28 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * @author xnjiang, itrimble - * - */ -public class ComponentExtensionTranslator extends ExtensionTypeTranslator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ComponentExtensionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentFamilyTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentFamilyTranslator.java deleted file mode 100644 index ac615d213..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentFamilyTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the component family property - * @author cbateman - * - */ -public class ComponentFamilyTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ComponentFamilyTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getComponentFamilyType_TextContent()), - new Translator("id", facesPackage.getComponentFamilyType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTranslator.java deleted file mode 100644 index 437f644f4..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTranslator.java +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ComponentTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ComponentTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getComponentType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getComponentType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getComponentType_Icon()), //$NON-NLS-1$ - new ComponentTypeTranslator("component-type", facesPackage.getComponentType_ComponentType()), //$NON-NLS-1$ - new ComponentClassTranslator("component-class", facesPackage.getComponentType_ComponentClass()), //$NON-NLS-1$ - new FacetTranslator("facet", facesPackage.getComponentType_Facet()), //$NON-NLS-1$ - new AttributeTranslator("attribute", facesPackage.getComponentType_Attribute()), //$NON-NLS-1$ - new PropertyTranslator("property", facesPackage.getComponentType_Property()), //$NON-NLS-1$ - new ComponentExtensionTranslator("component-extension", facesPackage.getComponentType_ComponentExtension()),//ComponentExtensionTranslator("component-extension", facesPackage.getComponentType_ComponentExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getComponentType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTypeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTypeTranslator.java deleted file mode 100644 index e489cbf29..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ComponentTypeTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translater of components - * - */ -public class ComponentTypeTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ComponentTypeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getComponentTypeType_TextContent()), - new Translator("id", facesPackage.getComponentTypeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterClassTranslator.java deleted file mode 100644 index c1f6221a2..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for converters - * - */ -public class ConverterClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ConverterClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getConverterClassType_TextContent()), - new Translator("id", facesPackage.getConverterClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterExtensionTranslator.java deleted file mode 100644 index 66f829228..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterExtensionTranslator.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for extension data on converters - * - * @author cbateman - * - */ -public class ConverterExtensionTranslator extends ExtensionTypeTranslator -{ - /** - * @param domNameAndPath - * @param feature - */ - public ConverterExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) - { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterForClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterForClassTranslator.java deleted file mode 100644 index 31f603c22..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterForClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * ConverterForClass translator - * - */ -public class ConverterForClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ConverterForClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getConverterForClassType_TextContent()), - new Translator("id", facesPackage.getConverterForClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterIdTranslator.java deleted file mode 100644 index b0a8a1925..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for converter id - * - */ -public class ConverterIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ConverterIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getConverterIdType_TextContent()), - new Translator("id", facesPackage.getConverterIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterTranslator.java deleted file mode 100644 index 11a0c687e..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ConverterTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ConverterTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ConverterTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getConverterType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getConverterType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getConverterType_Icon()), //$NON-NLS-1$ - new ConverterIdTranslator("converter-id", facesPackage.getConverterType_ConverterId()), //$NON-NLS-1$ - new ConverterForClassTranslator("converter-for-class", facesPackage.getConverterType_ConverterForClass()), //$NON-NLS-1$ - new ConverterClassTranslator("converter-class", facesPackage.getConverterType_ConverterClass()), //$NON-NLS-1$ - new AttributeTranslator("attribute", facesPackage.getConverterType_Attribute()), //$NON-NLS-1$ - new PropertyTranslator("property", facesPackage.getConverterType_Property()), //$NON-NLS-1$ - new ConverterExtensionTranslator("converter-extension", facesPackage.getConverterType_ConverterExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getConverterType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultLocaleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultLocaleTranslator.java deleted file mode 100644 index bf74445fb..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultLocaleTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for default locale - * - */ -public class DefaultLocaleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public DefaultLocaleTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getDefaultLocaleType_TextContent()), - new Translator("id", facesPackage.getDefaultLocaleType_Id(), DOM_ATTRIBUTE)//$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultRenderKitIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultRenderKitIdTranslator.java deleted file mode 100644 index bbd9307eb..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultRenderKitIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class DefaultRenderKitIdTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public DefaultRenderKitIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getDefaultRenderKitIdType_TextContent()), - new Translator("id", facesPackage.getDefaultRenderKitIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValidatorsTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValidatorsTranslator.java deleted file mode 100644 index de93d939e..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValidatorsTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class DefaultValidatorsTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public DefaultValidatorsTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ValidatorIdTranslator("validator-id", facesPackage.getDefaultValidatorsType_ValidatorId()), //$NON-NLS-1$ - new Translator("id", facesPackage.getDefaultValidatorsType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValueTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValueTranslator.java deleted file mode 100644 index cb23479e2..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DefaultValueTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for default values - * - */ -public class DefaultValueTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public DefaultValueTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getDefaultValueType_TextContent()), - new Translator("id", facesPackage.getDefaultValueType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DescriptionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DescriptionTranslator.java deleted file mode 100644 index d6faf0df0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DescriptionTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added text content and id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class DescriptionTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public DescriptionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getDescriptionType_TextContent()), - new Translator("xml:lang", facesPackage.getDescriptionType_Lang(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getDescriptionType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DisplayNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DisplayNameTranslator.java deleted file mode 100644 index e48a3c7bc..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DisplayNameTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added text content and id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class DisplayNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public DisplayNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getDisplayNameType_TextContent()), - new Translator("xml:lang", facesPackage.getDisplayNameType_Lang(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getDisplayNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DynamicElementTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DynamicElementTranslator.java deleted file mode 100644 index d6173a796..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/DynamicElementTranslator.java +++ /dev/null @@ -1,496 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -/** - * - */ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.jst.jsf.facesconfig.emf.DynamicAttribute; -import org.eclipse.jst.jsf.facesconfig.emf.DynamicElement; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigFactory; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.ReadAheadHelper; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.eclipse.wst.common.internal.emf.resource.TranslatorPath; -import org.eclipse.wst.common.internal.emf.resource.VariableTranslatorFactory; -import org.w3c.dom.Attr; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; - -class DynamicElementTranslator extends Translator implements IAnyTranslator -{ - public boolean isManagedByParent() { - return false; - } - - protected Translator[] getChildren() - { - FacesConfigPackage facesConfigPackage = FacesConfigPackage.eINSTANCE; - - return new Translator[] - { - new DynamicElementTranslator("*", facesConfigPackage.getDynamicElement_ChildNodes()), //$NON-NLS-1$ - new Translator(TEXT_ATTRIBUTE_VALUE, facesConfigPackage.getDynamicElement_TextContent()) - { - public Object getMOFValue(EObject object) - { - // TODO: this is a bit of a hack. The problem is - // that for some reason, if this translator returns - // null, then EMF2DOMAdapterImpl.updateDOMSubtree will - // remove the containing DynamicElement node completely. - // Returning an non-null empty value seems to work - // around this for now. - Object value = super.getMOFValue(object); - return value != null ? value : ""; //$NON-NLS-1$ - } - } - }; - } - - /** - * @param domNameAndPath - * @param feature - */ - public DynamicElementTranslator(String domNameAndPath, - EStructuralFeature feature) - { - super(domNameAndPath, feature); - } - public boolean isMapFor(String domName) { - return true; - } - - public EObject createEMFObject(String nodeName, String readAheadName) { - // tag name is based on the name property - DynamicElement element = FacesConfigFactory.eINSTANCE.createDynamicElement(); - element.setName(nodeName); - return element; - } - - public String getDOMName(Object value) { - // tag name is based on the name property - if (value instanceof DynamicElement) - { - return ((DynamicElement)value).getName(); - } - return ""; //$NON-NLS-1$ - } - - public Translator[] getDynamicAttributeTranslators(Node element) { - NamedNodeMap attributeMap = element.getAttributes(); - List attributes = new ArrayList(attributeMap.getLength()); - for (int i = 0; i < attributeMap.getLength(); i++) - { - Attr attr = (Attr) attributeMap.item(i); - attributes.add( - new DynamicAttributeTranslator(attr.getNodeName(), - FacesConfigPackage.eINSTANCE.getDynamicElement_Attributes())); - } - - return (Translator[]) attributes.toArray(new Translator[0]); - } - - public Translator[] getDynamicAttributeTranslators(DynamicElement element) { - List attributes = element.getAttributes(); - Translator[] translators = new Translator[attributes.size()]; - int i = 0; - for (Iterator it = attributes.iterator(); it.hasNext();) - { - DynamicAttribute attribute = (DynamicAttribute) it.next(); - translators[i++] = new DynamicAttributeTranslator(attribute.getName(), - FacesConfigPackage.eINSTANCE.getDynamicElement_Attributes()); - } - return translators; - } - - private static class DynamicAttributeTranslator extends Translator - { - - /** - * @param domNameAndPath - * @param feature - */ - public DynamicAttributeTranslator(String domNameAndPath, EStructuralFeature feature) - { - // the "*" is a place holder. The dom path gets ignored in - // this translator. It's a handy one because it is invalid - // tag name data so if it gets transmitted to the model - // we will get an exception - super(domNameAndPath, feature, DOM_ATTRIBUTE); - } - - public boolean isMapFor(String domName) { - return super.isMapFor(domName); - } - - public EObject createEMFObject(String nodeName, String readAheadName) { - // attribute name is based on the name property - DynamicAttribute attribute = FacesConfigFactory.eINSTANCE.createDynamicAttribute(); - attribute.setName(nodeName); - return attribute; - } - - protected Translator[] getChildren() { - return new Translator[0]; - } - - public void addReadAheadHelper(ReadAheadHelper helper) { - // TODO Auto-generated method stub - super.addReadAheadHelper(helper); - } - - public EObject basicGetDependencyObject(EObject parent) { - // TODO Auto-generated method stub - return super.basicGetDependencyObject(parent); - } - - public void clearList(EObject mofObject) { - // TODO Auto-generated method stub - super.clearList(mofObject); - } - - public Object convertStringToValue(String strValue, EObject owner) { - // TODO Auto-generated method stub - return super.convertStringToValue(strValue, owner); - } - - public Object convertStringToValue(String nodeName, - String readAheadName, String value, Notifier owner) { - // TODO Auto-generated method stub - return super.convertStringToValue(nodeName, readAheadName, value, owner); - } - - public String convertValueToString(Object value, EObject owner) { - // TODO Auto-generated method stub - return super.convertValueToString(value, owner); - } - - public boolean equals(Object object) { - // TODO Auto-generated method stub - return super.equals(object); - } - - public String extractStringValue(EObject emfObject) { - // TODO Auto-generated method stub - return super.extractStringValue(emfObject); - } - - public boolean featureExists(EObject emfObject) { - // TODO Auto-generated method stub - return super.featureExists(emfObject); - } - - public Translator findChild(String tagName, Object target, int versionID) { - // TODO Auto-generated method stub - return super.findChild(tagName, target, versionID); - } - - public Translator[] getChildren(Object target, int versionID) { - // TODO Auto-generated method stub - return super.getChildren(target, versionID); - } - - public EStructuralFeature getDependencyFeature() { - // TODO Auto-generated method stub - return super.getDependencyFeature(); - } - - public String[] getDOMNames() { - // TODO Auto-generated method stub - return super.getDOMNames(); - } - - public String getDOMPath() { - // TODO Auto-generated method stub - return super.getDOMPath(); - } - - public EStructuralFeature getFeature() { - // TODO Auto-generated method stub - return super.getFeature(); - } - - public List getMOFChildren(EObject mofObject) { - // TODO Auto-generated method stub - return super.getMOFChildren(mofObject); - } - - public Object getMOFValue(EObject mofObject) { - if (mofObject instanceof DynamicElement) - { - EList attributes = ((DynamicElement)mofObject).getAttributes(); - - for (final Iterator it = attributes.iterator(); it.hasNext();) - { - DynamicAttribute attribute = (DynamicAttribute) it.next(); - if (fDOMNames[0].equals(attribute.getName())) - { - return attribute.getValue(); - } - } - } - - return null; - } - - public String getNameSpace() { - // TODO Auto-generated method stub - return super.getNameSpace(); - } - - public ReadAheadHelper getReadAheadHelper(String parentName) { - // TODO Auto-generated method stub - return super.getReadAheadHelper(parentName); - } - - public TranslatorPath[] getTranslatorPaths() { - // TODO Auto-generated method stub - return super.getTranslatorPaths(); - } - - public Translator[] getVariableChildren(Notifier target, int version) { - // TODO Auto-generated method stub - return super.getVariableChildren(target, version); - } - - public VariableTranslatorFactory getVariableTranslatorFactory() { - // TODO Auto-generated method stub - return super.getVariableTranslatorFactory(); - } - - public boolean hasDOMPath() { - // TODO Auto-generated method stub - return super.hasDOMPath(); - } - - public boolean hasReadAheadNames() { - // TODO Auto-generated method stub - return super.hasReadAheadNames(); - } - - protected void initializeDOMNameAndPath(String domNameAndPathArg) { - // TODO Auto-generated method stub - super.initializeDOMNameAndPath(domNameAndPathArg); - } - - public boolean isBooleanFeature() { - // TODO Auto-generated method stub - return super.isBooleanFeature(); - } - - public boolean isBooleanUppercase() { - // TODO Auto-generated method stub - return super.isBooleanUppercase(); - } - - public boolean isCDATAContent() { - // TODO Auto-generated method stub - return super.isCDATAContent(); - } - - public boolean isComment() { - // TODO Auto-generated method stub - return super.isComment(); - } - - public boolean isDataType() { - // TODO Auto-generated method stub - return super.isDataType(); - } - - public boolean isDependencyChild() { - // TODO Auto-generated method stub - return super.isDependencyChild(); - } - - public boolean isDependencyParent() { - // TODO Auto-generated method stub - return super.isDependencyParent(); - } - - public boolean isDOMAttribute() { - // TODO Auto-generated method stub - return super.isDOMAttribute(); - } - - public boolean isDOMTextValue() { - // TODO Auto-generated method stub - return super.isDOMTextValue(); - } - - public boolean isEmptyContentSignificant() { - // TODO Auto-generated method stub - return super.isEmptyContentSignificant(); - } - - public boolean isEmptyTag() { - // TODO Auto-generated method stub - return super.isEmptyTag(); - } - - public boolean isEnumFeature() { - // TODO Auto-generated method stub - return super.isEnumFeature(); - } - - public boolean isEnumWithHyphens() { - // TODO Auto-generated method stub - return super.isEnumWithHyphens(); - } - - public boolean isIDMap() { - // TODO Auto-generated method stub - return super.isIDMap(); - } - - public boolean isLinkMap() { - // TODO Auto-generated method stub - return super.isLinkMap(); - } - - public boolean isManagedByParent() { - // TODO Auto-generated method stub - return super.isManagedByParent(); - } - - public boolean isMapFor(Object feature1, Object oldValue, Object newValue) { - return super.isMapFor(feature1, oldValue, newValue); - } - - public boolean isMultiValued() { - // we want to treat each attribute as a single value - return false; - } - - public boolean isObjectMap() { - // TODO Auto-generated method stub - return super.isObjectMap(); - } - - public boolean isSetMOFValue(EObject emfObject) { - // TODO Auto-generated method stub - return super.isSetMOFValue(emfObject); - } - - public boolean isShared() { - // TODO Auto-generated method stub - return super.isShared(); - } - - public boolean isTargetLinkMap() { - // TODO Auto-generated method stub - return super.isTargetLinkMap(); - } - - public boolean isUnsettable() { - // TODO Auto-generated method stub - return super.isUnsettable(); - } - - protected String[] parseDOMNames(String domNamesString) { - // TODO Auto-generated method stub - return super.parseDOMNames(domNamesString); - } - - public void removeMOFValue(Notifier owner, Object value) { - // TODO Auto-generated method stub - super.removeMOFValue(owner, value); - } - - protected void setEMFClass(EClass anEClass) { - // TODO Auto-generated method stub - super.setEMFClass(anEClass); - } - - protected void setFeature(EStructuralFeature feature) { - // TODO Auto-generated method stub - super.setFeature(feature); - } - - public void setMOFValue(Notifier owner, Object value, int newIndex) { - if (owner instanceof DynamicElement) - { - DynamicAttribute attribute = FacesConfigFactory.eINSTANCE.createDynamicAttribute(); - attribute.setName(fDOMNames[0]); - attribute.setValue(value.toString()); - - EList attributes = ((DynamicElement)owner).getAttributes(); - if (newIndex < 0 || newIndex >= attributes.size()) - { - attributes.add(attribute); - } - else - { - attributes.set(newIndex, attribute); - } - } - // otherwise do nothing - } - - public void setMOFValue(Notifier owner, Object value) { - // TODO Auto-generated method stub - super.setMOFValue(owner, value); - } - - public void setMOFValue(Resource res, Object value) { - // TODO Auto-generated method stub - super.setMOFValue(res, value); - } - - public void setMOFValueFromEmptyDOMPath(EObject object) { - // TODO Auto-generated method stub - super.setMOFValueFromEmptyDOMPath(object); - } - - public void setNameSpace(String string) { - // TODO Auto-generated method stub - super.setNameSpace(string); - } - - public void setTextValueIfNecessary(String textValue, Notifier owner, - int versionId) { - // TODO Auto-generated method stub - super.setTextValueIfNecessary(textValue, owner, versionId); - } - - public boolean shouldIndentEndTag() { - // TODO Auto-generated method stub - return super.shouldIndentEndTag(); - } - - public boolean shouldRenderEmptyDOMPath(EObject object) { - // TODO Auto-generated method stub - return super.shouldRenderEmptyDOMPath(object); - } - - public String toString() { - // TODO Auto-generated method stub - return super.toString(); - } - - public void unSetMOFValue(EObject emfObject) { - // TODO Auto-generated method stub - super.unSetMOFValue(emfObject); - } - - - } -}
\ No newline at end of file diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ELResolverTypeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ELResolverTypeTranslator.java deleted file mode 100644 index 96b054850..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ELResolverTypeTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * The el-resolver translator - * - */ -public class ELResolverTypeTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ELResolverTypeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getELResolverType_TextContent()), - new Translator("id", facesPackage.getELResolverType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExceptionHandlerFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExceptionHandlerFactoryTranslator.java deleted file mode 100644 index 41a24feb3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExceptionHandlerFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ExceptionHandlerFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ExceptionHandlerFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getExceptionHandlerFactoryType_TextContent()), - new Translator("id", facesPackage.getExceptionHandlerFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExtensionTypeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExtensionTypeTranslator.java deleted file mode 100644 index eca0e5775..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExtensionTypeTranslator.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for extension types - * - */ -public abstract class ExtensionTypeTranslator extends Translator -{ - /** - * @param domNameAndPath - * @param aFeature - */ - public ExtensionTypeTranslator(String domNameAndPath, EStructuralFeature aFeature) - { - super(domNameAndPath, aFeature); - } - - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator("id", facesPackage.getExtensionType_Id(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new DynamicElementTranslator("*", facesPackage.getExtensionType_ChildNodes()) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExternalContextFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExternalContextFactoryTranslator.java deleted file mode 100644 index 71039167f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ExternalContextFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ExternalContextFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ExternalContextFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getExternalContextFactoryType_TextContent()), - new Translator("id", facesPackage.getExternalContextFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigExtensionTranslator.java deleted file mode 100644 index b5819cb14..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for FacesConfig extension data - * - */ -public class FacesConfigExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public FacesConfigExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigTranslator.java deleted file mode 100644 index 599927e9f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesConfigTranslator.java +++ /dev/null @@ -1,64 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - - -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.RootTranslator; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class FacesConfigTranslator extends RootTranslator { - - /** - * Instance of translator - */ - public static FacesConfigTranslator INSTANCE = new FacesConfigTranslator(); - - /** - * Default constructor - */ - public FacesConfigTranslator() { - super("faces-config", FacesConfigPackage.eINSTANCE.getFacesConfigType()); //$NON-NLS-1$ - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ApplicationTranslator("application", facesPackage.getFacesConfigType_Application()), //$NON-NLS-1$ - new OrderingTranslator("ordering", facesPackage.getFacesConfigType_Ordering()), //$NON-NLS-1$ - new AbsoluteOrderingTranslator("absolute-ordering", facesPackage.getFacesConfigType_AbsoluteOrdering()), //$NON-NLS-1$ - new FactoryTranslator("factory", facesPackage.getFacesConfigType_Factory()), //$NON-NLS-1$ - new ComponentTranslator("component", facesPackage.getFacesConfigType_Component()), //$NON-NLS-1$ - new ConverterTranslator("converter", facesPackage.getFacesConfigType_Converter()), //$NON-NLS-1$ - new ManagedBeanTranslator("managed-bean", facesPackage.getFacesConfigType_ManagedBean()), //$NON-NLS-1$ - new NameTranslator("name", facesPackage.getFacesConfigType_Name()), //$NON-NLS-1$ - new NavigationRuleTranslator("navigation-rule", facesPackage.getFacesConfigType_NavigationRule()), //$NON-NLS-1$ - new ReferencedBeanTranslator("referenced-bean", facesPackage.getFacesConfigType_ReferencedBean()), //$NON-NLS-1$ - new RenderKitTranslator("render-kit", facesPackage.getFacesConfigType_RenderKit()), //$NON-NLS-1$ - new LifecycleTranslator("lifecycle", facesPackage.getFacesConfigType_Lifecycle()), //$NON-NLS-1$ - new ValidatorTranslator("validator", facesPackage.getFacesConfigType_Validator()), //$NON-NLS-1$ - new BehaviorTranslator("behavior", facesPackage.getFacesConfigType_Behavior()), //$NON-NLS-1$ - new FacesConfigExtensionTranslator("faces-config-extension", facesPackage.getFacesConfigType_FacesConfigExtension()), //$NON_NLS-1$ //$NON-NLS-1$ - new Translator("xmlns", facesPackage.getFacesConfigType_Xmlns(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("metadata-complete", facesPackage.getFacesConfigType_MetadataComplete(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getFacesConfigType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesContextFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesContextFactoryTranslator.java deleted file mode 100644 index 8ad0eda7b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacesContextFactoryTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class FacesContextFactoryTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FacesContextFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getFacesContextFactoryType_TextContent()), - new Translator("id", facesPackage.getFacesContextFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetExtensionTranslator.java deleted file mode 100644 index 3cffc06da..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetExtensionTranslator.java +++ /dev/null @@ -1,28 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Orcale Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * @author xnjiang, itrimble - * - */ -public class FacetExtensionTranslator extends ExtensionTypeTranslator { - /** - * @param domNameAndPath - * @param aFeature - */ - public FacetExtensionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetNameTranslator.java deleted file mode 100644 index 81e502316..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetNameTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for facet name - * - */ -public class FacetNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FacetNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getFacetNameType_TextContent()), - new Translator("id", facesPackage.getFacetNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetTranslator.java deleted file mode 100644 index 52f7b1f2a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FacetTranslator.java +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class FacetTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FacetTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getFacetType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getFacetType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getFacetType_Icon()), //$NON-NLS-1$ - new FacetNameTranslator("facet-name", facesPackage.getFacetType_FacetName()), //$NON-NLS-1$ - new FacetExtensionTranslator("facet-extension", facesPackage.getFacetType_FacetExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getFacetType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryExtensionTranslator.java deleted file mode 100644 index 0bdd623cf..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * The factory extension translator - * - */ -public class FactoryExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public FactoryExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryTranslator.java deleted file mode 100644 index c49a70ce0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FactoryTranslator.java +++ /dev/null @@ -1,52 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author Eric Bordeau, itrimble - */ -public class FactoryTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ApplicationFactoryTranslator("application-factory", facesPackage.getFactoryType_ApplicationFactory()), //$NON-NLS-1$ - new ExceptionHandlerFactoryTranslator("exception-handler-factory", facesPackage.getFactoryType_ExceptionHandlerFactory()), //$NON-NLS-1$ - new ExternalContextFactoryTranslator("external-context-factory", facesPackage.getFactoryType_ExternalContextFactory()), //$NON-NLS-1$ - new FacesContextFactoryTranslator("faces-context-factory", facesPackage.getFactoryType_FacesContextFactory()), //$NON-NLS-1$ - new PartialViewContextFactoryTranslator("partial-view-context-factory", facesPackage.getFactoryType_PartialViewContextFactory()), //$NON-NLS-1$ - new LifecycleFactoryTranslator("lifecycle-factory", facesPackage.getFactoryType_LifecycleFactory()), //$NON-NLS-1$ - new ViewDeclarationLanguageFactoryTranslator("view-declaration-language-factory", facesPackage.getFactoryType_ViewDeclarationLanguageFactory()), //$NON-NLS-1$ - new TagHandlerDelegateFactoryTranslator("tag-handler-delegate-factory", facesPackage.getFactoryType_TagHandlerDelegateFactory()), //$NON-NLS-1$ - new RenderKitFactoryTranslator("render-kit-factory", facesPackage.getFactoryType_RenderKitFactory()), //$NON-NLS-1$ - new VisitContextFactoryTranslator("visit-context-factory", facesPackage.getFactoryType_VisitContextFactory()), //$NON-NLS-1$ - new FactoryExtensionTranslator("factory-extension", facesPackage.getFactoryType_FactoryExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromActionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromActionTranslator.java deleted file mode 100644 index b792ce800..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromActionTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for FromAction - * - */ -public class FromActionTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FromActionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getFromActionType_TextContent()), - new Translator("id", facesPackage.getFromActionType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromOutcomeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromOutcomeTranslator.java deleted file mode 100644 index 9779b415d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromOutcomeTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for FromOutcome - * - */ -public class FromOutcomeTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FromOutcomeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getFromOutcomeType_TextContent()), - new Translator("id", facesPackage.getFromOutcomeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromViewIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromViewIdTranslator.java deleted file mode 100644 index 2616e4a8a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/FromViewIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for FromViewId - * - */ -public class FromViewIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public FromViewIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getFromViewIdType_TextContent()), - new Translator("id", facesPackage.getFromViewIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IAnyTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IAnyTranslator.java deleted file mode 100644 index 06d075753..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IAnyTranslator.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.jst.jsf.facesconfig.emf.DynamicElement; -import org.eclipse.wst.common.internal.emf.resource.Translator; -import org.w3c.dom.Node; - -/** - * A translator that can handle the DTD ANY and XSD anyType XML - * - * @author cbateman - * - */ -public interface IAnyTranslator { - /** - * Allows an ANY translator for elements to - * dynamically inject attribute translators - * based on the contents of the Element node's - * runtime attribute values - * - * @param element - * @return a list of translators for attributes - * of dynamic elements - */ - Translator[] getDynamicAttributeTranslators(Node element); - - /** - * Allows an ANY translator for elements to - * dynamically inject attribute translators - * based on the contents of an DynamicElement that - * may not already be in the corresponding DOM element - * - * @param element - * @return a list of translators for attributes of dynamic elements - */ - Translator[] getDynamicAttributeTranslators(DynamicElement element); -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IconTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IconTranslator.java deleted file mode 100644 index 9f33f6ad3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IconTranslator.java +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class IconTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public IconTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new SmallIconTranslator("small-icon", facesPackage.getIconType_SmallIcon()), //$NON-NLS-1$ - new LargeIconTranslator("large-icon", facesPackage.getIconType_LargeIcon()), //$NON-NLS-1$ - new Translator("xml:lang", facesPackage.getIconType_Lang(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getIconType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IfTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IfTranslator.java deleted file mode 100644 index 3016a6bc3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/IfTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class IfTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public IfTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getIfType_TextContent()), - new Translator("id", facesPackage.getIfType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyClassTranslator.java deleted file mode 100644 index 1c8f90428..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyClassTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for key class property - * - * @author cbateman - * - */ -public class KeyClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public KeyClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getKeyClassType_TextContent()), - new Translator("id", facesPackage.getKeyClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyTranslator.java deleted file mode 100644 index 6d7f354e0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/KeyTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for key property - * - */ -public class KeyTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public KeyTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getKeyType_TextContent()), - new Translator("id", facesPackage.getKeyType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LargeIconTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LargeIconTranslator.java deleted file mode 100644 index 0c7e44c92..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LargeIconTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for large icon property - * - */ -public class LargeIconTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public LargeIconTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getLargeIconType_TextContent()), - new Translator("id", facesPackage.getLargeIconType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleExtensionTranslator.java deleted file mode 100644 index c5c9f2d1e..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for lifecycle extensions - * - */ -public class LifecycleExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public LifecycleExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleFactoryTranslator.java deleted file mode 100644 index 0d06154b8..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleFactoryTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class LifecycleFactoryTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public LifecycleFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getLifecycleFactoryType_TextContent()), - new Translator("id", facesPackage.getLifecycleFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleTranslator.java deleted file mode 100644 index c36905ed0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LifecycleTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author Eric Bordeau, itrimble - */ -public class LifecycleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public LifecycleTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new PhaseListenerTranslator("phase-listener", facesPackage.getLifecycleType_PhaseListener()), //$NON-NLS-1$ - new LifecycleExtensionTranslator("lifecycle-extension",facesPackage.getLifecycleType_LifecycleExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getLifecycleType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ListEntriesTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ListEntriesTranslator.java deleted file mode 100644 index c2093a54f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ListEntriesTranslator.java +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ListEntriesTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ListEntriesTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new ValueClassTranslator("value-class", facesPackage.getListEntriesType_ValueClass()), //$NON-NLS-1$ - new NullValueTranslator("null-value", facesPackage.getListEntriesType_NullValue()), //$NON-NLS-1$ - new ValueTranslator("value", facesPackage.getListEntriesType_Value()), //$NON-NLS-1$ - new Translator("id", facesPackage.getListEntriesType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LocaleConfigTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LocaleConfigTranslator.java deleted file mode 100644 index caed4ae25..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/LocaleConfigTranslator.java +++ /dev/null @@ -1,44 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class LocaleConfigTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public LocaleConfigTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DefaultLocaleTranslator("default-locale", facesPackage.getLocaleConfigType_DefaultLocale()), //$NON-NLS-1$ - new SupportedLocaleTranslator("supported-locale", facesPackage.getLocaleConfigType_SupportedLocale()), //$NON-NLS-1$ - new Translator("id", facesPackage.getLocaleConfigType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanClassTranslator.java deleted file mode 100644 index 2317987f1..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the managed bean class - * - */ -public class ManagedBeanClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ManagedBeanClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getManagedBeanClassType_TextContent()), - new Translator("id", facesPackage.getManagedBeanClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanExtensionTranslator.java deleted file mode 100644 index e3d967a14..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for managed bean extensions - * - */ -public class ManagedBeanExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public ManagedBeanExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanNameTranslator.java deleted file mode 100644 index d2ded7cb9..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanNameTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for managed bean name - * - */ -public class ManagedBeanNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ManagedBeanNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getManagedBeanNameType_TextContent()), - new Translator("id", facesPackage.getManagedBeanNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanScopeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanScopeTranslator.java deleted file mode 100644 index 7138a6d3f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanScopeTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for managed bean scope - * - */ -public class ManagedBeanScopeTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ManagedBeanScopeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getManagedBeanScopeType_TextContent()), - new Translator("id", facesPackage.getManagedBeanScopeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanTranslator.java deleted file mode 100644 index c306f6c43..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedBeanTranslator.java +++ /dev/null @@ -1,53 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ManagedBeanTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ManagedBeanTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getManagedBeanType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getManagedBeanType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getManagedBeanType_Icon()), //$NON-NLS-1$ - new ManagedBeanNameTranslator("managed-bean-name", facesPackage.getManagedBeanType_ManagedBeanName()), //$NON-NLS-1$ - new ManagedBeanClassTranslator("managed-bean-class", facesPackage.getManagedBeanType_ManagedBeanClass()), //$NON-NLS-1$ - new ManagedBeanScopeTranslator("managed-bean-scope", facesPackage.getManagedBeanType_ManagedBeanScope()), //$NON-NLS-1$ - new ManagedPropertyTranslator("managed-property", facesPackage.getManagedBeanType_ManagedProperty()), //$NON-NLS-1$ - new MapEntriesTranslator("map-entries", facesPackage.getManagedBeanType_MapEntries()), //$NON-NLS-1$ - new ListEntriesTranslator("list-entries", facesPackage.getManagedBeanType_ListEntries()), //$NON-NLS-1$ - new ManagedBeanExtensionTranslator("managed-bean-extension", facesPackage.getManagedBeanType_ManagedBeanExtension()), //$NON-NLS-1$ - new Translator("eager", facesPackage.getManagedBeanType_Eager(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getManagedBeanType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedPropertyTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedPropertyTranslator.java deleted file mode 100644 index 49198cb56..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ManagedPropertyTranslator.java +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ManagedPropertyTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ManagedPropertyTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getManagedPropertyType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getManagedPropertyType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getManagedPropertyType_Icon()), //$NON-NLS-1$ - new PropertyNameTranslator("property-name", facesPackage.getManagedPropertyType_PropertyName()), //$NON-NLS-1$ - new PropertyClassTranslator("property-class", facesPackage.getManagedPropertyType_PropertyClass()), //$NON-NLS-1$ - new MapEntriesTranslator("map-entries", facesPackage.getManagedPropertyType_MapEntries()), //$NON-NLS-1$ - new NullValueTranslator("null-value", facesPackage.getManagedPropertyType_NullValue()), //$NON-NLS-1$ - new ValueTranslator("value", facesPackage.getManagedPropertyType_Value()), //$NON-NLS-1$ - new ListEntriesTranslator("list-entries", facesPackage.getManagedPropertyType_ListEntries()), //$NON-NLS-1$ - new Translator("id", facesPackage.getManagedPropertyType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntriesTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntriesTranslator.java deleted file mode 100644 index 40faec1e0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntriesTranslator.java +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class MapEntriesTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public MapEntriesTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new KeyClassTranslator("key-class", facesPackage.getMapEntriesType_KeyClass()), //$NON-NLS-1$ - new ValueClassTranslator("value-class", facesPackage.getMapEntriesType_ValueClass()), //$NON-NLS-1$ - new MapEntryTranslator("map-entry", facesPackage.getMapEntriesType_MapEntry()), //$NON-NLS-1$ - new Translator("id", facesPackage.getMapEntriesType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntryTranslator.java deleted file mode 100644 index d57150254..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MapEntryTranslator.java +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class MapEntryTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public MapEntryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new KeyTranslator("key", facesPackage.getMapEntryType_Key()), //$NON-NLS-1$ - new NullValueTranslator("null-value", facesPackage.getMapEntryType_NullValue()), //$NON-NLS-1$ - new ValueTranslator("value", facesPackage.getMapEntryType_Value()), //$NON-NLS-1$ - new Translator("id", facesPackage.getMapEntryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MessageBundleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MessageBundleTranslator.java deleted file mode 100644 index d052df629..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/MessageBundleTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class MessageBundleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public MessageBundleTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getMessageBundleType_TextContent()), - new Translator("id", facesPackage.getMessageBundleType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NameTranslator.java deleted file mode 100644 index 96bf3ba20..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NameTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class NameTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public NameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getNameType_TextContent()), - new Translator("id", facesPackage.getNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationCaseTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationCaseTranslator.java deleted file mode 100644 index 4d1470215..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationCaseTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class NavigationCaseTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public NavigationCaseTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getNavigationCaseType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getNavigationCaseType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getNavigationCaseType_Icon()), //$NON-NLS-1$ - new FromActionTranslator("from-action", facesPackage.getNavigationCaseType_FromAction()), //$NON-NLS-1$ - new FromOutcomeTranslator("from-outcome", facesPackage.getNavigationCaseType_FromOutcome()), //$NON-NLS-1$ - new IfTranslator("if", facesPackage.getNavigationCaseType_If()), //$NON-NLS-1$ - new ToViewIdTranslator("to-view-id", facesPackage.getNavigationCaseType_ToViewId()), //$NON-NLS-1$ - new RedirectTranslator("redirect", facesPackage.getNavigationCaseType_Redirect()), //$NON-NLS-1$ - new Translator("id", facesPackage.getNavigationCaseType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationHandlerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationHandlerTranslator.java deleted file mode 100644 index 694a00994..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationHandlerTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class NavigationHandlerTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public NavigationHandlerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getNavigationHandlerType_TextContent()), - new Translator("id", facesPackage.getNavigationHandlerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleExtensionTranslator.java deleted file mode 100644 index f1c02f737..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleExtensionTranslator.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for navigation rule extensions - * - */ -public class NavigationRuleExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public NavigationRuleExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleTranslator.java deleted file mode 100644 index f808698b3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NavigationRuleTranslator.java +++ /dev/null @@ -1,48 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class NavigationRuleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public NavigationRuleTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getNavigationRuleType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getNavigationRuleType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getNavigationRuleType_Icon()), //$NON-NLS-1$ - new FromViewIdTranslator("from-view-id", facesPackage.getNavigationRuleType_FromViewId()), //$NON-NLS-1$ - new NavigationCaseTranslator("navigation-case", facesPackage.getNavigationRuleType_NavigationCase()), //$NON-NLS-1$ - new NavigationRuleExtensionTranslator("navigation-rule-extension", facesPackage.getNavigationRuleType_NavigationRuleExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getNavigationRuleType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NullValueTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NullValueTranslator.java deleted file mode 100644 index e4507cdb5..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/NullValueTranslator.java +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class NullValueTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public NullValueTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, EMPTY_TAG|END_TAG_NO_INDENT); - } - - public boolean isSetMOFValue(EObject emfObject) { - return feature != null && emfObject.eIsSet(feature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator("id", facesPackage.getNullValueType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOrderingTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOrderingTranslator.java deleted file mode 100644 index 3fd453175..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOrderingTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class OrderingOrderingTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public OrderingOrderingTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new NameTranslator("name", facesPackage.getOrderingOrderingType_Name()), //$NON-NLS-1$ - new OrderingOthersTranslator("others", facesPackage.getOrderingOrderingType_Others()) //$NON-NLS-1$ -// new Translator("id", facesPackage.getOrderingOrderingType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOthersTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOthersTranslator.java deleted file mode 100644 index f7ab41019..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingOthersTranslator.java +++ /dev/null @@ -1,40 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class OrderingOthersTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public OrderingOthersTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator("id", facesPackage.getOrderingOthersType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingTranslator.java deleted file mode 100644 index 2aedd0227..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/OrderingTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class OrderingTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public OrderingTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new OrderingOrderingTranslator("after", facesPackage.getOrderingType_After()), //$NON-NLS-1$ - new OrderingOrderingTranslator("before", facesPackage.getOrderingType_Before()) //$NON-NLS-1$ -// new Translator("id", facesPackage.getOrderingType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialTraversalTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialTraversalTranslator.java deleted file mode 100644 index 02a8cef07..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialTraversalTranslator.java +++ /dev/null @@ -1,40 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class PartialTraversalTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public PartialTraversalTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - return new Translator[]{}; -// FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; -// return new Translator[] { -// new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPartialTraversalType_TextContent()), -// new Translator("id", facesPackage.getPartialTraversalType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ -// }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialViewContextFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialViewContextFactoryTranslator.java deleted file mode 100644 index 0d1dc27db..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PartialViewContextFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class PartialViewContextFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public PartialViewContextFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPartialViewContextFactoryType_TextContent()), - new Translator("id", facesPackage.getPartialViewContextFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PhaseListenerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PhaseListenerTranslator.java deleted file mode 100644 index 61bf6d970..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PhaseListenerTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class PhaseListenerTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PhaseListenerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPhaseListenerType_TextContent()), - new Translator("id", facesPackage.getPhaseListenerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyClassTranslator.java deleted file mode 100644 index 460d1dd21..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the property class - * - */ -public class PropertyClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PropertyClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPropertyClassType_TextContent()), - new Translator("id", facesPackage.getPropertyClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyExtensionTranslator.java deleted file mode 100644 index 8889939d4..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * @author xnjiang, itrimble - * - */ -public class PropertyExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PropertyExtensionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyNameTranslator.java deleted file mode 100644 index d07de284d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyNameTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the property name - * - */ -public class PropertyNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PropertyNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPropertyNameType_TextContent()), - new Translator("id", facesPackage.getPropertyNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyResolverTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyResolverTranslator.java deleted file mode 100644 index 5f5482d1b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyResolverTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class PropertyResolverTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PropertyResolverTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getPropertyResolverType_TextContent()), - new Translator("id", facesPackage.getPropertyResolverType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyTranslator.java deleted file mode 100644 index e01af4d2c..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/PropertyTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class PropertyTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public PropertyTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getPropertyType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getPropertyType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getPropertyType_Icon()), //$NON-NLS-1$ - new PropertyNameTranslator("property-name", facesPackage.getPropertyType_PropertyName()), //$NON-NLS-1$ - new PropertyClassTranslator("property-class", facesPackage.getPropertyType_PropertyClass()), //$NON-NLS-1$ - new DefaultValueTranslator("default-value", facesPackage.getPropertyType_DefaultValue()), //$NON-NLS-1$ - new SuggestedValueTranslator("suggested-value", facesPackage.getPropertyType_SuggestedValue()), //$NON-NLS-1$ - new PropertyExtensionTranslator("property-extension", facesPackage.getPropertyType_PropertyExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getPropertyType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectTranslator.java deleted file mode 100644 index d86d9c90b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectTranslator.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the redirect - * - */ -public class RedirectTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RedirectTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, EMPTY_TAG|END_TAG_NO_INDENT); - } - - public boolean isSetMOFValue(EObject emfObject) { - return feature != null && emfObject.eIsSet(feature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new RedirectViewParamTranslator("view-param", facesPackage.getRedirectType_ViewParam()), //$NON-NLS-1$ - new Translator("include-view-params", facesPackage.getRedirectType_IncludeViewParams(), DOM_ATTRIBUTE), //$NON-NLS-1$ - new Translator("id", facesPackage.getRedirectType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectViewParamTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectViewParamTranslator.java deleted file mode 100644 index 3ebe6170f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RedirectViewParamTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class RedirectViewParamTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public RedirectViewParamTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new NameTranslator("name", facesPackage.getRedirectViewParamType_Name()), //$NON-NLS-1$ - new ValueTranslator("value", facesPackage.getRedirectViewParamType_Value()), //$NON-NLS-1$ - new Translator("id", facesPackage.getRedirectViewParamType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanClassTranslator.java deleted file mode 100644 index 2e265d79a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the reference bean class - * - */ -public class ReferencedBeanClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ReferencedBeanClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getReferencedBeanClassType_TextContent()), - new Translator("id", facesPackage.getReferencedBeanClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanNameTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanNameTranslator.java deleted file mode 100644 index b830b2e73..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanNameTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the referenced bean name - * - */ -public class ReferencedBeanNameTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ReferencedBeanNameTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getReferencedBeanNameType_TextContent()), - new Translator("id", facesPackage.getReferencedBeanNameType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanTranslator.java deleted file mode 100644 index 4b985c6ac..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ReferencedBeanTranslator.java +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ReferencedBeanTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ReferencedBeanTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getReferencedBeanType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getReferencedBeanType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getReferencedBeanType_Icon()), //$NON-NLS-1$ - new ReferencedBeanNameTranslator("referenced-bean-name", facesPackage.getReferencedBeanType_ReferencedBeanName()), //$NON-NLS-1$ - new ReferencedBeanClassTranslator("referenced-bean-class", facesPackage.getReferencedBeanType_ReferencedBeanClass()), //$NON-NLS-1$ - new Translator("id", facesPackage.getReferencedBeanType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitClassTranslator.java deleted file mode 100644 index a44e046f6..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the render kit class property - * - */ -public class RenderKitClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RenderKitClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getRenderKitClassType_TextContent()), - new Translator("id", facesPackage.getRenderKitClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitExtensionTranslator.java deleted file mode 100644 index 54b021e72..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitExtensionTranslator.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for the extension to renderkit property - * - */ -public class RenderKitExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param feature - */ - public RenderKitExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitFactoryTranslator.java deleted file mode 100644 index 478e8b37d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitFactoryTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class RenderKitFactoryTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RenderKitFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getRenderKitFactoryType_TextContent()), - new Translator("id", facesPackage.getRenderKitFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitIdTranslator.java deleted file mode 100644 index 80132e54d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the renderkit id - * - */ -public class RenderKitIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RenderKitIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getRenderKitIdType_TextContent()), - new Translator("id", facesPackage.getRenderKitIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitTranslator.java deleted file mode 100644 index 9c182d3ca..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RenderKitTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class RenderKitTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RenderKitTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getRenderKitType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getRenderKitType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getRenderKitType_Icon()), //$NON-NLS-1$ - new RenderKitIdTranslator("render-kit-id", facesPackage.getRenderKitType_RenderKitId()), //$NON-NLS-1$ - new RenderKitClassTranslator("render-kit-class", facesPackage.getRenderKitType_RenderKitClass()), //$NON-NLS-1$ - new RendererTranslator("renderer", facesPackage.getRenderKitType_Renderer()), //$NON-NLS-1$ - new ClientBehaviorRendererTranslator("client-behavior-renderer", facesPackage.getRenderKitType_ClientBehaviorRenderer()), //$NON-NLS-1$ - new RenderKitExtensionTranslator("render-kit-extension", facesPackage.getRenderKitType_RenderKitExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getRenderKitType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererClassTranslator.java deleted file mode 100644 index c870bb19f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for renderer class - * - */ -public class RendererClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RendererClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getRendererClassType_TextContent()), - new Translator("id", facesPackage.getRendererClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererExtensionTranslator.java deleted file mode 100644 index 24d900f8c..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * @author xnjiang, itrimble - * - */ -public class RendererExtensionTranslator extends ExtensionTypeTranslator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RendererExtensionTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTranslator.java deleted file mode 100644 index 9175d4882..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTranslator.java +++ /dev/null @@ -1,51 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class RendererTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RendererTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getRendererType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getRendererType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getRendererType_Icon()), //$NON-NLS-1$ - new ComponentFamilyTranslator("component-family", facesPackage.getRendererType_ComponentFamily()), //$NON-NLS-1$ - new RendererTypeTranslator("renderer-type", facesPackage.getRendererType_RendererType()), //$NON-NLS-1$ - new RendererClassTranslator("renderer-class", facesPackage.getRendererType_RendererClass()), //$NON-NLS-1$ - new FacetTranslator("facet", facesPackage.getRendererType_Facet()), //$NON-NLS-1$ - new AttributeTranslator("attribute", facesPackage.getRendererType_Attribute()), //$NON-NLS-1$ - new RendererExtensionTranslator("renderer-extension", facesPackage.getRendererType_RendererExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getRendererType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTypeTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTypeTranslator.java deleted file mode 100644 index c2a08804a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/RendererTypeTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the renderer type - * - */ -public class RendererTypeTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public RendererTypeTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getRendererTypeType_TextContent()), - new Translator("id", facesPackage.getRendererTypeType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceBundleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceBundleTranslator.java deleted file mode 100644 index 39b39370d..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceBundleTranslator.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for resource bundle element - * - */ -public class ResourceBundleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param feature - */ - public ResourceBundleTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } - - protected Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getResourceBundleType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getResourceBundleType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getResourceBundleType_Icon()), //$NON-NLS-1$ - new BaseNameTranslator("base-name", facesPackage.getResourceBundleType_BaseName()), //$NON-NLS-1$ - new VarTranslator("var", facesPackage.getResourceBundleType_Var()), //$NON-NLS-1$ - new Translator("id", facesPackage.getResourceBundleType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceHandlerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceHandlerTranslator.java deleted file mode 100644 index a6db8cb8b..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ResourceHandlerTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ResourceHandlerTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ResourceHandlerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getResourceHandlerType_TextContent()), - new Translator("id", facesPackage.getResourceHandlerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java deleted file mode 100644 index 79c4b6e32..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * SkipUnknownChildrenTranslator has been implemented to temporarily allow - * processing of application configuration resource files containing extension - * elements (those defined with a content type of "ANY"); it essentially skips - * all processing of child elements for which no child Translator has been - * defined. This is not intended as a long-term solution. - * - * @author Ian Trimble - Oracle - */ -public class SkipUnknownChildrenTranslator extends Translator { - - /** - * Creates an instance. - * - * @param domNameAndPath DOM name and path for which this Translator is - * to be used. - * @param aFeature EStructuralFeature instance for which this Translator is - * to be used (may be null). - */ - public SkipUnknownChildrenTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#findChild(java.lang.String, java.lang.Object, int) - */ - public Translator findChild(String tagName, Object target, int versionID) { - Translator childTranslator = super.findChild(tagName, target, versionID); - if (childTranslator == null) { - childTranslator = new SkipUnknownChildrenTranslator(tagName, (EStructuralFeature)null); - } - return childTranslator; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SmallIconTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SmallIconTranslator.java deleted file mode 100644 index f0d185978..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SmallIconTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the small icon property - * - */ -public class SmallIconTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public SmallIconTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSmallIconType_TextContent()), - new Translator("id", facesPackage.getSmallIconType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SourceClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SourceClassTranslator.java deleted file mode 100644 index 62ca65b77..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SourceClassTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class SourceClassTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public SourceClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSourceClassType_TextContent()), - new Translator("id", facesPackage.getSourceClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/StateManagerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/StateManagerTranslator.java deleted file mode 100644 index 01bd027ed..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/StateManagerTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class StateManagerTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public StateManagerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getStateManagerType_TextContent()), - new Translator("id", facesPackage.getStateManagerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SuggestedValueTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SuggestedValueTranslator.java deleted file mode 100644 index ffa16fa11..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SuggestedValueTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the suggested value property - * - */ -public class SuggestedValueTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public SuggestedValueTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSuggestedValueType_TextContent()), - new Translator("id", facesPackage.getSuggestedValueType_Id(), DOM_ATTRIBUTE)//$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SupportedLocaleTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SupportedLocaleTranslator.java deleted file mode 100644 index 5d4183cf2..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SupportedLocaleTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class SupportedLocaleTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public SupportedLocaleTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSupportedLocaleType_TextContent()), - new Translator("id", facesPackage.getSupportedLocaleType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventClassTranslator.java deleted file mode 100644 index ada418590..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventClassTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class SystemEventClassTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public SystemEventClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSystemEventClassType_TextContent()), - new Translator("id", facesPackage.getSystemEventClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerClassTranslator.java deleted file mode 100644 index 055ca649f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerClassTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class SystemEventListenerClassTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public SystemEventListenerClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getSystemEventListenerClassType_TextContent()), - new Translator("id", facesPackage.getSystemEventListenerClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerTranslator.java deleted file mode 100644 index bf25c60f1..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SystemEventListenerTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class SystemEventListenerTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public SystemEventListenerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new SystemEventListenerClassTranslator("system-event-listener-class", facesPackage.getSystemEventListenerType_SystemEventListenerClass()), //$NON-NLS-1$ - new SystemEventClassTranslator("system-event-class", facesPackage.getSystemEventListenerType_SystemEventClass()), //$NON-NLS-1$ - new SourceClassTranslator("source-class", facesPackage.getSystemEventListenerType_SourceClass()), //$NON-NLS-1$ - new Translator("id", facesPackage.getSystemEventListenerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/TagHandlerDelegateFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/TagHandlerDelegateFactoryTranslator.java deleted file mode 100644 index 1d55b437e..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/TagHandlerDelegateFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class TagHandlerDelegateFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public TagHandlerDelegateFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getTagHandlerDelegateFactoryType_TextContent()), - new Translator("id", facesPackage.getTagHandlerDelegateFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ToViewIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ToViewIdTranslator.java deleted file mode 100644 index 2eb3084cf..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ToViewIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the toviewid property - * - */ -public class ToViewIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ToViewIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getToViewIdType_TextContent()), - new Translator("id", facesPackage.getToViewIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorClassTranslator.java deleted file mode 100644 index 5c74f343f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the validator class property - * - */ -public class ValidatorClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ValidatorClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getValidatorClassType_TextContent()), - new Translator("id", facesPackage.getValidatorClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorExtensionTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorExtensionTranslator.java deleted file mode 100644 index 7e668e141..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorExtensionTranslator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * Translator for the validator extension - * - */ -public class ValidatorExtensionTranslator extends ExtensionTypeTranslator -{ - /** - * @param domNameAndPath - * @param feature - */ - public ValidatorExtensionTranslator(String domNameAndPath, - EStructuralFeature feature) { - super(domNameAndPath, feature); - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorIdTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorIdTranslator.java deleted file mode 100644 index 34a07fd7a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorIdTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the validator id - * - */ -public class ValidatorIdTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ValidatorIdTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getValidatorIdType_TextContent()), - new Translator("id", facesPackage.getValidatorIdType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorTranslator.java deleted file mode 100644 index 13ec22ea0..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValidatorTranslator.java +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - fixed getChildren() - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ValidatorTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ValidatorTranslator(String domNameAndPath,EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new DescriptionTranslator("description", facesPackage.getValidatorType_Description()), //$NON-NLS-1$ - new DisplayNameTranslator("display-name", facesPackage.getValidatorType_DisplayName()), //$NON-NLS-1$ - new IconTranslator("icon", facesPackage.getValidatorType_Icon()), //$NON-NLS-1$ - new ValidatorIdTranslator("validator-id", facesPackage.getValidatorType_ValidatorId()), //$NON-NLS-1$ - new ValidatorClassTranslator("validator-class", facesPackage.getValidatorType_ValidatorClass()), //$NON-NLS-1$ - new AttributeTranslator("attribute", facesPackage.getValidatorType_Attribute()), //$NON-NLS-1$ - new PropertyTranslator("property", facesPackage.getValidatorType_Property()), //$NON-NLS-1$ - new ValidatorExtensionTranslator("validator-extension", facesPackage.getValidatorType_ValidatorExtension()), //$NON-NLS-1$ - new Translator("id", facesPackage.getValidatorType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueClassTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueClassTranslator.java deleted file mode 100644 index 9bed4306f..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueClassTranslator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the value class - * - */ -public class ValueClassTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ValueClassTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getValueClassType_TextContent()), - new Translator("id", facesPackage.getValueClassType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } - -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueTranslator.java deleted file mode 100644 index dfca7cefc..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ValueTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added is attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang, itrimble - * - */ -public class ValueTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ValueTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getValueType_TextContent()), - new Translator("id", facesPackage.getValueType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VarTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VarTranslator.java deleted file mode 100644 index 006241582..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VarTranslator.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2007 Oracle Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * Translator for the var - * - */ -public class VarTranslator extends Translator { - /** - * @param domNameAndPath - * @param feature - */ - public VarTranslator(String domNameAndPath, EStructuralFeature feature) { - super(domNameAndPath, feature, END_TAG_NO_INDENT); - } - - public Translator[] getChildren() - { - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getVarType_TextContent()), - new Translator("id", facesPackage.getVarType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VariableResolverTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VariableResolverTranslator.java deleted file mode 100644 index 96c1eef0e..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VariableResolverTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class VariableResolverTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public VariableResolverTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getVariableResolverType_TextContent()), - new Translator("id", facesPackage.getVariableResolverType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewDeclarationLanguageFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewDeclarationLanguageFactoryTranslator.java deleted file mode 100644 index c6558dcb4..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewDeclarationLanguageFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class ViewDeclarationLanguageFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public ViewDeclarationLanguageFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getViewDeclarationLanguageFactoryType_TextContent()), - new Translator("id", facesPackage.getViewDeclarationLanguageFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewHandlerTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewHandlerTranslator.java deleted file mode 100644 index 655c54810..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/ViewHandlerTranslator.java +++ /dev/null @@ -1,43 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Oracle Corporation - added id attribute - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xjiang, itrimble - * - */ -public class ViewHandlerTranslator extends Translator { - - /** - * @param domNameAndPath - * @param aFeature - */ - public ViewHandlerTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getViewHandlerType_TextContent()), - new Translator("id", facesPackage.getViewHandlerType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VisitContextFactoryTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VisitContextFactoryTranslator.java deleted file mode 100644 index e3fb8ce9a..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/VisitContextFactoryTranslator.java +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************************************** - * Copyright (c) 2005, 2006 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - **************************************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author xnjiang - * - */ -public class VisitContextFactoryTranslator extends Translator { - /** - * @param domNameAndPath - * @param aFeature - */ - public VisitContextFactoryTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, END_TAG_NO_INDENT); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#getChildren() - */ - public Translator[] getChildren() { - - FacesConfigPackage facesPackage = FacesConfigPackage.eINSTANCE; - return new Translator[] { - new Translator(TEXT_ATTRIBUTE_VALUE, facesPackage.getVisitContextFactoryType_TextContent()), - new Translator("id", facesPackage.getVisitContextFactoryType_Id(), DOM_ATTRIBUTE) //$NON-NLS-1$ - }; - } -} |