JBoss Tools SVN: r14497 - in trunk: hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions and 30 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-04-03 10:43:18 -0400 (Fri, 03 Apr 2009)
New Revision: 14497
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterDefinition.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConsoleConfigurationPropertySource.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/PersistentClassFigure.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/TableFigure.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/DisplayStringProposalComparator.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCodeScanner.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConnectionProfileRenameChange.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/SaveQueryEditorListener.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/Utils.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/CFGXMLStructuredTextViewerConfiguration.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/JPAPostInstallFasetListener.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnitProperties.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/PersistenceUnitPropertyListListener.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/HibernateJptUIPlugin.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/platform/HibernatePlatformUI.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateEntitiesWizard.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/Messages.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenMappingAction.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeTreeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeTreeEditPart.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestProject.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/ProjectUtil.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest2.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/QuestionDialog.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/DeployAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/ExplodeAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/GenerateEntitiesAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewActionAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewConversationAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewEntityAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewFormAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewProjectAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/RestartAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupDeluxeAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UndeployAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UnexplodeAction.java
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UpdateProjectAction.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/WorkbenchUtils.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/xpl/EditorTestHelper.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugInLoadTest.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PreferencePageTest.java
Log:
JBIDE-4044
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/EclipseLaunchConsoleConfigurationPreferences.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -196,7 +196,7 @@
if (dialect == null && getConnectionProfileName() != null && getConnectionProfileName() != null) {
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(getConnectionProfileName());
if (profile == null) return null;
- String driver = profile.getProperties(profile.getProviderId()).getProperty("org.eclipse.datatools.connectivity.db.driverClass");
+ String driver = profile.getProperties(profile.getProviderId()).getProperty("org.eclipse.datatools.connectivity.db.driverClass"); //$NON-NLS-1$
dialect = new DriverClassHelpers().getDialect(driver);
}
return dialect;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -6,14 +6,6 @@
public static final String BUNDLE_NAME = "org.hibernate.eclipse.console.HibernateConsoleMessages"; //$NON-NLS-1$
//
- public static String popup_copy_text;
- public static String popup_paste_text;
- public static String popup_select_all;
- public static String find_replace_action_label;
- public static String find_replace_action_tooltip;
- public static String find_replace_action_image;
- public static String find_replace_action_description;
- //
public static String AbstractQueryEditor_could_not_show_query_editor_input;
public static String AbstractQueryEditor_do_you_want_open_session_factory;
public static String AbstractQueryEditor_max_results;
@@ -163,65 +155,17 @@
public static String QueryPagePropertySource_sec;
public static String QueryPagePropertySource_unknown;
//
- public static String ConsoleConfigurationCreationWizard_configuring_hibernate_console;
- public static String ConsoleConfigurationCreationWizard_enable_hibernate_features;
- public static String ConsoleConfigurationCreationWizard_error_finishing;
- public static String ConsoleConfigurationCreationWizard_missing_classes;
- public static String ConsoleConfigurationCreationWizard_the_project;
- public static String ConsoleConfigurationCreationWizard_the_project_named;
- public static String ConsoleConfigurationCreationWizard_the_project_named_have;
- public static String ConsoleConfigurationWizardPage_27;
- public static String ConsoleConfigurationWizardPage_28;
- public static String ConsoleConfigurationWizardPage_35;
- public static String ConsoleConfigurationWizardPage_add_classpath_entry;
- public static String ConsoleConfigurationWizardPage_add_directory_zip_jar;
- public static String ConsoleConfigurationWizardPage_add_external_jars;
- public static String ConsoleConfigurationWizardPage_add_hbmxml_file;
- public static String ConsoleConfigurationWizardPage_add_hibernate_mapping_file;
- public static String ConsoleConfigurationWizardPage_add_jar_dir;
- public static String ConsoleConfigurationWizardPage_additional_classpath;
- public static String ConsoleConfigurationWizardPage_additional_mapping_files;
- public static String ConsoleConfigurationWizardPage_annotations;
- public static String ConsoleConfigurationWizardPage_browse;
- public static String ConsoleConfigurationWizardPage_choose_file_to_use;
- public static String ConsoleConfigurationWizardPage_choose_file_to_use_hibcfgxml_file;
- public static String ConsoleConfigurationWizardPage_classpath;
- public static String ConsoleConfigurationWizardPage_config_file;
public static String ConsoleConfigurationWizardPage_config_name_already_exist;
public static String ConsoleConfigurationWizardPage_config_page;
- public static String ConsoleConfigurationWizardPage_configuration_file;
- public static String ConsoleConfigurationWizardPage_core;
public static String ConsoleConfigurationWizardPage_create_hibernate_console_config;
- public static String ConsoleConfigurationWizardPage_does_not_exist;
- public static String ConsoleConfigurationWizardPage_entity_resolver;
- public static String ConsoleConfigurationWizardPage_general;
- public static String ConsoleConfigurationWizardPage_include_default_classpath;
- public static String ConsoleConfigurationWizardPage_is_not_a_file;
- public static String ConsoleConfigurationWizardPage_jpa;
- public static String ConsoleConfigurationWizardPage_mappings;
public static String ConsoleConfigurationWizardPage_name;
public static String ConsoleConfigurationWizardPage_name_must_specified;
public static String ConsoleConfigurationWizardPage_bad_name;
public static String ConsoleConfigurationWizardPage_bad_char;
- public static String ConsoleConfigurationWizardPage_naming_strategy;
- public static String ConsoleConfigurationWizardPage_need_to_specify_classpath;
- public static String ConsoleConfigurationWizardPage_both_hibernate_properties_and_hibernate_cfg_xml;
- public static String ConsoleConfigurationWizardPage_need_to_specify_project;
- public static String ConsoleConfigurationWizardPage_persistence_unit;
public static String ConsoleConfigurationWizardPage_problem_while_initializing_cc;
- public static String ConsoleConfigurationWizardPage_problem_while_locating_jdbc_drivers;
- public static String ConsoleConfigurationWizardPage_project;
- public static String ConsoleConfigurationWizardPage_property_file_1;
- public static String ConsoleConfigurationWizardPage_property_file_2;
- public static String ConsoleConfigurationWizardPage_select_entity_resolver_class;
- public static String ConsoleConfigurationWizardPage_select_hibcfgxml_file;
- public static String ConsoleConfigurationWizardPage_select_java_project;
- public static String ConsoleConfigurationWizardPage_select_java_project_to_classpath;
- public static String ConsoleConfigurationWizardPage_select_naming_strategy_class;
- public static String ConsoleConfigurationWizardPage_select_property_file;
- public static String ConsoleConfigurationWizardPage_the_java_project_does_not_exist;
public static String ConsoleConfigurationWizardPage_this_wizard_allows;
- public static String ConsoleConfigurationWizardPage_type;
+ public static String ConsoleConfigurationWizardPage_warnings;
+ public static String ConsoleConfigurationWizardPage_errors;
public static String NewConfigurationWizard_create_hibernate_cfg_file;
public static String NewConfigurationWizard_create_new_hibernate_cfg_xml;
public static String NewConfigurationWizard_creating;
@@ -535,6 +479,7 @@
public static String ConnectionProfileCtrl_Edit;
public static String ConnectionProfileCtrl_HibernateConfiguredConnection;
+ public static String ConnectionProfileCtrl_JPAConfiguredConnection;
public static String ConnectionProfileCtrl_New;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2009-04-03 14:43:18 UTC (rev 14497)
@@ -1,10 +1,3 @@
-popup_copy_text=Copy
-popup_paste_text=Paste
-popup_select_all=Select All
-find_replace_action_label=Find/Replace
-find_replace_action_tooltip=Find/Replace
-find_replace_action_image=
-find_replace_action_description=Find & Replace
AbstractQueryEditor_could_not_show_query_editor_input=Could not show query editor input
AbstractQueryEditor_do_you_want_open_session_factory=Do you want to open the session factory for {0} ?
AbstractQueryEditor_max_results=Max results:
@@ -154,65 +147,17 @@
QueryPagePropertySource_sec=\ sec
QueryPagePropertySource_unknown=(unknown)
-ConsoleConfigurationCreationWizard_configuring_hibernate_console=Configuring Hibernate Console
-ConsoleConfigurationCreationWizard_enable_hibernate_features=Enable Hibernate features for project
-ConsoleConfigurationCreationWizard_error_finishing=Error while finishing Wizard
-ConsoleConfigurationCreationWizard_missing_classes=Probably missing classes or errors with classloading
-ConsoleConfigurationCreationWizard_the_project=The project named ''{0}'' does not have Hibernate features enabled. Should it be updated to use {1} ?
-ConsoleConfigurationCreationWizard_the_project_named=The project named ''{0}'' does not have a default Hibernate configuration specified. Should it be updated to use {1} ?
-ConsoleConfigurationCreationWizard_the_project_named_have=The project named ''{0}'' have the ''{1}'' specified. Should it be updated to use {2} ?
-ConsoleConfigurationWizardPage_27=.jar
-ConsoleConfigurationWizardPage_28=.zip
-ConsoleConfigurationWizardPage_35=hbm.xml
-ConsoleConfigurationWizardPage_add_classpath_entry=Add classpath entry
-ConsoleConfigurationWizardPage_add_directory_zip_jar=Add a directory, .zip or .jar file
-ConsoleConfigurationWizardPage_add_external_jars=Add External JARS...
-ConsoleConfigurationWizardPage_add_hbmxml_file=Add hbm.xml file
-ConsoleConfigurationWizardPage_add_hibernate_mapping_file=Add a Hibernate Mapping file
-ConsoleConfigurationWizardPage_add_jar_dir=Add JAR/Dir...
-ConsoleConfigurationWizardPage_additional_classpath=Additional classpath (Hibernate jars not necessary\!)
-ConsoleConfigurationWizardPage_additional_mapping_files=Additional mapping files (not listed in cfg.xml)
-ConsoleConfigurationWizardPage_annotations=Annotations (jdk 1.5+)
-ConsoleConfigurationWizardPage_browse=Browse...
-ConsoleConfigurationWizardPage_choose_file_to_use=Choose file to use as hibernate.properties
-ConsoleConfigurationWizardPage_choose_file_to_use_hibcfgxml_file=Choose file to use as hibernate.cfg.xml
-ConsoleConfigurationWizardPage_classpath=Classpath
-ConsoleConfigurationWizardPage_config_file=&Configuration file:
ConsoleConfigurationWizardPage_config_name_already_exist=A configuration with this name already exists\!
ConsoleConfigurationWizardPage_config_page=configurationPage
-ConsoleConfigurationWizardPage_configuration_file=Configuration file
-ConsoleConfigurationWizardPage_core=Core
ConsoleConfigurationWizardPage_create_hibernate_console_config=Create Hibernate Console Configuration
-ConsoleConfigurationWizardPage_does_not_exist=\ does not exist
-ConsoleConfigurationWizardPage_entity_resolver=&Entity resolver:
-ConsoleConfigurationWizardPage_general=General
-ConsoleConfigurationWizardPage_include_default_classpath=Include default classpath from project
-ConsoleConfigurationWizardPage_is_not_a_file=\ is not a file
-ConsoleConfigurationWizardPage_jpa=JPA (jdk 1.5+)
-ConsoleConfigurationWizardPage_mappings=Mappings
ConsoleConfigurationWizardPage_name=&Name:
ConsoleConfigurationWizardPage_name_must_specified=A configuration name must be specified
ConsoleConfigurationWizardPage_bad_name={0} is an invalid configuration name.
ConsoleConfigurationWizardPage_bad_char=''{0}'' is an invalid character in a configuration name.
-ConsoleConfigurationWizardPage_naming_strategy=&Naming strategy:
-ConsoleConfigurationWizardPage_need_to_specify_classpath=Need to specify a classpath when not using a project classpath
-ConsoleConfigurationWizardPage_both_hibernate_properties_and_hibernate_cfg_xml=If you have both 'Property file' and 'Configuration file', the settings of 'Configuration file' will override the settings used in 'Property file'.
-ConsoleConfigurationWizardPage_need_to_specify_project=Need to specify a project or setup a classpath
-ConsoleConfigurationWizardPage_persistence_unit=&Persistence unit:
ConsoleConfigurationWizardPage_problem_while_initializing_cc=Problem while initializing ConsoleConfigurationWizardPage
-ConsoleConfigurationWizardPage_problem_while_locating_jdbc_drivers=Problem while locating jdbc drivers
-ConsoleConfigurationWizardPage_project=Pro&ject:
-ConsoleConfigurationWizardPage_property_file_1=Property file
-ConsoleConfigurationWizardPage_property_file_2=&Property file:
-ConsoleConfigurationWizardPage_select_entity_resolver_class=Select entity resolver class
-ConsoleConfigurationWizardPage_select_hibcfgxml_file=Select hibernate.cfg.xml file
-ConsoleConfigurationWizardPage_select_java_project=Select java project
-ConsoleConfigurationWizardPage_select_java_project_to_classpath=The (optional) java project is used to determine the default classpath
-ConsoleConfigurationWizardPage_select_naming_strategy_class=Select naming strategy class
-ConsoleConfigurationWizardPage_select_property_file=Select property file
-ConsoleConfigurationWizardPage_the_java_project_does_not_exist=The Java project {0} does not exist.
ConsoleConfigurationWizardPage_this_wizard_allows=This wizard allows you to create a configuration for Hibernate Console.
-ConsoleConfigurationWizardPage_type=Type:
+ConsoleConfigurationWizardPage_warnings={0} warns: {1}
+ConsoleConfigurationWizardPage_errors={0} errors: {1}
NewConfigurationWizard_create_hibernate_cfg_file=Create Hibernate Configuration file (cfg.xml)
NewConfigurationWizard_create_new_hibernate_cfg_xml=Create a new hibernate.cfg.xml.
NewConfigurationWizard_creating=Creating
@@ -527,6 +472,7 @@
ConnectionProfileCtrl_Edit=Edit...
ConnectionProfileCtrl_HibernateConfiguredConnection=[Hibernate configured connection]
+ConnectionProfileCtrl_JPAConfiguredConnection=[JPA Project Configured Connection]
ConnectionProfileCtrl_New=New...
ConnectionProfileRenameChange_update_connection_profile_name=Update connection profile name in launch configuration
ConnectionProfileRenameParticipant_launch_configurations_updates=Launch Configurations updates
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsolePlugin.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -540,7 +540,7 @@
if (exception instanceof CoreException) {
status = ((CoreException)exception).getStatus();
} else if (exception != null) {
- status = new MultiStatus(ID, IStatus.ERROR, new IStatus[] { throwableToStatus(exception.getCause())}, exception.toString(), exception); //$NON-NLS-1$
+ status = new MultiStatus(ID, IStatus.ERROR, new IStatus[] { throwableToStatus(exception.getCause())}, exception.toString(), exception);
}
// Check for multi-status with only one child
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -406,8 +406,8 @@
}
} else{
String toolTag = tool.getTag(property);
- if ("component".equals(toolTag) && "embedded".equals(property.getPropertyAccessorName())){
- toolTag = "properties";
+ if ("component".equals(toolTag) && "embedded".equals(property.getPropertyAccessorName())){ //$NON-NLS-1$//$NON-NLS-2$
+ toolTag = "properties"; //$NON-NLS-1$
}
pattern.append(toolTag);
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterDefinition.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterDefinition.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterDefinition.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -111,7 +111,7 @@
propertyElements[i].getAttribute("description"), //$NON-NLS-1$
propertyElements[i].getAttribute("value"), //$NON-NLS-1$
Boolean.valueOf(propertyElements[i].getAttribute("required")).booleanValue()); //$NON-NLS-1$
- String type = propertyElements[i].getAttribute("type");
+ String type = propertyElements[i].getAttribute("type"); //$NON-NLS-1$
if (type != null){
property.setType(type);
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/model/impl/ExporterFactory.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -205,7 +205,7 @@
List templatePathList = new ArrayList();
if(props.containsKey("template_path")) { //$NON-NLS-1$
String resolveTemplatePath = resolve(props.getProperty("template_path")); //$NON-NLS-1$
- StringTokenizer st = new StringTokenizer(resolveTemplatePath, ";");
+ StringTokenizer st = new StringTokenizer(resolveTemplatePath, ";"); //$NON-NLS-1$
String out = new String();
while (st.hasMoreTokens()) {
String locationAsStringPath = PathHelper.getLocationAsStringPath(st.nextToken());
@@ -216,7 +216,7 @@
templatePathList.add(locationAsStringPath);
}
}
- if (out.length() > 0 ){//$NON-NLS-1$
+ if (out.length() > 0 ){
out = out.substring(0, out.length() - 1);
throw new HibernateConsoleRuntimeException(out);
}
@@ -224,8 +224,8 @@
}
if (StringHelper.isNotEmpty(customTemplatePath)){
String resolvedCustomTemplatePath = resolve(customTemplatePath);
- StringTokenizer st = new StringTokenizer(resolvedCustomTemplatePath, ";");
- String out = "";
+ StringTokenizer st = new StringTokenizer(resolvedCustomTemplatePath, ";"); //$NON-NLS-1$
+ String out = ""; //$NON-NLS-1$
while (st.hasMoreTokens()) {
String locationAsStringPath = PathHelper.getLocationAsStringPath(st.nextToken());
if(locationAsStringPath != null) {
@@ -235,7 +235,7 @@
resolvedCustomTemplatePath, getExporterDefinition().getDescription());
}
}
- if (out != ""){
+ if (!("".equals(out))){ //$NON-NLS-1$
out = out.substring(0, out.length() - 1);
throw new HibernateConsoleRuntimeException(out);
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -129,7 +129,7 @@
IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();
try {
IWebBrowser browser = support.getExternalBrowser();
- browser.openURL(new URL(urlEncode(href.toCharArray()))); //$NON-NLS-1$
+ browser.openURL(new URL(urlEncode(href.toCharArray())));
}
catch (MalformedURLException e) {
openWebBrowserError(href, e);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConsoleConfigurationPropertySource.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConsoleConfigurationPropertySource.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConsoleConfigurationPropertySource.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -76,7 +76,7 @@
return preferences.getPropertyFile();
}
if("mapping.files".equals(id)) { //$NON-NLS-1$
- return new Integer(preferences.getMappingFiles().length);
+ return Integer.valueOf(preferences.getMappingFiles().length);
}
return null;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/wizards/ConsoleConfigurationWizardPage.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -146,7 +146,7 @@
container.setLayoutData(gd);
nameLabel = new Label(container, SWT.HORIZONTAL | SWT.LEFT);
- nameLabel.setText("Name");
+ nameLabel.setText(HibernateConsoleMessages.ConsoleConfigurationWizardPage_name);
nameLabel.setLayoutData(new GridData(
GridData.HORIZONTAL_ALIGN_BEGINNING));
@@ -279,14 +279,14 @@
if (messageWarning == null) {
messageWarning = tabs[i].getMessage();
if(messageWarning!=null) {
- System.out.println(tabs[i].getName() + " warns: " + messageWarning);
+ System.out.println(NLS.bind(HibernateConsoleMessages.ConsoleConfigurationWizardPage_warnings, tabs[i].getName(), messageWarning));
}
}
} else {
if (messageError == null) {
messageError = tabs[i].getErrorMessage();
if(messageError!=null) {
- System.out.println(tabs[i].getName() + " errors: " + messageError);
+ System.out.println(NLS.bind(HibernateConsoleMessages.ConsoleConfigurationWizardPage_errors, tabs[i].getName(), messageError));
}
}
}
@@ -485,7 +485,7 @@
currentLaunchConfig.setAttribute(attr, nonEmptyTrimOrNull(str));
}
else {
- currentLaunchConfig.setAttribute(attr, str);
+ currentLaunchConfig.setAttribute(attr, (String)null);
}
}
// END
@@ -580,7 +580,7 @@
launchConfig.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, (List<String>)null);
}
} else if (obj instanceof EclipseConsoleConfiguration) {
- throw new IllegalStateException("This should never happen!");
+ throw new IllegalStateException("This should never happen!"); //$NON-NLS-1$
}
}
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/PersistentClassFigure.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/PersistentClassFigure.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/PersistentClassFigure.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -35,7 +35,7 @@
//public static Color classColor = new Color(null, 188, 174, 121); // hibernate brown
//public static Color classColor = new Color(null, 179, 202, 227); // opera tab blue
- public static Color classColor = new Color(null, 212, 229, 254); // skype says
+ public static final Color classColor = new Color(null, 212, 229, 254); // skype says
static Font classHeaderFont = new Font(null, "Arial", 12, SWT.BOLD); //$NON-NLS-1$
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/TableFigure.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/TableFigure.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/graph/figures/TableFigure.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -32,7 +32,7 @@
public class TableFigure extends Figure {
- public static Color tableColor = new Color(null, 0xff, 0xff, 0xaa);
+ public static final Color tableColor = new Color(null, 0xff, 0xff, 0xaa);
static Font tableHeaderFont = new Font(null, "Arial", 12, SWT.BOLD); //$NON-NLS-1$
private Label label;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/DisplayStringProposalComparator.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/DisplayStringProposalComparator.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/DisplayStringProposalComparator.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -31,7 +31,7 @@
*/
public class DisplayStringProposalComparator implements Comparator {
- static public Comparator INSTANCE = new DisplayStringProposalComparator();
+ static final public Comparator INSTANCE = new DisplayStringProposalComparator();
public int compare( Object o1, Object o2 ) {
ICompletionProposal c1 = (ICompletionProposal) o1;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCodeScanner.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCodeScanner.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLCodeScanner.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -238,7 +238,7 @@
List rules = new ArrayList();
rules.add( new EndOfLineRule( "--", commentToken )); //$NON-NLS-1$
- rules.add( new SingleLineRule( "'", "'", stringToken, '\\' )); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ rules.add( new SingleLineRule( "'", "'", stringToken, '\\' )); //$NON-NLS-1$ //$NON-NLS-2$
rules.add( new WhitespaceRule( new HQLWhiteSpaceDetector() ));
//rules.add( new HQLLexerRule( hqlToken )); // TODO: need to categorize tokens into types.
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConnectionProfileCtrl.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -49,7 +49,7 @@
/**
*
*
- * @author Vitali
+ * @author Vitali Yemialyanchyk
*/
public class ConnectionProfileCtrl {
@@ -57,8 +57,8 @@
protected Button buttonNew;
protected Button buttonEdit;
- static final String NO_CONNECTIN_NAME = "[Hibernate configured connection]";
- static final String JPA_CONNECTIN_NAME = "[JPA Project Configured Connection]";
+ static final String NO_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_HibernateConfiguredConnection;
+ static final String JPA_CONNECTIN_NAME = HibernateConsoleMessages.ConnectionProfileCtrl_JPAConfiguredConnection;
static final protected ConnectionWrapper NO_CONNECTION_PLACEHOLDER = new ConnectionWrapper(NO_CONNECTIN_NAME, null);
static final protected ConnectionWrapper JPA_CONNECTION_PLACEHOLDER = new ConnectionWrapper(JPA_CONNECTIN_NAME, null);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationMainTab.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -199,7 +199,7 @@
if (Boolean.parseBoolean(configuration.getAttribute(IConsoleConfigurationLaunchConstants.USE_JPA_PROJECT_PROFILE, Boolean.toString(false)))){
connectionProfileCtrl.selectValue(ConnectionProfileCtrl.JPA_CONNECTIN_NAME);
} else
- connectionProfileCtrl.selectValue(configuration.getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, ConnectionProfileCtrl.NO_CONNECTIN_NAME)); //$NON-NLS-1$
+ connectionProfileCtrl.selectValue(configuration.getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, ConnectionProfileCtrl.NO_CONNECTIN_NAME));
}
catch (CoreException e) {
HibernateConsolePlugin.getDefault().log( e );
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConnectionProfileRenameChange.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConnectionProfileRenameChange.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/ConnectionProfileRenameChange.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -90,7 +90,7 @@
}
final ILaunchConfigurationWorkingCopy wc = fLaunchConfiguration.getWorkingCopy();
- String oldName = wc.getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, "");
+ String oldName = wc.getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, ""); //$NON-NLS-1$
wc.setAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, fRenameArguments.getNewName());
ILaunchConfiguration newConfig = wc.isDirty() ? wc.doSave() : fLaunchConfiguration;
RenameArguments args = new RenameArguments(oldName, true);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/core/refactoring/HibernateRefactoringUtil.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -357,7 +357,7 @@
List<ILaunchConfiguration> list = new ArrayList<ILaunchConfiguration>();
for(int i = 0; i < configs.length && configs[i].exists(); i++) {//refactor only hibernate launch configurations
if (!ICodeGenerationLaunchConstants.CONSOLE_CONFIGURATION_LAUNCH_TYPE_ID.equals(configs[i].getType().getIdentifier())) continue;
- if (profile.getName().equals(configs[i].getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, "")))
+ if (profile.getName().equals(configs[i].getAttribute(IConsoleConfigurationLaunchConstants.CONNECTION_PROFILE_NAME, ""))) //$NON-NLS-1$
list.add(configs[i]);
}
configs = list.toArray(new ILaunchConfiguration[list.size()]);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -17,7 +17,6 @@
public static String HQLQuickAssistProcessor_copy_to_hql_editor;
public static String JPAMapToolActionPulldownDelegate_menu;
public static String SaveQueryEditorListener_replacequestion;
- public static String SaveQueryEditorListener_replacetitle;
public static String SaveQueryEditorListener_hql_editor;
public static String SaveQueryEditorListener_cri_editor;
public static String SaveQueryEditorListener_change_name;
@@ -25,7 +24,6 @@
public static String SaveQueryEditorListener_refactoringtitle;
public static String SaveQueryEditorListener_replacetitle_info;
public static String SaveQueryEditorListener_replacequestion_confirm;
- public static String SaveQueryEditorListener_errormessage;
public static String JPAMapToolActor_message_title;
public static String JPAMapToolActor_message;
public static String ResolveAmbiguous_column_Class;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.properties 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/JdtUiMessages.properties 2009-04-03 14:43:18 UTC (rev 14497)
@@ -21,7 +21,6 @@
HQLQuickAssistProcessor_copy_to_hql_editor=Copy to HQL Editor
JPAMapToolActionPulldownDelegate_menu=JPA annotations
SaveQueryEditorListener_replacequestion= Do you want to save this {0} query into ''{1}''?
-SaveQueryEditorListener_replacetitle= Query replace
SaveQueryEditorListener_hql_editor=HQL
SaveQueryEditorListener_cri_editor=Criteria
SaveQueryEditorListener_change_name=Update {0} query in ''{1}''
@@ -29,7 +28,6 @@
SaveQueryEditorListener_refactoringtitle= Update {0} query in file
SaveQueryEditorListener_replacetitle_info= Query replace
SaveQueryEditorListener_replacequestion_confirm= ''{0}'' was changed. It is not possible to update the query.
-SaveQueryEditorListener_errormessage=Error while query refactoring
JPAMapToolActor_message_title=Hibernate/JPA
JPAMapToolActor_message=Cannot generate annotations for an interface or enumeration
ResolveAmbiguous_column_Class=Class
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/SaveQueryEditorListener.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/SaveQueryEditorListener.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/SaveQueryEditorListener.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -12,7 +12,6 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Status;
-import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.refactoring.RefactoringSaveHelper;
import org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter;
import org.eclipse.jface.dialogs.MessageDialog;
@@ -193,7 +192,7 @@
wizard.setDefaultPageTitle(wizard_title);
IWorkbenchWindow win = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if ( new RefactoringStarter().activate(wizard, win.getShell(), wizard_title, RefactoringSaveHelper.SAVE_ALL)){ //$NON-NLS-1$
+ if ( new RefactoringStarter().activate(wizard, win.getShell(), wizard_title, RefactoringSaveHelper.SAVE_ALL)){
query = newQuery;
position.y = query.length();
fromEditorPart.doSave(null);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/Utils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/Utils.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/Utils.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -185,10 +185,11 @@
public static String getFieldNameByGetter(MethodDeclaration node){
if (node.parameters().size() != 0) return null;
String methodName = node.getName().getIdentifier();
- if (methodName.startsWith("get") && methodName.length() > 3){
+ if (methodName.startsWith("get") && methodName.length() > 3){ //$NON-NLS-1$
methodName = methodName.substring(3);
return Character.toLowerCase(methodName.charAt(0)) + methodName.substring(1);
- } else if (methodName.startsWith("is") && methodName.length() > 2){
+ }
+ else if (methodName.startsWith("is") && methodName.length() > 2){ //$NON-NLS-1$
methodName = methodName.substring(2);
return Character.toLowerCase(methodName.charAt(0)) + methodName.substring(1);
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/CFGXMLStructuredTextViewerConfiguration.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/CFGXMLStructuredTextViewerConfiguration.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/CFGXMLStructuredTextViewerConfiguration.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -75,7 +75,7 @@
}
}
catch (Exception ex) {
- MapperPlugin.getDefault().logException(ex); //$NON-NLS-1$
+ MapperPlugin.getDefault().logException(ex);
}
return javaProject;
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -515,7 +515,7 @@
alreadyFound.add(fullName);
}
if (beginsWith(fullName,matchString) || beginsWith(shortName,matchString) ) {
- CustomCompletionProposal proposal = new CustomCompletionProposal(fullName, //$NON-NLS-2$//$NON-NLS-1$
+ CustomCompletionProposal proposal = new CustomCompletionProposal(fullName,
offset, matchString.length(), fullName.length() + 1, null/*XMLEditorPluginImageHelper.getInstance().getImage(XMLEditorPluginImages.IMG_OBJ_ATTRIBUTE)*/,
fullName, null, null, XMLRelevanceConstants.R_XML_ATTRIBUTE_VALUE);
proposals.add(proposal);
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/JPAPostInstallFasetListener.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/JPAPostInstallFasetListener.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/JPAPostInstallFasetListener.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -62,13 +62,13 @@
for (int i = 0; i < lm.getLaunchConfigurations(lct).length; i++){
ILaunchConfiguration lc = lm.getLaunchConfigurations(lct)[i];
if (project.getName().equals(
- lc.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""))){//lc uses this project
+ lc.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, ""))){//lc uses this project //$NON-NLS-1$
if (project.getName().equals(lc.getName())) return lc;
configs.add(lc);
}
}
//select best launch configuration "projectName (1)"
- Pattern p = Pattern.compile(project.getName() + " \\(\\d+\\)");
+ Pattern p = Pattern.compile(project.getName() + " \\(\\d+\\)"); //$NON-NLS-1$
for (int i = 0; i < configs.size(); i++) {
ILaunchConfiguration lc = configs.get(i);
if (p.matcher(lc.getName()).matches()) return lc;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnit.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -83,9 +83,9 @@
}
public void addToMessages(List<IMessage> messages) {
- invokeMethod(this, "addMappingFileMessages", "validateMappingFiles",
+ invokeMethod(this, "addMappingFileMessages", "validateMappingFiles", //$NON-NLS-1$ //$NON-NLS-2$
new Class[]{List.class}, messages);
- invokeMethod(this, "addClassMessages", "validateClassRefs", new Class[]{List.class}, messages);
+ invokeMethod(this, "addClassMessages", "validateClassRefs", new Class[]{List.class}, messages); //$NON-NLS-1$//$NON-NLS-2$
addFileNotExistsMessages(messages);
}
@@ -183,19 +183,19 @@
JavaPersistentType type = classRef.getJavaPersistentType();
JavaResourcePersistentMember jrpt = null;
GenericGeneratorAnnotation annotation = null;
- jrpt = (JavaResourcePersistentMember) invokeMethod(project, "getJavaPersistentTypeResource",
- "getJavaResourcePersistentType", new Class[]{String.class}, annotClass);
+ jrpt = (JavaResourcePersistentMember) invokeMethod(project, "getJavaPersistentTypeResource", //$NON-NLS-1$
+ "getJavaResourcePersistentType", new Class[]{String.class}, annotClass); //$NON-NLS-1$
if (jrpt != null){
- annotation = (GenericGeneratorAnnotation)invokeMethod(jrpt, "getAnnotation",
- "getSupportingAnnotation", new Class[]{String.class}, GENERIC_GENERATOR);
+ annotation = (GenericGeneratorAnnotation)invokeMethod(jrpt, "getAnnotation", //$NON-NLS-1$
+ "getSupportingAnnotation", new Class[]{String.class}, GENERIC_GENERATOR); //$NON-NLS-1$
if (annotation != null) {
addGenerator(annotation.buildJavaGenericGenerator(type));
}
ListIterator<JavaPersistentAttribute> typeAttrs = type.attributes();
for (JavaPersistentAttribute persAttr : CollectionTools.iterable(typeAttrs)) {
JavaResourcePersistentAttribute jrpa = persAttr.getResourcePersistentAttribute();
- annotation = (GenericGeneratorAnnotation)invokeMethod(jrpa, "getAnnotation",
- "getSupportingAnnotation", new Class[]{String.class}, GENERIC_GENERATOR);
+ annotation = (GenericGeneratorAnnotation)invokeMethod(jrpa, "getAnnotation", //$NON-NLS-1$
+ "getSupportingAnnotation", new Class[]{String.class}, GENERIC_GENERATOR); //$NON-NLS-1$
if (annotation != null) {
addGenerator(annotation.buildJavaGenericGenerator(persAttr.getSpecifiedMapping()));
@@ -230,11 +230,11 @@
} else {
StringBuilder params = new StringBuilder();
for (int i = 0; i < argsTypes.length; i++) {
- params.append(argsTypes[i].getName() + ", ");
+ params.append(argsTypes[i].getName() + ", "); //$NON-NLS-1$
}
if (params.length() > 0) params.deleteCharAt(params.length() - 2);
- HibernateJptPlugin.logError("Nor \"" + dali20Name + "\" nor \"" + dali21Name
- + "\" methods were found with parameter types: (" + params + ")");
+ HibernateJptPlugin.logError("Nor \"" + dali20Name + "\" nor \"" + dali21Name //$NON-NLS-1$//$NON-NLS-2$
+ + "\" methods were found with parameter types: (" + params + ")"); //$NON-NLS-1$//$NON-NLS-2$
}
return null;
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnitProperties.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnitProperties.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/HibernatePersistenceUnitProperties.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -91,7 +91,7 @@
*/
public boolean itemIsProperty(Property item) {
if (item == null) {
- throw new IllegalArgumentException("Property is null");
+ throw new IllegalArgumentException("Property is null"); //$NON-NLS-1$
}
return this.propertyNames().keySet().contains(item.getName());
}
@@ -103,7 +103,7 @@
public String propertyIdFor(Property property) {
String propertyId = this.propertyNames().get(property.getName());
if (propertyId == null) {
- throw new IllegalArgumentException("Illegal property: " + property.toString());
+ throw new IllegalArgumentException("Illegal property: " + property.toString()); //$NON-NLS-1$
}
return propertyId;
}
@@ -114,7 +114,7 @@
return hibernateKey;
}
}
- throw new IllegalArgumentException("Illegal property: " + propertyId);
+ throw new IllegalArgumentException("Illegal property: " + propertyId); //$NON-NLS-1$
}
// ****** get/set String convenience methods *******
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/PersistenceUnitPropertyListListener.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/PersistenceUnitPropertyListListener.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/PersistenceUnitPropertyListListener.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -84,15 +84,15 @@
}
public void itemsMoved(ListChangeEvent e) {
- throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName());
+ throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName()); //$NON-NLS-1$//$NON-NLS-2$
}
public void listCleared(ListChangeEvent e) {
- throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName());
+ throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName()); //$NON-NLS-1$//$NON-NLS-2$
}
public void listChanged(ListChangeEvent e) {
- throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName());
+ throw new UnsupportedOperationException("source: " + e.getSource() + " - aspect: " + e.getAspectName()); //$NON-NLS-1$//$NON-NLS-2$
}
// ********** internal methods **********
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/HibernateJptUIPlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/HibernateJptUIPlugin.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/HibernateJptUIPlugin.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -22,7 +22,7 @@
public class HibernateJptUIPlugin extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.hibernate.jpt.ui";
+ public static final String PLUGIN_ID = "org.jboss.tools.hibernate.jpt.ui"; //$NON-NLS-1$
// The shared instance
private static HibernateJptUIPlugin plugin;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/persistence/details/HibernatePropertiesComposite.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -34,6 +34,7 @@
import org.hibernate.eclipse.console.utils.DriverClassHelpers;
import org.hibernate.eclipse.launch.PathHelper;
import org.jboss.tools.hibernate.jpt.core.internal.context.basic.BasicHibernateProperties;
+import org.jboss.tools.hibernate.jpt.ui.wizard.Messages;
import org.jboss.tools.hibernate.jpt.ui.xpl.AbstractPane;
/**
@@ -59,7 +60,7 @@
protected void initializeLayout(Composite container) {
- Composite section = buildSection(container, "Basic properties");
+ Composite section = buildSection(container, Messages.HibernatePropertiesComposite_basic_properties);
helper = new DriverClassHelpers();
@@ -322,6 +323,6 @@
}
public String getPageText() {
- return "Hibernate";
+ return Messages.HibernatePropertiesComposite_hibernate;
}
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/platform/HibernatePlatformUI.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/platform/HibernatePlatformUI.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/internal/platform/HibernatePlatformUI.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -34,10 +34,10 @@
*/
public class HibernatePlatformUI extends GenericPlatformUi {
- public static final String LaunchConfigurationType_ID = "org.hibernate.eclipse.launch.CodeGenerationLaunchConfigurationType";
+ public static final String LaunchConfigurationType_ID = "org.hibernate.eclipse.launch.CodeGenerationLaunchConfigurationType"; //$NON-NLS-1$
- public static String exporter_id = "hbmexporter";
- public static String full_exporter_id = HibernateLaunchConstants.ATTR_EXPORTERS + '.' + "hbmexporter";
+ public static final String exporter_id = "hbmexporter"; //$NON-NLS-1$
+ public static final String full_exporter_id = HibernateLaunchConstants.ATTR_EXPORTERS + '.' + "hbmexporter"; //$NON-NLS-1$
@Override
public void generateEntities(JpaProject project, IStructuredSelection selection) {
@@ -63,14 +63,14 @@
public static ILaunchConfigurationWorkingCopy createDefaultLaunchConfig(String projectName) {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType launchConfigurationType = launchManager
- .getLaunchConfigurationType(LaunchConfigurationType_ID); //$NON-NLS-1$
+ .getLaunchConfigurationType(LaunchConfigurationType_ID);
ILaunchConfigurationWorkingCopy wc = null;
try {
- wc = launchConfigurationType.newInstance(null, projectName + "-hibernate-generate");
+ wc = launchConfigurationType.newInstance(null, projectName + "-hibernate-generate"); //$NON-NLS-1$
// Create exporters
List<String> exporters = new ArrayList<String>();
- exporters.add(exporter_id); //$NON-NLS-1$
+ exporters.add(exporter_id);
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS, exporters);
wc.setAttribute(full_exporter_id, true);
} catch (CoreException e) {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizard.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -56,14 +56,14 @@
if (wc != null) {
String concoleConfigurationName = initPage.getConfigurationName();
wc.setAttribute(HibernateLaunchConstants.ATTR_CONSOLE_CONFIGURATION_NAME, concoleConfigurationName);
- wc.setAttribute(HibernateLaunchConstants.ATTR_OUTPUT_DIR, initPage.getOutputDir()); //$NON-NLS-1$
+ wc.setAttribute(HibernateLaunchConstants.ATTR_OUTPUT_DIR, initPage.getOutputDir());
Map<String, String> prop = new HashMap<String, String>();
- prop.put("outputFileName", initPage.getFilename());
- prop.put("format", "true");
- prop.put("scriptToConsole", "false");
+ prop.put("outputFileName", initPage.getFilename()); //$NON-NLS-1$
+ prop.put("format", "true"); //$NON-NLS-1$ //$NON-NLS-2$
+ prop.put("scriptToConsole", "false"); //$NON-NLS-1$ //$NON-NLS-2$
- wc.setAttribute(HibernatePlatformUI.full_exporter_id + ".properties", prop);
+ wc.setAttribute(HibernatePlatformUI.full_exporter_id + ".properties", prop); //$NON-NLS-1$
wc.setAttribute(HibernatePlatformUI.full_exporter_id + ".extension_id", HibernateLaunchConstants.ATTR_PREFIX + "hbm2ddl"); //$NON-NLS-1$ //$NON-NLS-2$
try {
wc.launch(ILaunchManager.RUN_MODE, null);
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateDdlWizardPage.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -77,8 +77,8 @@
( (GridData)controls[1].getLayoutData() ).grabExcessHorizontalSpace = true;
filename = new StringDialogField();
- filename.setLabelText("File name");
- filename.setText("schema.ddl");
+ filename.setLabelText(Messages.GenerateDdlWizardPage_file_name);
+ filename.setText("schema.ddl"); //$NON-NLS-1$
filename.setDialogFieldListener(fieldlistener);
filename.doFillIntoGrid(container, numColumns);
@@ -97,7 +97,7 @@
}
if (StringHelper.isEmpty(getFilename())) {
- setErrorMessage( "Please, input file name" );
+ setErrorMessage(Messages.GenerateDdlWizardPage_err_msg_input_file_name);
setPageComplete( false );
return;
}
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateEntitiesWizard.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateEntitiesWizard.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateEntitiesWizard.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -59,7 +59,7 @@
String concoleConfigurationName = initPage.getConfigurationName();
wc.setAttribute(HibernateLaunchConstants.ATTR_CONSOLE_CONFIGURATION_NAME, concoleConfigurationName);
- wc.setAttribute(HibernateLaunchConstants.ATTR_OUTPUT_DIR, initPage.getOutputDir()); //$NON-NLS-1$
+ wc.setAttribute(HibernateLaunchConstants.ATTR_OUTPUT_DIR, initPage.getOutputDir());
wc.setAttribute(HibernateLaunchConstants.ATTR_REVERSE_ENGINEER, true);
wc.setAttribute(HibernateLaunchConstants.ATTR_PACKAGE_NAME, initPage.getPackageName());
@@ -69,11 +69,11 @@
wc.setAttribute(HibernateLaunchConstants.ATTR_ENABLE_JDK5, true);
wc.setAttribute(HibernateLaunchConstants.ATTR_ENABLE_EJB3_ANNOTATIONS, true);
- wc.setAttribute("hibernate.dialect", "org.hibernate.dialect.PostgreSQLDialect");
- wc.setAttribute("hibernate.temp.use_jdbc_metadata_defaults", true);
+ wc.setAttribute("hibernate.dialect", "org.hibernate.dialect.PostgreSQLDialect"); //$NON-NLS-1$ //$NON-NLS-2$
+ wc.setAttribute("hibernate.temp.use_jdbc_metadata_defaults", true); //$NON-NLS-1$
- wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + '.' + HibernatePlatformUI.exporter_id + ".extension_id",
- HibernateLaunchConstants.ATTR_PREFIX + "hbm2java"); //$NON-NLS-1$ //$NON-NLS-2$
+ wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + '.' + HibernatePlatformUI.exporter_id + ".extension_id", //$NON-NLS-1$
+ HibernateLaunchConstants.ATTR_PREFIX + "hbm2java"); //$NON-NLS-1$
try {
wc.launch(ILaunchManager.RUN_MODE, null);
} catch (CoreException e) {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/GenerateInitWizardPage.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -10,14 +10,9 @@
******************************************************************************/
package org.jboss.tools.hibernate.jpt.ui.wizard;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import java.util.Properties;
import org.eclipse.core.runtime.IPath;
import org.eclipse.datatools.connectivity.IConnectionProfile;
@@ -63,7 +58,7 @@
*/
public abstract class GenerateInitWizardPage extends WizardPage {
- private static final String AUTODETECT = "[Autodetect]"; //$NON-NLS-1$
+ private static final String AUTODETECT = Messages.GenerateInitWizardPage_autodetect;
private DriverClassHelpers helper = new DriverClassHelpers();
@@ -88,7 +83,7 @@
};
public GenerateInitWizardPage(JpaProject jpaProject){
- super("", Messages.title, null);
+ super("", Messages.GenerateInitWizardPage_title, null); //$NON-NLS-1$
this.jpaProject = jpaProject;
}
@@ -108,7 +103,7 @@
createChildControls(container);
selectMethod = new Button(container, SWT.CHECK);
- selectMethod.setText("Use Console Configuration");
+ selectMethod.setText(Messages.GenerateInitWizardPage_use_console_configuration);
selectMethod.setSelection(true);
//selectMethod.setEnabled(false);
selectMethod.addSelectionListener(new SelectionListener(){
@@ -166,11 +161,11 @@
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
gd.horizontalSpan = numColumns;
dbGroup.setLayoutData(gd);
- dbGroup.setText(Messages.databaseSettings);
+ dbGroup.setText(Messages.GenerateInitWizardPage_databaseSettings);
//****************************connection profile*****************
connectionProfileName = new ComboDialogField(SWT.READ_ONLY);
- connectionProfileName.setLabelText(Messages.databaseSettings_connection);
+ connectionProfileName.setLabelText(Messages.GenerateInitWizardPage_databaseSettings_connection);
connectionProfileName.setItems(dtpConnectionProfileNames());
@@ -195,8 +190,8 @@
// TODO Auto-generated method stub
}});
- schemaName.setLabelText(Messages.databaseShema);
- schemaName.setButtonLabel("Refresh");
+ schemaName.setLabelText(Messages.GenerateInitWizardPage_databaseShema);
+ schemaName.setButtonLabel(Messages.GenerateInitWizardPage_refresh);
Control[] controls = schemaName.doFillIntoGrid(dbGroup, numColumns);
// Hack to tell the text field to stretch!
( (GridData)controls[1].getLayoutData() ).grabExcessHorizontalSpace = true;
@@ -208,17 +203,17 @@
if (selectMethod.getSelection() && (StringHelper.isEmpty(getConfigurationName()))){
setPageComplete(false);
- setErrorMessage("Please, select console configuration");
+ setErrorMessage(Messages.GenerateInitWizardPage_err_msg_select_console_configuration);
return;
}
if (!selectMethod.getSelection() && (StringHelper.isEmpty(getConnectionProfileName()))){
setPageComplete(false);
- setErrorMessage("Please, select connection profile");
+ setErrorMessage(Messages.GenerateInitWizardPage_err_msg_select_connection_profile);
return;
}
if (selectMethod.getSelection()){ // TODO: can't check that dialect set
- setWarningMessage("Impossible to check that hibernate dialect is set.");
+ setWarningMessage(Messages.GenerateInitWizardPage_wrn_msg_check_hibernate_dialect);
}
setPageComplete(true);
@@ -279,9 +274,9 @@
protected String getDefaultOutput(){
try{
- if (getJpaProject() == null) return "";
- if (getJpaProject().getJavaProject() == null) return "";
- if (!getJpaProject().getJavaProject().exists()) return "";
+ if (getJpaProject() == null) return ""; //$NON-NLS-1$
+ if (getJpaProject().getJavaProject() == null) return ""; //$NON-NLS-1$
+ if (!getJpaProject().getJavaProject().exists()) return ""; //$NON-NLS-1$
IPackageFragmentRoot[] roots = getJpaProject().getJavaProject().getPackageFragmentRoots();
for (int i = 0; i < roots.length; i++) {
IPackageFragmentRoot root = roots[i];
@@ -292,7 +287,7 @@
return getJpaProject().getJavaProject().getResource().getFullPath().toOSString();
} catch(JavaModelException e){
HibernateJptUIPlugin.logException(e);
- return "";
+ return ""; //$NON-NLS-1$
}
}
@@ -310,7 +305,7 @@
}
if (!selectMethod.getSelection()){
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(getConnectionProfileName());
- String driver = profile.getProperties(profile.getProviderId()).getProperty("org.eclipse.datatools.connectivity.db.driverClass");
+ String driver = profile.getProperties(profile.getProviderId()).getProperty("org.eclipse.datatools.connectivity.db.driverClass"); //$NON-NLS-1$
return helper.getDialect(driver);
}
return null;
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/Messages.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/Messages.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/Messages.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -19,14 +19,20 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.hibernate.jpt.ui.wizard.messages"; //$NON-NLS-1$
- public static String ccName;
- public static String connectionProfileError;
- public static String title;
- public static String selectName;
- public static String wizardMessage;
- public static String databaseSettings;
- public static String databaseSettings_connection;
- public static String databaseShema;
+ public static String GenerateInitWizardPage_title;
+ public static String GenerateInitWizardPage_autodetect;
+ public static String GenerateInitWizardPage_use_console_configuration;
+ public static String GenerateInitWizardPage_refresh;
+ public static String GenerateInitWizardPage_databaseSettings;
+ public static String GenerateInitWizardPage_databaseSettings_connection;
+ public static String GenerateInitWizardPage_databaseShema;
+ public static String GenerateInitWizardPage_err_msg_select_console_configuration;
+ public static String GenerateInitWizardPage_err_msg_select_connection_profile;
+ public static String GenerateInitWizardPage_wrn_msg_check_hibernate_dialect;
+ public static String GenerateDdlWizardPage_file_name;
+ public static String GenerateDdlWizardPage_err_msg_input_file_name;
+ public static String HibernatePropertiesComposite_basic_properties;
+ public static String HibernatePropertiesComposite_hibernate;
static {
// initialize resource bundle
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.ui/src/org/jboss/tools/hibernate/jpt/ui/wizard/messages.properties 2009-04-03 14:43:18 UTC (rev 14497)
@@ -1,8 +1,15 @@
-ccName=Console Configuration name
-connectionProfileError=Connection profile should be selected.
-selectName=Create default Console Configuration
-title=Use existing console configuration or connection profile for database connection
-wizardMessage=Enter console configuration name if you want to create new one for selected project.
-databaseSettings=Database Settings
-databaseSettings_connection=Database Connection
-databaseShema=Schema
\ No newline at end of file
+GenerateInitWizardPage_title=Use existing console configuration or connection profile for database connection
+GenerateInitWizardPage_autodetect=[Autodetect]
+GenerateInitWizardPage_use_console_configuration=Use Console Configuration
+GenerateInitWizardPage_refresh=Refresh
+GenerateInitWizardPage_autodetect=[Autodetect]
+GenerateInitWizardPage_databaseSettings=Database Settings
+GenerateInitWizardPage_databaseSettings_connection=Database Connection
+GenerateInitWizardPage_databaseShema=Schema
+GenerateInitWizardPage_err_msg_select_console_configuration=Please, select console configuration
+GenerateInitWizardPage_err_msg_select_connection_profile=Please, select connection profile
+GenerateInitWizardPage_wrn_msg_check_hibernate_dialect=Impossible to check that hibernate dialect is set.
+GenerateDdlWizardPage_file_name=File name
+GenerateDdlWizardPage_err_msg_input_file_name=Please, input file name
+HibernatePropertiesComposite_basic_properties=Basic properties
+HibernatePropertiesComposite_hibernate=Hibernate
\ No newline at end of file
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenMappingAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenMappingAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenMappingAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -29,7 +29,7 @@
*
*/
public class OpenMappingAction extends SelectionAction {
- public static String ACTION_ID = "org.jboss.tools.hibernate.ui.veditor.editors.actions.open.mapping"; //$NON-NLS-1$
+ public static final String ACTION_ID = "org.jboss.tools.hibernate.ui.veditor.editors.actions.open.mapping"; //$NON-NLS-1$
public OpenMappingAction(IWorkbenchPart part) {
super(part);
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -24,7 +24,7 @@
*
*/
public class OpenSourceAction extends SelectionAction {
- public static String ACTION_ID = "org.jboss.tools.hibernate.ui.veditor.editors.actions.open.source"; //$NON-NLS-1$
+ public static final String ACTION_ID = "org.jboss.tools.hibernate.ui.veditor.editors.actions.open.source"; //$NON-NLS-1$
public OpenSourceAction(IWorkbenchPart part) {
super(part);
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeTreeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeTreeEditPart.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ExpandeableShapeTreeEditPart.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -16,7 +16,7 @@
org.eclipse.gef.editparts.AbstractTreeEditPart implements
PropertyChangeListener {
- static protected OrmLabelProvider ormLabelProvider = new OrmLabelProvider(
+ static final protected OrmLabelProvider ormLabelProvider = new OrmLabelProvider(
new OrmModelImageVisitor(), new OrmModelNameVisitor());
/**
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeEditPart.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeEditPart.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -57,7 +57,7 @@
public class ShapeEditPart extends
OrmEditPart implements PropertyChangeListener, NodeEditPart {
- static protected OrmLabelProvider ormLabelProvider =
+ static final protected OrmLabelProvider ormLabelProvider =
new OrmLabelProvider(new OrmModelImageVisitor(), new OrmModelNameVisitor());
protected void createEditPolicies() {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeTreeEditPart.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeTreeEditPart.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/parts/ShapeTreeEditPart.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -17,7 +17,7 @@
org.eclipse.gef.editparts.AbstractTreeEditPart implements
PropertyChangeListener {
- static protected OrmLabelProvider ormLabelProvider = new OrmLabelProvider(
+ static final protected OrmLabelProvider ormLabelProvider = new OrmLabelProvider(
new OrmModelImageVisitor(), new OrmModelNameVisitor());
/**
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/ViewPlugin.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -18,8 +18,6 @@
import java.util.Properties;
import java.util.ResourceBundle;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.resource.ImageDescriptor;
@@ -27,9 +25,7 @@
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
import org.osgi.framework.BundleContext;
/**
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/SimpleTestProject.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -26,9 +26,9 @@
final private String projectName;
- public static String PACKAGE_NAME = "test"; //$NON-NLS-1$
- public static String TYPE_NAME = "TestClass"; //$NON-NLS-1$
- public static String FILE_NAME = "TestClass.java"; //$NON-NLS-1$
+ public static final String PACKAGE_NAME = "test"; //$NON-NLS-1$
+ public static final String TYPE_NAME = "TestClass"; //$NON-NLS-1$
+ public static final String FILE_NAME = "TestClass.java"; //$NON-NLS-1$
public SimpleTestProject(String projectName) {
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/HibernateAllMappingTests.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -201,7 +201,7 @@
long period = System.currentTimeMillis() - st_pack_time;
String time = period / 1000 + "." + (period % 1000) / 100; //$NON-NLS-1$
System.out.println( time +ConsoleTestMessages.HibernateAllMappingTests_seconds +
- " {" + javaElement.getElementName() + "}");
+ " {" + javaElement.getElementName() + "}"); //$NON-NLS-1$//$NON-NLS-2$
}
waitForJobs();
delay(Customization.EACTH_PACK_TEST_DELAY);
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestProject.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestProject.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestProject.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -39,8 +39,8 @@
private static MappingTestProject singleton= null;
- public static String PROJECT_NAME = "MappingTestProject"; //$NON-NLS-1$
- public static String RESOURCE_PATH = "res/project/"; //$NON-NLS-1$
+ public static final String PROJECT_NAME = "MappingTestProject"; //$NON-NLS-1$
+ public static final String RESOURCE_PATH = "res/project/"; //$NON-NLS-1$
private IProject project;
private IJavaProject javaProject;
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/ProjectUtil.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/ProjectUtil.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/ProjectUtil.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -27,7 +27,6 @@
import org.eclipse.jface.text.TextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchWindow;
@@ -129,7 +128,7 @@
ILaunchConfigurationTab[] tabs = page.getTabs();
ConsoleConfigurationMainTab main = (ConsoleConfigurationMainTab) tabs[0];
Class clazz = main.getClass();
- Field projectName = clazz.getDeclaredField("projectNameText");
+ Field projectName = clazz.getDeclaredField("projectNameText"); //$NON-NLS-1$
projectName.setAccessible(true);
Text text = (Text) projectName.get(main);
text.setText(MappingTestProject.PROJECT_NAME);
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -22,7 +22,7 @@
prefDialog.open();
Object selectedPage = prefDialog.getSelectedPage();
- assertTrue("Selected page is not an instance of HQLEditorPreferencePage", selectedPage instanceof HQLEditorPreferencePage);
+ assertTrue("Selected page is not an instance of HQLEditorPreferencePage", selectedPage instanceof HQLEditorPreferencePage); //$NON-NLS-1$
} finally {
prefDialog.close();
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/ELTransformerTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -8,11 +8,11 @@
public void testTransformer() {
- assertEquals("from Test", ELTransformer.removeEL("from Test"));
- assertEquals("from Test where t.x = :_customer_id_", ELTransformer.removeEL("from Test where t.x = #{customer.id}"));
- assertEquals("from Test where t.x = #{customer.id", ELTransformer.removeEL("from Test where t.x = #{customer.id"));
- assertEquals("from Test where t.x = :_customer_id_ and x = :_id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id} and x = #{id} "));
- assertEquals("from Test where t.x = :_customer_id_and_x_____id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id and x = #{id} "));
- assertEquals("from Test where t.x = :_id_______", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}"));
+ assertEquals("from Test", ELTransformer.removeEL("from Test")); //$NON-NLS-1$//$NON-NLS-2$
+ assertEquals("from Test where t.x = :_customer_id_", ELTransformer.removeEL("from Test where t.x = #{customer.id}")); //$NON-NLS-1$//$NON-NLS-2$
+ assertEquals("from Test where t.x = #{customer.id", ELTransformer.removeEL("from Test where t.x = #{customer.id")); //$NON-NLS-1$//$NON-NLS-2$
+ assertEquals("from Test where t.x = :_customer_id_ and x = :_id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id} and x = #{id} ")); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("from Test where t.x = :_customer_id_and_x_____id_ ", ELTransformer.removeEL("from Test where t.x = #{customer.id and x = #{id} ")); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("from Test where t.x = :_id_______", ELTransformer.removeEL("from Test where t.x = #{id+-&*()}")); //$NON-NLS-1$//$NON-NLS-2$
}
}
\ No newline at end of file
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HQLQueryValidatorTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -46,7 +46,8 @@
@Override
protected SimpleTestProject createTestProject() {
- return new SimpleTestProject("hqlquerytest-" + System.currentTimeMillis()) { // the currentTime Millis can be removed once the classloader stop hanging on to the jars. see JBIDE-1012
+ // the currentTime Millis can be removed once the classloader stop hanging on to the jars. see JBIDE-1012
+ return new SimpleTestProject("hqlquerytest-" + System.currentTimeMillis()) { //$NON-NLS-1$
@Override
protected void buildSimpleTestProject() throws JavaModelException,
@@ -65,24 +66,24 @@
assertEquals(3,getIJavaProject().getRawClasspath().length);
- getIProject().getFolder("src/META-INF").create(true, true, new NullProgressMonitor());
- getIProject().getFile("src/META-INF/persistence.xml").create(
- new ByteArrayInputStream(("<persistence>\n" +
- " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" +
- " <class>test.TestClass</class>\n" +
- " <properties>\n" +
- " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" +
- " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" +
- " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" +
- " <property name=\"hibernate.connection.password\" value=\"\"/>\n" +
- " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" +
- " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" +
- " </properties>\n" +
- " </persistence-unit>\n" +
- "</persistence>").getBytes()),
+ getIProject().getFolder("src/META-INF").create(true, true, new NullProgressMonitor()); //$NON-NLS-1$
+ getIProject().getFile("src/META-INF/persistence.xml").create( //$NON-NLS-1$
+ new ByteArrayInputStream(("<persistence>\n" + //$NON-NLS-1$
+ " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" + //$NON-NLS-1$
+ " <class>test.TestClass</class>\n" + //$NON-NLS-1$
+ " <properties>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.password\" value=\"\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" + //$NON-NLS-1$
+ " </properties>\n" + //$NON-NLS-1$
+ " </persistence-unit>\n" + //$NON-NLS-1$
+ "</persistence>").getBytes()), //$NON-NLS-1$
false /* force */, new NullProgressMonitor());
- getIProject().findMember("src/META-INF/persistence.xml");
+ getIProject().findMember("src/META-INF/persistence.xml"); //$NON-NLS-1$
getIProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
}
@@ -90,17 +91,17 @@
protected IType buildType(IPackageFragment pack, String cuName)
throws JavaModelException {
ICompilationUnit cu = pack.createCompilationUnit(cuName,
- "", false, null);
+ "", false, null); //$NON-NLS-1$
cu.createPackageDeclaration(pack.getElementName(),null);
IType type = cu.createType(
- "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" +
- "@javax.persistence.Entity\n" +
- "public class " + TYPE_NAME + " {}",null,false,null);
- type.createField("@javax.persistence.Id private int id;",null,false,null);
- type.createField("private String testField;",null,false,null);
- type.createMethod("public String getTestField() {return this.testField;}",null,false,null);
- type.createMethod("public void setTestField(String testField) {this.testField = testField;}",null,false,null);
+ "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" + //$NON-NLS-1$
+ "@javax.persistence.Entity\n" + //$NON-NLS-1$
+ "public class " + TYPE_NAME + " {}",null,false,null); //$NON-NLS-1$ //$NON-NLS-2$
+ type.createField("@javax.persistence.Id private int id;",null,false,null); //$NON-NLS-1$
+ type.createField("private String testField;",null,false,null); //$NON-NLS-1$
+ type.createMethod("public String getTestField() {return this.testField;}",null,false,null); //$NON-NLS-1$
+ type.createMethod("public void setTestField(String testField) {this.testField = testField;}",null,false,null); //$NON-NLS-1$
return type;
}
};
@@ -158,25 +159,25 @@
assertEquals(1, hqlDetector.getProblems().size());
HQLProblem hqlProblem = (HQLProblem) hqlDetector.getProblems().get(0);
- assertTrue(hqlProblem.getMessage().contains("from Unknown"));
+ assertTrue(hqlProblem.getMessage().contains("from Unknown")); //$NON-NLS-1$
}
public void testCheckQueryEL() {
- HQLDetector.checkQuery(ccfg, "from java.lang.Object", false);
- HQLDetector.checkQuery(ccfg, "from TestClass", false);
+ HQLDetector.checkQuery(ccfg, "from java.lang.Object", false); //$NON-NLS-1$
+ HQLDetector.checkQuery(ccfg, "from TestClass", false); //$NON-NLS-1$
try {
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", false);
- fail("should have failed with EL expressions!");
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", false); //$NON-NLS-1$
+ fail("should have failed with EL expressions!"); //$NON-NLS-1$
} catch (HibernateException he) {
// ok
}
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", true);
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field=}", true);
- HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id and field=}", true);
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field}", true); //$NON-NLS-1$
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id.field=}", true); //$NON-NLS-1$
+ HQLDetector.checkQuery(ccfg, "from TestClass where id = #{some.id and field=}", true); //$NON-NLS-1$
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -32,7 +32,7 @@
@Override
protected SimpleTestProject createTestProject() {
- return new SimpleTestProject("hqlquerytest-"
+ return new SimpleTestProject("hqlquerytest-" //$NON-NLS-1$
+ System.currentTimeMillis()) { // the currentTime Millis can be
// removed once the classloader
// stop hanging on to the jars.
@@ -61,28 +61,28 @@
assertEquals(3, getIJavaProject().getRawClasspath().length);
- getIProject().getFolder("src/META-INF").create(true, true,
+ getIProject().getFolder("src/META-INF").create(true, true, //$NON-NLS-1$
new NullProgressMonitor());
getIProject()
- .getFile("src/META-INF/persistence.xml")
+ .getFile("src/META-INF/persistence.xml") //$NON-NLS-1$
.create(
new ByteArrayInputStream(
- ("<persistence>\n"
- + " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n"
- + " <class>test.TestClass</class>\n"
- + " <properties>\n"
- + " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n"
- + " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n"
- + " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n"
- + " <property name=\"hibernate.connection.password\" value=\"\"/>\n"
- + " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n"
- + " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n"
- + " </properties>\n"
- + " </persistence-unit>\n"
- + "</persistence>").getBytes()),
+ ("<persistence>\n" //$NON-NLS-1$
+ + " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" //$NON-NLS-1$
+ + " <class>test.TestClass</class>\n" //$NON-NLS-1$
+ + " <properties>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.connection.password\" value=\"\"/>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" //$NON-NLS-1$
+ + " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" //$NON-NLS-1$
+ + " </properties>\n" //$NON-NLS-1$
+ + " </persistence-unit>\n" //$NON-NLS-1$
+ + "</persistence>").getBytes()), //$NON-NLS-1$
false /* force */, new NullProgressMonitor());
- getIProject().findMember("src/META-INF/persistence.xml");
+ getIProject().findMember("src/META-INF/persistence.xml"); //$NON-NLS-1$
getIProject().build(IncrementalProjectBuilder.FULL_BUILD,
new NullProgressMonitor());
}
@@ -90,27 +90,27 @@
@Override
protected IType buildType(IPackageFragment pack, String cuName)
throws JavaModelException {
- ICompilationUnit cu = pack.createCompilationUnit(cuName, "",
+ ICompilationUnit cu = pack.createCompilationUnit(cuName, "", //$NON-NLS-1$
false, null);
cu.createPackageDeclaration(pack.getElementName(), null);
IType type = cu.createType(
- "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n"
- + "@javax.persistence.Entity\n"
- + "public class " + TYPE_NAME + " {}", null,
+ "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" //$NON-NLS-1$
+ + "@javax.persistence.Entity\n" //$NON-NLS-1$
+ + "public class " + TYPE_NAME + " {}", null, //$NON-NLS-1$ //$NON-NLS-2$
false, null);
- type.createField("@javax.persistence.Id private int id;", null,
+ type.createField("@javax.persistence.Id private int id;", null, //$NON-NLS-1$
false, null);
type
- .createField("private String testField;", null, false,
+ .createField("private String testField;", null, false, //$NON-NLS-1$
null);
type
.createMethod(
- "public String getTestField() {return this.testField;}",
+ "public String getTestField() {return this.testField;}", //$NON-NLS-1$
null, false, null);
type
.createMethod(
- "public void setTestField(String testField) {this.testField = testField;}",
+ "public void setTestField(String testField) {this.testField = testField;}", //$NON-NLS-1$
null, false, null);
return type;
}
@@ -139,7 +139,7 @@
.setPerspective(
PlatformUI.getWorkbench().getPerspectiveRegistry()
.findPerspectiveWithId(
- "org.eclipse.ui.resourcePerspective"));
+ "org.eclipse.ui.resourcePerspective")); //$NON-NLS-1$
waitForJobs();
// getProject().deleteIProject();
@@ -173,9 +173,9 @@
private void deleteFile(File file) {
try {
if (!file.delete())
- throw new RuntimeException("Cannot remove the " + file.getAbsolutePath() + " file.");
+ throw new RuntimeException("Cannot remove the " + file.getAbsolutePath() + " file."); //$NON-NLS-1$//$NON-NLS-2$
} catch (Throwable e) {
- throw new RuntimeException("Cannot remove the " + file.getAbsolutePath() + " file.",e);
+ throw new RuntimeException("Cannot remove the " + file.getAbsolutePath() + " file.",e); //$NON-NLS-1$ //$NON-NLS-2$
}
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest2.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest2.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateErrorsTest2.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -1,6 +1,5 @@
package org.hibernate.eclipse.jdt.ui.test;
-
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
@@ -13,23 +12,15 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
-import org.eclipse.jdt.core.dom.AST;
-import org.eclipse.jdt.core.dom.ASTNode;
-import org.eclipse.jdt.core.dom.ASTParser;
-import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.launching.JavaRuntime;
-import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PlatformUI;
-import org.hibernate.HibernateException;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences.ConfigurationMode;
@@ -39,8 +30,6 @@
import org.hibernate.eclipse.console.test.SimpleTestProject;
import org.hibernate.eclipse.console.test.xpl.JavaProjectHelper;
import org.hibernate.eclipse.console.utils.ProjectUtils;
-import org.hibernate.eclipse.jdt.ui.internal.HQLDetector;
-import org.hibernate.eclipse.jdt.ui.internal.HQLProblem;
public class HibernateErrorsTest2 extends HibernateConsoleTest {
@@ -56,7 +45,8 @@
@Override
protected SimpleTestProject createTestProject() {
- return new SimpleTestProject("hqlquerytest-" + System.currentTimeMillis()) { // the currentTime Millis can be removed once the classloader stop hanging on to the jars. see JBIDE-1012
+ // the currentTime Millis can be removed once the classloader stop hanging on to the jars. see JBIDE-1012
+ return new SimpleTestProject("hqlquerytest-" + System.currentTimeMillis()) { //$NON-NLS-1$
@Override
protected void buildSimpleTestProject() throws JavaModelException,
@@ -75,24 +65,24 @@
assertEquals(3,getIJavaProject().getRawClasspath().length);
- getIProject().getFolder("src/META-INF").create(true, true, new NullProgressMonitor());
- getIProject().getFile("src/META-INF/persistence.xml").create(
- new ByteArrayInputStream(("<persistence>\n" +
- " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" +
- " <class>test.TestClass</class>\n" +
- " <properties>\n" +
- " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" +
- " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" +
- " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" +
- " <property name=\"hibernate.connection.password\" value=\"\"/>\n" +
- " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" +
- " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" +
- " </properties>\n" +
- " </persistence-unit>\n" +
- "</persistence>").getBytes()),
+ getIProject().getFolder("src/META-INF").create(true, true, new NullProgressMonitor()); //$NON-NLS-1$
+ getIProject().getFile("src/META-INF/persistence.xml").create( //$NON-NLS-1$
+ new ByteArrayInputStream(("<persistence>\n" + //$NON-NLS-1$
+ " <persistence-unit name=\"manager1\" transaction-type=\"RESOURCE_LOCAL\">\n" + //$NON-NLS-1$
+ " <class>test.TestClass</class>\n" + //$NON-NLS-1$
+ " <properties>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.dialect\" value=\"org.hibernate.dialect.HSQLDialect\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.driver_class\" value=\"org.hsqldb.jdbcDriver\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.username\" value=\"sa\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.password\" value=\"\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.connection.url\" value=\"jdbc:hsqldb:.\"/>\n" + //$NON-NLS-1$
+ " <property name=\"hibernate.query.startup_check\" value=\"false\"/>\n" + //$NON-NLS-1$
+ " </properties>\n" + //$NON-NLS-1$
+ " </persistence-unit>\n" + //$NON-NLS-1$
+ "</persistence>").getBytes()), //$NON-NLS-1$
false /* force */, new NullProgressMonitor());
- getIProject().findMember("src/META-INF/persistence.xml");
+ getIProject().findMember("src/META-INF/persistence.xml"); //$NON-NLS-1$
getIProject().build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
}
@@ -100,17 +90,17 @@
protected IType buildType(IPackageFragment pack, String cuName)
throws JavaModelException {
ICompilationUnit cu = pack.createCompilationUnit(cuName,
- "", false, null);
+ "", false, null); //$NON-NLS-1$
cu.createPackageDeclaration(pack.getElementName(),null);
IType type = cu.createType(
- "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" +
- "@javax.persistence.Entity\n" +
- "public class " + TYPE_NAME + " {}",null,false,null);
- type.createField("@javax.persistence.Id private int id;",null,false,null);
- type.createField("private String testField;",null,false,null);
- type.createMethod("public String getTestField() {return this.testField;}",null,false,null);
- type.createMethod("public void setTestField(String testField) {this.testField = testField;}",null,false,null);
+ "@javax.persistence.NamedQuery(name=\"fromUnknown\", query=\"from Unknown\")\n" + //$NON-NLS-1$
+ "@javax.persistence.Entity\n" + //$NON-NLS-1$
+ "public class " + TYPE_NAME + " {}",null,false,null); //$NON-NLS-1$//$NON-NLS-2$
+ type.createField("@javax.persistence.Id private int id;",null,false,null); //$NON-NLS-1$
+ type.createField("private String testField;",null,false,null); //$NON-NLS-1$
+ type.createMethod("public String getTestField() {return this.testField;}",null,false,null); //$NON-NLS-1$
+ type.createMethod("public void setTestField(String testField) {this.testField = testField;}",null,false,null); //$NON-NLS-1$
return type;
}
};
@@ -150,7 +140,7 @@
.setPerspective(
PlatformUI.getWorkbench().getPerspectiveRegistry()
.findPerspectiveWithId(
- "org.eclipse.ui.resourcePerspective"));
+ "org.eclipse.ui.resourcePerspective")); //$NON-NLS-1$
waitForJobs();
// getProject().deleteIProject();
@@ -209,14 +199,14 @@
private String getMessage(File file) {
StringBuffer buffer = new StringBuffer();
- buffer.append("Cannot remove the ");
+ buffer.append("Cannot remove the "); //$NON-NLS-1$
buffer.append(file.getAbsolutePath());
- buffer.append(" file. ");
+ buffer.append(" file. "); //$NON-NLS-1$
if (file.exists() && file.isDirectory()) {
String[] files = file.list();
- buffer.append("List=");
+ buffer.append("List="); //$NON-NLS-1$
buffer.append(files);
- buffer.append("-");
+ buffer.append("-"); //$NON-NLS-1$
for (int i = 0; i < files.length; i++)
buffer.append(files[i]);
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -18,7 +18,7 @@
public class HibernateJDTuiTestPlugin extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.hibernate.eclipse.jdt.ui.test";
+ public static final String PLUGIN_ID = "org.hibernate.eclipse.jdt.ui.test"; //$NON-NLS-1$
// The shared instance
private static HibernateJDTuiTestPlugin plugin;
@@ -58,7 +58,7 @@
public File getFileInPlugin(IPath path) throws CoreException {
try {
- URL installURL= new URL(getBundle().getEntry("/"), path.toString());
+ URL installURL= new URL(getBundle().getEntry("/"), path.toString()); //$NON-NLS-1$
URL localURL= FileLocator.toFileURL(installURL);
return new File(localURL.getFile());
} catch (IOException e) {
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/QuestionDialog.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/QuestionDialog.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/QuestionDialog.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -109,7 +109,7 @@
ILaunchConfiguration configuration;
try {
- configuration = SeamGenAction.findLaunchConfig( "seamgen" );
+ configuration = SeamGenAction.findLaunchConfig( "seamgen" ); //$NON-NLS-1$
if(configuration!=null) {
existing = SeamGenAction.getSeamGenProperties( configuration );
}
@@ -134,7 +134,7 @@
composite = defaultComposite;
}
Label label = new Label(composite, SWT.NONE);
- label.setText( sgp.getDescription() + ":" );
+ label.setText( sgp.getDescription() + ":" ); //$NON-NLS-1$
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/DeployAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/DeployAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/DeployAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class DeployAction extends SeamGenAction {
protected String getTarget() {
- return "deploy";
+ return "deploy"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/ExplodeAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/ExplodeAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/ExplodeAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class ExplodeAction extends SeamGenAction {
protected String getTarget() {
- return "explode";
+ return "explode"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/GenerateEntitiesAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/GenerateEntitiesAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/GenerateEntitiesAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class GenerateEntitiesAction extends SeamGenAction {
protected String getTarget() {
- return "generate-entities";
+ return "generate-entities"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewActionAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewActionAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewActionAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -9,7 +9,7 @@
public class NewActionAction extends SeamGenAction {
protected String getTarget() {
- return "new-action";
+ return "new-action"; //$NON-NLS-1$
}
public String getTitle() {
@@ -22,29 +22,29 @@
protected Map getQuestions() {
Map properties = new LinkedHashMap();
- properties.put( "component.name", new SeamGenProperty("Seam component name") );
- properties.put( "interface.name", new SeamGenProperty("Local interface name") {
+ properties.put( "component.name", new SeamGenProperty("Seam component name") ); //$NON-NLS-1$
+ properties.put( "interface.name", new SeamGenProperty("Local interface name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "component.name", "" );
+ String property = others.getProperty( "component.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return upper(property);
}
});
- properties.put( "bean.name", new SeamGenProperty("Bean name") {
+ properties.put( "bean.name", new SeamGenProperty("Bean name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "component.name", "" );
+ String property = others.getProperty( "component.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return upper(property + "Bean");
}
});
- properties.put( "method.name", new SeamGenProperty("Method name") {
+ properties.put( "method.name", new SeamGenProperty("Method name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "component.name", "" );
+ String property = others.getProperty( "component.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return lower(property);
}
});
- properties.put( "page.name", new SeamGenProperty("Page name") {
+ properties.put( "page.name", new SeamGenProperty("Page name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "component.name", "" );
+ String property = others.getProperty( "component.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return lower(property);
}
});
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewConversationAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewConversationAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewConversationAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class NewConversationAction extends NewActionAction {
protected String getTarget() {
- return "new-conversation";
+ return "new-conversation"; //$NON-NLS-1$
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewEntityAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewEntityAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewEntityAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -9,7 +9,7 @@
public class NewEntityAction extends SeamGenAction {
protected String getTarget() {
- return "new-entity";
+ return "new-entity"; //$NON-NLS-1$
}
public String getTitle() {
@@ -22,17 +22,17 @@
protected Map getQuestions() {
Map properties = new LinkedHashMap();
- properties.put( "entity.name", new SeamGenProperty("Entity class name") );
- properties.put( "masterPage.name", new SeamGenProperty("Master page name") {
+ properties.put( "entity.name", new SeamGenProperty("Entity class name") ); //$NON-NLS-1$
+ properties.put( "masterPage.name", new SeamGenProperty("Master page name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "entity.name", "" );
+ String property = others.getProperty( "entity.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return lower(property) + "List";
}
});
- properties.put( "page.name", new SeamGenProperty("Page name") {
+ properties.put( "page.name", new SeamGenProperty("Page name") { //$NON-NLS-1$
public String getDefaultValue(Properties others) {
- String property = others.getProperty( "entity.name", "" );
+ String property = others.getProperty( "entity.name", "" ); //$NON-NLS-1$ //$NON-NLS-2$
return lower(property);
}
});
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewFormAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewFormAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewFormAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -8,7 +8,7 @@
}
protected String getTarget() {
- return "new-form";
+ return "new-form"; //$NON-NLS-1$
}
public String getTitle() {
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewProjectAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewProjectAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/NewProjectAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class NewProjectAction extends SeamGenAction {
protected String getTarget() {
- return "new-project";
+ return "new-project"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/RestartAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/RestartAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/RestartAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class RestartAction extends SeamGenAction {
protected String getTarget() {
- return "restart";
+ return "restart"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class SetupAction extends SeamGenAction {
protected String getTarget() {
- return "setup";
+ return "setup"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupDeluxeAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupDeluxeAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/SetupDeluxeAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -19,7 +19,7 @@
protected static final String CODEGEN = "Code generation";
protected String getTarget() {
- return "setup";
+ return "setup"; //$NON-NLS-1$
}
public Set getGroups() {
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UndeployAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UndeployAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UndeployAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class UndeployAction extends SeamGenAction {
protected String getTarget() {
- return "undeploy";
+ return "undeploy"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UnexplodeAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UnexplodeAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UnexplodeAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class UnexplodeAction extends SeamGenAction {
protected String getTarget() {
- return "unexplode";
+ return "unexplode"; //$NON-NLS-1$
}
}
Modified: trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UpdateProjectAction.java
===================================================================
--- trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UpdateProjectAction.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/actions/UpdateProjectAction.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -3,7 +3,7 @@
public class UpdateProjectAction extends SeamGenAction {
protected String getTarget() {
- return "update-project";
+ return "update-project"; //$NON-NLS-1$
}
}
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -63,7 +63,7 @@
public static IProject loadProject(String projectName) throws CoreException {
IResource project = ResourcesPlugin.getWorkspace().getRoot().findMember(projectName);
- assertNotNull("Can't load " + projectName, project);
+ assertNotNull("Can't load " + projectName, project); //$NON-NLS-1$
IProject result = project.getProject();
try {
result.build(IncrementalProjectBuilder.FULL_BUILD, null);
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/WorkbenchUtils.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/WorkbenchUtils.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/WorkbenchUtils.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -40,13 +40,13 @@
static public IWizard findWizardByDefId(String definitionId) {
IWizardDescriptor aWizardDescr = getWorkbench().getNewWizardRegistry()
.findWizard(definitionId);
- TestCase.assertNotNull("Cannot find wizard " + definitionId
- + " definition in wizard registry", aWizardDescr);
+ TestCase.assertNotNull("Cannot find wizard " + definitionId //$NON-NLS-1$
+ + " definition in wizard registry", aWizardDescr); //$NON-NLS-1$
IWorkbenchWizard aWizard = null;
try {
aWizard = aWizardDescr.createWizard();
} catch (CoreException e) {
- JUnitUtils.fail("Cannot create IWorkbenchWizard instance", e);
+ JUnitUtils.fail("Cannot create IWorkbenchWizard instance", e); //$NON-NLS-1$
}
return aWizard;
}
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/xpl/EditorTestHelper.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/xpl/EditorTestHelper.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/xpl/EditorTestHelper.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -206,7 +206,7 @@
Job[] jobs= jobManager.find(null);
for (int i= 0; i < jobs.length; i++) {
Job job= jobs[i];
- if ("Usage Data Event consumer".equals(job.getName()) || "Flush Cache Job".equals(job.getName())) continue;
+ if ("Usage Data Event consumer".equals(job.getName()) || "Flush Cache Job".equals(job.getName())) continue; //$NON-NLS-1$ //$NON-NLS-2$
int state= job.getState();
if (state == Job.RUNNING || state == Job.WAITING) {
Logger.global.finest(job.getName());
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -54,7 +54,7 @@
List<IMarker> result = new ArrayList<IMarker>();
IMarker[] markers = resource.findMarkers(type, true, IResource.DEPTH_INFINITE);
for (int i = 0; i < markers.length; i++) {
- String message = markers[i].getAttribute(IMarker.MESSAGE, "");
+ String message = markers[i].getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
if (message.matches(pattern)) {
result.add(markers[i]);
}
@@ -73,29 +73,29 @@
int line = findMarkerLine(
resource, type, pattern);
- assertTrue("Marker matches the '" + pattern + "' pattern wasn't found",
+ assertTrue("Marker matches the '" + pattern + "' pattern wasn't found", //$NON-NLS-1$ //$NON-NLS-2$
line != -1);
- assertEquals("Marker matches the '" + pattern + "' pattern was found at wrong line",
+ assertEquals("Marker matches the '" + pattern + "' pattern was found at wrong line", //$NON-NLS-1$//$NON-NLS-2$
expectedLine,line);
}
protected void assertMarkerIsNotCreated(IResource resource, String type, String pattern) throws CoreException {
IMarker[] markers = findMarkers(resource, type, pattern);
- assertFalse("Marker matches the '" + pattern + "' pattern was found", markers.length>0);
+ assertFalse("Marker matches the '" + pattern + "' pattern was found", markers.length>0); //$NON-NLS-1$ //$NON-NLS-2$
}
protected void assertMarkerIsNotCreated(IResource resource, String type, String pattern, int expectedLine) throws CoreException {
int line = findMarkerLine(resource, type, pattern);
- assertFalse("Marker matches the '" + pattern + "' pattern was found", line != -1);
+ assertFalse("Marker matches the '" + pattern + "' pattern was found", line != -1); //$NON-NLS-1$ //$NON-NLS-2$
}
protected void assertMarkerIsCreated(IResource resource, String type, String pattern) throws CoreException {
IMarker[] markers = findMarkers(resource, type, pattern);
- assertTrue("Marker matches the '" + pattern + "' pattern wasn't found",
+ assertTrue("Marker matches the '" + pattern + "' pattern wasn't found", //$NON-NLS-1$ //$NON-NLS-2$
markers.length>0);
}
@@ -109,11 +109,11 @@
try{
IMarker[] markers = resource.findMarkers(null, true, IResource.DEPTH_INFINITE);
for(int i=0;i<markers.length;i++){
- System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, ""));
+ System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, "")); //$NON-NLS-1$//$NON-NLS-2$
}
return markers.length;
}catch(CoreException ex){
- JUnitUtils.fail("Can'r get problem markers", ex);
+ JUnitUtils.fail("Can't get problem markers", ex); //$NON-NLS-1$
}
return -1;
}
@@ -125,11 +125,11 @@
messages = new String[markers.length];
for(int i=0;i<markers.length;i++){
- System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, ""));
- messages[i] = markers[i].getAttribute(IMarker.MESSAGE, "");
+ System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, "")); //$NON-NLS-1$//$NON-NLS-2$
+ messages[i] = markers[i].getAttribute(IMarker.MESSAGE, ""); //$NON-NLS-1$
}
}catch(CoreException ex){
- JUnitUtils.fail("Can't get problem markers", ex);
+ JUnitUtils.fail("Can't get problem markers", ex); //$NON-NLS-1$
}
return messages;
}
@@ -141,11 +141,11 @@
numbers = new int[markers.length];
for(int i=0;i<markers.length;i++){
- System.out.println("Marker line number - "+markers[i].getAttribute(IMarker.LINE_NUMBER, 0));
+ System.out.println("Marker line number - "+markers[i].getAttribute(IMarker.LINE_NUMBER, 0)); //$NON-NLS-1$
numbers[i] = markers[i].getAttribute(IMarker.LINE_NUMBER, 0);
}
}catch(CoreException ex){
- JUnitUtils.fail("Can't get problem markers.", ex);
+ JUnitUtils.fail("Can't get problem markers.", ex); //$NON-NLS-1$
}
return numbers;
}
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugInLoadTest.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugInLoadTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PlugInLoadTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -25,21 +25,21 @@
*/
public class PlugInLoadTest extends TestCase {
- public static final String rhdsNS = "org.jboss.tools.";
- private static String jbideNS = "org.jboss.ide.eclipse.";
- private static String hibNS = "org.hibernate.eclipse.";
- private static String jbpmNS = "org.jbpm.gd.jpdl";
- private static String jbwsNS = "com.eviware.soapui.";
+ public static final String rhdsNS = "org.jboss.tools."; //$NON-NLS-1$
+ private static String jbideNS = "org.jboss.ide.eclipse."; //$NON-NLS-1$
+ private static String hibNS = "org.hibernate.eclipse."; //$NON-NLS-1$
+ private static String jbpmNS = "org.jbpm.gd.jpdl"; //$NON-NLS-1$
+ private static String jbwsNS = "com.eviware.soapui."; //$NON-NLS-1$
private boolean isPluginResolved(String pluginId) {
Bundle bundle = Platform.getBundle(pluginId);
- assertNotNull(pluginId + " failed to load.", bundle);
+ assertNotNull(pluginId + " failed to load.", bundle); //$NON-NLS-1$
try {
// In 3.3 when test case is running plug-in.getState always returns
// STARTING state
// to move plug-in in ACTIVE state at one class should be loaded
// from plug-in
- bundle.loadClass("fake class");
+ bundle.loadClass("fake class"); //$NON-NLS-1$
} catch (Exception e) {
// It happens always because loaded class doesn't not exist
}
@@ -49,88 +49,88 @@
private void assertPluginsResolved(String[] pluginIds) {
for (int i = 0; i < pluginIds.length; i++) {
- assertTrue("plugin '" + pluginIds[i] + "' is not resolved",
+ assertTrue("plugin '" + pluginIds[i] + "' is not resolved", //$NON-NLS-1$ //$NON-NLS-2$
isPluginResolved(pluginIds[i]));
}
}
public void testCommonPluginsResolved() {
assertPluginsResolved(new String[] {
- rhdsNS + "common",
- rhdsNS + "common.gef",
- rhdsNS + "common.kb",
- rhdsNS + "common.model",
- rhdsNS + "common.model.ui",
- rhdsNS + "common.projecttemplates",
- rhdsNS + "common.text.ext",
- rhdsNS + "common.text.xml",
- rhdsNS + "common.verification",
- rhdsNS + "common.verification.ui", });
+ rhdsNS + "common", //$NON-NLS-1$
+ rhdsNS + "common.gef", //$NON-NLS-1$
+ rhdsNS + "common.kb", //$NON-NLS-1$
+ rhdsNS + "common.model", //$NON-NLS-1$
+ rhdsNS + "common.model.ui", //$NON-NLS-1$
+ rhdsNS + "common.projecttemplates", //$NON-NLS-1$
+ rhdsNS + "common.text.ext", //$NON-NLS-1$
+ rhdsNS + "common.text.xml", //$NON-NLS-1$
+ rhdsNS + "common.verification", //$NON-NLS-1$
+ rhdsNS + "common.verification.ui", }); //$NON-NLS-1$
}
public void testJsfPluginsResolved() {
assertPluginsResolved(new String[] {
- rhdsNS + "jsf",
- rhdsNS + "jsf.text.ext",
- rhdsNS + "jsf.text.ext.facelets",
- rhdsNS + "jsf.ui",
- rhdsNS + "jsf.verification",
- rhdsNS + "jsf.vpe.ajax4jsf",
- rhdsNS + "jsf.vpe.facelets",
- rhdsNS + "jsf.vpe.richfaces",
- rhdsNS + "jsf.vpe.seam" });
+ rhdsNS + "jsf", //$NON-NLS-1$
+ rhdsNS + "jsf.text.ext", //$NON-NLS-1$
+ rhdsNS + "jsf.text.ext.facelets", //$NON-NLS-1$
+ rhdsNS + "jsf.ui", //$NON-NLS-1$
+ rhdsNS + "jsf.verification", //$NON-NLS-1$
+ rhdsNS + "jsf.vpe.ajax4jsf", //$NON-NLS-1$
+ rhdsNS + "jsf.vpe.facelets", //$NON-NLS-1$
+ rhdsNS + "jsf.vpe.richfaces", //$NON-NLS-1$
+ rhdsNS + "jsf.vpe.seam" }); //$NON-NLS-1$
}
public void testJstPluginsResolved() {
assertPluginsResolved(new String[] {
- rhdsNS + "jst.jsp",
- rhdsNS + "jst.web",
- rhdsNS + "jst.web.debug",
- rhdsNS + "jst.web.debug.ui",
- rhdsNS + "jst.web.tiles",
- rhdsNS + "jst.web.tiles.ui",
- rhdsNS + "jst.web.ui",
- rhdsNS + "jst.web.verification" });
+ rhdsNS + "jst.jsp", //$NON-NLS-1$
+ rhdsNS + "jst.web", //$NON-NLS-1$
+ rhdsNS + "jst.web.debug", //$NON-NLS-1$
+ rhdsNS + "jst.web.debug.ui", //$NON-NLS-1$
+ rhdsNS + "jst.web.tiles", //$NON-NLS-1$
+ rhdsNS + "jst.web.tiles.ui", //$NON-NLS-1$
+ rhdsNS + "jst.web.ui", //$NON-NLS-1$
+ rhdsNS + "jst.web.verification" }); //$NON-NLS-1$
}
public void testVpePluginsResolved() {
assertPluginsResolved(new String[] {
- rhdsNS + "vpe",
- rhdsNS + "vpe.ui.palette",
- rhdsNS + "vpe.xulrunner" });
+ rhdsNS + "vpe", //$NON-NLS-1$
+ rhdsNS + "vpe.ui.palette", //$NON-NLS-1$
+ rhdsNS + "vpe.xulrunner" }); //$NON-NLS-1$
}
public void testStrutsPluginsResolved() {
assertPluginsResolved(new String[] {
- rhdsNS + "struts",
- rhdsNS + "struts.debug",
- rhdsNS + "struts.text.ext",
- rhdsNS + "struts.ui",
- rhdsNS + "struts.validator.ui",
- rhdsNS + "struts.verification" });
+ rhdsNS + "struts", //$NON-NLS-1$
+ rhdsNS + "struts.debug", //$NON-NLS-1$
+ rhdsNS + "struts.text.ext", //$NON-NLS-1$
+ rhdsNS + "struts.ui", //$NON-NLS-1$
+ rhdsNS + "struts.validator.ui", //$NON-NLS-1$
+ rhdsNS + "struts.verification" }); //$NON-NLS-1$
}
public void testCorePluginsResolved() {
assertPluginsResolved(new String[] {
- jbideNS + "archives.core",
- jbideNS + "archives.ui"});
+ jbideNS + "archives.core", //$NON-NLS-1$
+ jbideNS + "archives.ui"}); //$NON-NLS-1$
}
public void testASPluginsResolved() {
assertPluginsResolved(new String[] {
- jbideNS + "as.core",
- jbideNS + "as.ui",
- jbideNS + "as.ui.mbeans" });
+ jbideNS + "as.core", //$NON-NLS-1$
+ jbideNS + "as.ui", //$NON-NLS-1$
+ jbideNS + "as.ui.mbeans" }); //$NON-NLS-1$
}
public void testHibernatePluginsResolved() {
assertPluginsResolved(new String[] {
- "org.hibernate.eclipse",
- hibNS + "console",
- hibNS + "help",
- hibNS + "mapper",
- hibNS + "jdt.ui",
- hibNS + "jdt.apt.ui" });
+ "org.hibernate.eclipse", //$NON-NLS-1$
+ hibNS + "console", //$NON-NLS-1$
+ hibNS + "help", //$NON-NLS-1$
+ hibNS + "mapper", //$NON-NLS-1$
+ hibNS + "jdt.ui", //$NON-NLS-1$
+ hibNS + "jdt.apt.ui" }); //$NON-NLS-1$
}
@@ -142,7 +142,7 @@
public void testFreemarkerPluginsResolved() {
assertPluginsResolved(new String[] {
- jbideNS + "freemarker" });
+ jbideNS + "freemarker" }); //$NON-NLS-1$
}
public void testDroolsPluginsResolved() {
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PreferencePageTest.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PreferencePageTest.java 2009-04-03 14:18:35 UTC (rev 14496)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/PreferencePageTest.java 2009-04-03 14:43:18 UTC (rev 14497)
@@ -48,7 +48,7 @@
prefDialog.open();
Object selectedPage = prefDialog.getSelectedPage();
- assertTrue("Selected page is not an instance of SeamPreferencePage", instanceOf.isInstance(selectedPage));
+ assertTrue("Selected page is not an instance of SeamPreferencePage", instanceOf.isInstance(selectedPage)); //$NON-NLS-1$
} finally {
prefDialog.close();
}
15 years, 9 months
JBoss Tools SVN: r14496 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-03 10:18:35 -0400 (Fri, 03 Apr 2009)
New Revision: 14496
Removed:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.properties
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
Log:
JBIDE-4044
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-04-03 14:05:53 UTC (rev 14495)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-04-03 14:18:35 UTC (rev 14496)
@@ -395,8 +395,6 @@
class="org.jboss.tools.common.model.ui.select.SelectObjectWizard"/>
<xclass id="org.jboss.tools.common.model.ui.texteditors.xmleditor.XMLTextEditor"
class="org.jboss.tools.common.model.ui.texteditors.xmleditor.XMLTextEditor"/>
- <xclass id="org.jboss.tools.common.model.ui.util.JavaUIMessages"
- class="org.jboss.tools.common.model.ui.util.JavaUIMessages"/>
<xclass id="org.jboss.tools.common.model.ui.views.palette.editor.HiddenPaletteTabsWizard"
class="org.jboss.tools.common.model.ui.views.palette.editor.HiddenPaletteTabsWizard"/>
<xclass id="org.jboss.tools.common.model.ui.wizard.newfile.NewClassCreationWizard"
Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.java 2009-04-03 14:05:53 UTC (rev 14495)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.java 2009-04-03 14:18:35 UTC (rev 14496)
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.common.model.ui.util;
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class JavaUIMessages {
-
- private static final String RESOURCE_BUNDLE= "org.jboss.tools.common.model.ui.util.JavaUIMessages";
-
- private static ResourceBundle fgResourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);
-
- private JavaUIMessages() {
- }
-
- public static String getString(String key) {
- try {
- return fgResourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-
- public static String getFormattedString(String key, String arg) {
- return getFormattedString(key, new String[] { arg });
- }
-
- public static String getFormattedString(String key, String[] args) {
- return MessageFormat.format(getString(key), args);
- }
-
-}
Deleted: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.properties 2009-04-03 14:05:53 UTC (rev 14495)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/util/JavaUIMessages.properties 2009-04-03 14:18:35 UTC (rev 14496)
@@ -1,124 +0,0 @@
-JavaPlugin.internal_error=Internal Error
-JavaElementProperties.name=Name
-
-#########
-## actions
-#########
-
-AddMethodStubAction.label=Create Method
-AddMethodStubAction.detailed.implement=&Implement in ''{0}''
-AddMethodStubAction.detailed.override=&Override in ''{0}''
-AddMethodStubAction.description=Add method stub to type
-AddMethodStubAction.tooltip=Add Method Stub to Type
-
-AddMethodStubAction.error.title=Add Method Stub Failed
-AddMethodStubAction.error.type_removed_in_editor=Input type has been removed in editor
-
-AddMethodStubAction.QueryDialog.title=Create Method Stub
-AddMethodStubAction.OverridesFinalDialog.message=This will override the final method ''{0}'' from ''{1}''\nOK to continue?
-AddMethodStubAction.OverridesPrivateDialog.message=This will override the private method ''{0}'' from ''{1}''\nOK to continue?
-AddMethodStubAction.ReplaceExistingDialog.message=This will replace the existing method ''{0}''.\nOK to continue?
-
-OpenTypeAction.description=Open a type in the editor
-OpenTypeAction.tooltip=Open a Type
-OpenTypeAction.dialogMessage=&Choose a type (? = any character, * = any string):
-OpenTypeAction.dialogTitle=Open Type
-OpenTypeAction.errorMessage=An exception occurred while opening the type.
-OpenTypeAction.errorTitle=Open Type
-OpenTypeAction.label=Open Type...
-
-
-#######
-## dialogs
-#######
-JavaUI.defaultDialogMessage=Select entries:
-
-MultiElementListSelectionDialog.pageInfoMessage=Page {0} of {1}
-
-MultiTypeSelectionDialog.dialogMessage=Could not uniquely map the type name to a type. Path is {0}
-MultiTypeSelectionDialog.dialogTitle=Select Type
-MultiTypeSelectionDialog.errorMessage=Could not uniquely map the type name to a type.
-MultiTypeSelectionDialog.errorTitle=Select Type
-MultiTypeSelectionDialog.error2Message=Unexpected exception. See log for details.
-MultiTypeSelectionDialog.error2Title=Exception
-
-TypeSelectionDialog.errorMessage=Could not uniquely map the type name to a type.
-TypeSelectionDialog.dialogMessage=Could not uniquely map the type name to a type. Path is {0}
-TypeSelectionDialog.errorTitle=Select Type
-TypeSelectionDialog.lowerLabel=&Qualifier:
-TypeSelectionDialog.upperLabel=&Matching types:
-TypeSelectionDialog.notypes.title=Type Selection
-TypeSelectionDialog.notypes.message=No types available.
-TypeSelectionDialog.error2Message=Unexpected exception. See log for details.
-TypeSelectionDialog.error2Title=Exception
-TypeSelectionDialog.error3Message=Unexpected exception. See log for details.
-TypeSelectionDialog.error3Title=Exception
-
-ExceptionDialog.seeErrorLogMessage= See error log for more details.
-
-MainTypeSelectionDialog.errorTitle=Error
-MultiMainTypeSelectionDialog.errorTitle=Error
-
-BuildPathDialog.title= Java Build Path for {0}
-
-######
-## dnd
-######
-LocalSelectionTransfer.errorMessage=Received wrong transfer data.
-
-###########
-## viewsupport
-###########
-JavaImageLabelprovider.assert.wrongImage=no image for this JavaElement Type
-
-JavaElementLabels.default_package=(default package)
-JavaElementLabels.import_container=import declarations
-# START NON-TRANSLATABLE
-JavaElementLabels.initializer=\{...\}
-JavaElementLabels.concat_string=\ -\
-JavaElementLabels.comma_string=,\
-JavaElementLabels.declseparator_string=\ :\
-# END NON-TRANSLATABLE
-
-StatusBarUpdater.num_elements_selected={0} items selected
-
-#########
-## util
-#########
-
-OpenTypeHierarchyUtil.error.open_view=Problems opening Type Hierarchy View
-OpenTypeHierarchyUtil.error.open_perspective=Problems opening Type Hierarchy Perspective
-OpenTypeHierarchyUtil.error.open_editor=Problems opening Java Editor
-OpenTypeHierarchyUtil.selectionDialog.title=Open In Type Hierarchy
-OpenTypeHierarchyUtil.selectionDialog.message=&Select the type to be shown in the Type Hierarchy:
-
-TypeInfoLabelProvider.default_package=(default package)
-# START NON-TRANSLATABLE
-TypeInfoLabelProvider.dash=\ -
-# END NON-TRANSLATABLE
-
-JavaUIHelp.link.label=Javadoc for {0}
-
-#########
-# DnD
-#########
-ResourceTransferDragAdapter.cannot_delete_resource=Cannot delete resources
-ResourceTransferDragAdapter.moving_resource=Moving Resources with Drag and Drop
-ResourceTransferDragAdapter.cannot_delete_files=Cannot delete the following file(s)
-
-#########
-# misc
-#########
-
-JavaAnnotationHover.multipleMarkersAtThisLine=Multiple markers at this line
-
-# START NON-TRANSLATABLE
-HTMLTextPresenter.ellipsis=
-HTML2TextReader.dash=-
-# END NON-TRANSLATABLE
-
-JavaEditor.codeassist.noCompletions=No completions available.
-
-OptionalMessageDialog.dontShowAgain= Don't show this message again
-
-ElementValidator.cannotPerform= The requested operation cannot be performed.
15 years, 9 months
JBoss Tools SVN: r14495 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/core/jdt and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-03 10:05:53 -0400 (Fri, 03 Apr 2009)
New Revision: 14495
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/Messages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/TemplateComponent.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/messages.properties
Log:
JBIDE-4044
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-04-03 13:54:37 UTC (rev 14494)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-04-03 14:05:53 UTC (rev 14495)
@@ -348,8 +348,6 @@
class="org.jboss.tools.common.core.resources.XModelObjectEditorInputFactory"/>
<xclass id="org.jboss.tools.common.editor.DeleteFileUnderEditingSpecialWizard"
class="org.jboss.tools.common.editor.DeleteFileUnderEditingSpecialWizard"/>
- <xclass id="org.jboss.tools.common.editor.ObjectMultiPageEditorMessages"
- class="org.jboss.tools.common.editor.ObjectMultiPageEditorMessages"/>
<xclass id="org.jboss.tools.common.editor.OpenEditorWizard"
class="org.jboss.tools.common.editor.OpenEditorWizard"/>
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java 2009-04-03 13:54:37 UTC (rev 14494)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java 2009-04-03 14:05:53 UTC (rev 14495)
@@ -16,10 +16,11 @@
private static final String BUNDLE_NAME = "org.jboss.tools.common.core.jdt.messages";
+ public static String FavoritesClassController_defaultClasses;
+
static {
// load message values from bundle file
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
- public static String FavoritesClassController_defaultClasses;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/Messages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/Messages.java 2009-04-03 13:54:37 UTC (rev 14494)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/Messages.java 2009-04-03 14:05:53 UTC (rev 14495)
@@ -4,6 +4,7 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.common.model.ui.templates.preferences.messages"; //$NON-NLS-1$
+ public static String CHECKBOX_LABEL;
public static String ClassTemplateComponent_ADD;
public static String ClassTemplateComponent_COLUMN_INTERFACES;
public static String ClassTemplateComponent_EDIT;
@@ -11,6 +12,7 @@
public static String ClassTemplateComponent_LABEL_INTERFACES;
public static String ClassTemplateComponent_REMOVE;
public static String ClassTemplateComponent_XPATH;
+ public static String ClassTemplateComponent_LIST_OF_TEMPLATE_GROUPS;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/TemplateComponent.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/TemplateComponent.java 2009-04-03 13:54:37 UTC (rev 14494)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/TemplateComponent.java 2009-04-03 14:05:53 UTC (rev 14495)
@@ -24,8 +24,6 @@
public class TemplateComponent {
- private static final String RESOURCE_BUNDLE= "org.jboss.tools.common.model.ui.templates.preferences.messages";
- private static ResourceBundle resourceBundle= ResourceBundle.getBundle(RESOURCE_BUNDLE);
private MetaConfiguration configuration;
// private XModel model;
boolean isGlobal = true;
@@ -59,7 +57,7 @@
Control[] control;
// checkbox
if(!isGlobal) { //.getString CHECKBOX_LABEL
- allowOverrideEditor.setLabelText(resourceBundle.getString("CHECKBOX_LABEL"));
+ allowOverrideEditor.setLabelText(Messages.CHECKBOX_LABEL);
allowOverrideAdapter.setValue("" + MetaClassTemplateHelper.instance. isProjectOverrideTemplates());
control = getControls(composite, allowOverrideEditor);
control[0].dispose(); // dispose empty label
@@ -69,7 +67,7 @@
}
// list of templates
- templateGroupsEditor.setLabelText("List of template groups.");
+ templateGroupsEditor.setLabelText(Messages.ClassTemplateComponent_LIST_OF_TEMPLATE_GROUPS);
control = getControls(composite, templateGroupsEditor);
control[0].dispose(); // dispose empty label
gd = new GridData(GridData.FILL_HORIZONTAL);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/messages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/messages.properties 2009-04-03 13:54:37 UTC (rev 14494)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/templates/preferences/messages.properties 2009-04-03 14:05:53 UTC (rev 14495)
@@ -6,3 +6,4 @@
ClassTemplateComponent_LABEL_INTERFACES=Interfaces
ClassTemplateComponent_REMOVE=Remove
ClassTemplateComponent_XPATH=XPath
+ClassTemplateComponent_LIST_OF_TEMPLATE_GROUPS=List of template groups.
15 years, 9 months
JBoss Tools SVN: r14494 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-03 09:54:37 -0400 (Fri, 03 Apr 2009)
New Revision: 14494
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.properties
Log:
JBIDE-4044
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.java 2009-04-03 13:46:40 UTC (rev 14493)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.java 2009-04-03 13:54:37 UTC (rev 14494)
@@ -10,20 +10,14 @@
******************************************************************************/
package org.jboss.tools.common.editor;
-import java.util.Locale;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
import org.eclipse.osgi.util.NLS;
-import org.jboss.tools.common.model.ui.ModelUIPlugin;
/**
* @author Jeremy
*/
-public class ObjectMultiPageEditorMessages {
+public class ObjectMultiPageEditorMessages extends NLS {
private static final String BUNDLE_NAME = "org.jboss.tools.common.editor.ObjectMultiPageEditorMessages"; //$NON-NLS-1$
- private static ResourceBundle fResourceBundle;
static {
// load message values from bundle file
NLS.initializeMessages(BUNDLE_NAME, ObjectMultiPageEditorMessages.class);
@@ -31,15 +25,4 @@
public static String PAGES_EDITOR_SOURCE_TAB;
- public static ResourceBundle getResourceBundle() {
- try {
- if (fResourceBundle == null)
- fResourceBundle = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault());
- }
- catch (MissingResourceException x) {
- ModelUIPlugin.getPluginLog().logError(x);
- fResourceBundle = null;
- }
- return fResourceBundle;
- }
}
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.properties 2009-04-03 13:46:40 UTC (rev 14493)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.properties 2009-04-03 13:54:37 UTC (rev 14494)
@@ -1,3 +1 @@
-Editor.error.activated.outofsync.title=File Changed
-Editor.error.activated.outofsync.message=The file has been changed on the file system. Do you want to load the changes?
PAGES_EDITOR_SOURCE_TAB=Source
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14493 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-03 09:46:40 -0400 (Fri, 03 Apr 2009)
New Revision: 14493
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/FavoritesClassController.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/messages.properties
Log:
JBIDE-4044
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/FavoritesClassController.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/FavoritesClassController.java 2009-04-03 11:51:51 UTC (rev 14492)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/FavoritesClassController.java 2009-04-03 13:46:40 UTC (rev 14493)
@@ -28,7 +28,6 @@
public class FavoritesClassController {
private static final String FAVORITES_CLASSES_LIST = "JavaFavoritesFieldEditor.classes";
- private static final String DEFAULT_CLASSES_LIST = "FavoritesClassController.defaultClasses";
private static final Image CLASS_ICON = JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CLASS);
@@ -36,7 +35,7 @@
ArrayList<String> list = new ArrayList<String>();
String classesList = ModelUIPlugin.getDefault().getPreferenceStore().getString(FAVORITES_CLASSES_LIST);
if ((classesList==null)||(classesList.length()==0)) {
- classesList = Messages.getString(DEFAULT_CLASSES_LIST);
+ classesList = Messages.FavoritesClassController_defaultClasses;
}
StringTokenizer st = new StringTokenizer(classesList,",");
while (st.hasMoreTokens()) {
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java 2009-04-03 11:51:51 UTC (rev 14492)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/Messages.java 2009-04-03 13:46:40 UTC (rev 14493)
@@ -10,28 +10,16 @@
******************************************************************************/
package org.jboss.tools.common.core.jdt;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
+import org.eclipse.osgi.util.NLS;
-public class Messages {
+public class Messages extends NLS {
- private static final String RESOURCE_BUNDLE = "org.jboss.tools.common.core.jdt.messages";
+ private static final String BUNDLE_NAME = "org.jboss.tools.common.core.jdt.messages";
- private static ResourceBundle resourceBundle = ResourceBundle.getBundle(RESOURCE_BUNDLE);
-
- private Messages() {
+ static {
+ // load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
- public static String getString(String key) {
- try {
- return resourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "%" + key + "%";
- }
- }
-
- public static ResourceBundle getResourceBundle() {
- return resourceBundle;
- }
-
+ public static String FavoritesClassController_defaultClasses;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/messages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/messages.properties 2009-04-03 11:51:51 UTC (rev 14492)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/core/jdt/messages.properties 2009-04-03 13:46:40 UTC (rev 14493)
@@ -1,4 +1,4 @@
# START NON-TRANSLATABLE
# comment
-FavoritesClassController.defaultClasses =
+FavoritesClassController_defaultClasses =
# END NON-TRANSLATABLE
15 years, 9 months
JBoss Tools SVN: r14492 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-03 07:51:51 -0400 (Fri, 03 Apr 2009)
New Revision: 14492
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3697, JUnits for seam components were updated.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2009-04-03 11:51:46 UTC (rev 14491)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2009-04-03 11:51:51 UTC (rev 14492)
@@ -112,9 +112,7 @@
</vpe:tag>
<vpe:tag name="s:defaultAction" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" >
- <span class="vpe-text"/>
- </vpe:template>
+ <vpe:template children="no" modify="no"/>
</vpe:tag>
<vpe:tag name="s:enumItem" case-sensitive="yes">
15 years, 9 months
JBoss Tools SVN: r14491 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test: src/org/jboss/tools/jsf/vpe/seam/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-03 07:51:46 -0400 (Fri, 03 Apr 2009)
New Revision: 14491
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3697, JUnits for seam components were updated.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,12 +1,22 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:s="http://jboss.com/products/seam/taglib">
- <head>
- </head>
- <body>
- <s:button id="id1">
- </s:button>
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:s="http://jboss.com/products/seam/taglib">
+ <head>
+ </head>
+ <body>
+ <h1>s:button</h1>
+ <s:button id="id1" value="Button">
+ </s:button>
+ <s:button id="id2" value="Button" disabled="true" >
+ </s:button>
+ <s:button id="id3" type="reset">
+ </s:button>
+ <s:button id="id4" type="submit">
+ </s:button>
+ <s:button id="id5" type="reset" value="Reset">
+ </s:button>
+ <s:button id="id6" image="img/dtpick.gif" value="Button"></s:button>
+ </body>
</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,5 +1,23 @@
<tests>
<test id="id1">
- <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify: read-only;"/>
+ <INPUT TYPE="button" VALUE="Button" STYLE="-moz-user-modify: read-only;" />
</test>
+ <test id="id2">
+ <INPUT TYPE="button" DISABLED="disabled" VALUE="Button"
+ STYLE="-moz-user-modify: read-only;" />
+ </test>
+ <test id="id3">
+ <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify: read-only;" />
+ </test>
+ <test id="id4">
+ <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify: read-only;" />
+ </test>
+ <test id="id5">
+ <INPUT TYPE="button" VALUE="Reset" STYLE="-moz-user-modify: read-only;" />
+ </test>
+ <test id="id6">
+ <INPUT TYPE="image"
+ SRC="/.*ve/unresolved_image.gif/" STYLE="-moz-user-modify: read-only;" />
+ </test>
+
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,11 +1,11 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-write;">
<H1 STYLE="-moz-user-modify: read-write;">
<SPAN CLASS="vpe-text">
s:cache
- </SPAN>
+ </SPAN>
</H1>
- </DIV>
+ </SPAN>
</test>
</tests>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="id1">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ 1
+ </SPAN>
+ </SPAN>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,7 +1,5 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-only; cursor: pointer;">
- <INPUT TYPE="file" />
- </DIV>
+ <INPUT TYPE="file" STYLE="-moz-user-modify: read-only;"/>
</test>
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,9 +1,9 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-only;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-write;">
<SPAN CLASS="vpe-text">
Current bid:
- </SPAN>
- </DIV>
+ </SPAN>
+ </SPAN>
</test>
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,10 +1,5 @@
<tests>
<test id="id1">
- <SPAN
- STYLE="color: blue; text-decoration: underline; -moz-user-modify: read-write;">
- Link
- <BR VPE:PSEUDO-ELEMENT="yes"
- STYLE="font-style: italic; color: green; -moz-user-modify: read-only;" />
- </SPAN>
+ <A>Link</A>
</test>
</tests>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,11 +1,11 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:s="http://jboss.com/products/seam/taglib">
- <head>
- </head>
- <body>
- <s:validateAll id="id1"></s:validateAll>
- </body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:s="http://jboss.com/products/seam/taglib">
+ <head>
+ </head>
+ <body>
+ <s:validateAll id="id1">Validate All</s:validateAll>
+ </body>
</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml 2009-04-03 11:51:46 UTC (rev 14491)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="id1">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text">
+ Validate All
+ </SPAN>
+ </SPAN>
+ </test>
+</tests>
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-04-03 11:51:46 UTC (rev 14491)
@@ -23,7 +23,7 @@
}
public void testConversationId() throws Throwable {
- performInvisibleTagTest("components/conversationId.xhtml", "id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ performContentTest("components/conversationId.xhtml"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testConvertDateTime() throws Throwable {
@@ -103,8 +103,14 @@
}
public void testValidateAll() throws Throwable {
- performInvisibleTagTest("components/validateAll.xhtml", "id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ performContentTest("components/validateAll.xhtml"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+ public void testValidateFormattedText() throws Throwable{
+ performInvisibleTagTest("components/validateFormattedText.xhtml", "id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testTaskId() throws Throwable{
+ performInvisibleTagTest("components/taskId.xhtml", "id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2009-04-03 10:23:46 UTC (rev 14490)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2009-04-03 11:51:46 UTC (rev 14491)
@@ -1,155 +1,165 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is 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:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jsf.vpe.seam.test;
-
-import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
-
-/**
- * Class for testing all Seam components
- *
- * @author dsakovich(a)exadel.com
- *
- */
-public class SeamComponentTest extends VpeTest {
-
- public SeamComponentTest(String name) {
- super(name);
- setCheckWarning(false);
- }
-
- public void testButton() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/button.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testCache() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/cache.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConversationId() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/conversationId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConversationPropagation() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/conversationPropagation.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConvertDateTime() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertDateTime.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConvertEntity() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertEntity.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConvertEnum() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertEnum.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testDecorate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/decorate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testDefaultAction() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/defaultAction.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testDiv() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/div.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testEnumItem() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/enumItem.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testFileUpload() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/fileUpload.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testFormattedText() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/formattedText.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testFragment() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/fragment.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testGraphicImage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/graphicImage.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testLabel() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/label.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testLink() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/link.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testMessage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testRemote() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/remote.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testSelectDate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testSelectItems() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testValidate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/validate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testSpan() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/span.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testValidateAll() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/validateAll.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testAllComponentsOnSinglePage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/seamtest.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import org.eclipse.core.resources.IFile;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ * Class for testing all Seam components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class SeamComponentTest extends VpeTest {
+
+ public SeamComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ public void testButton() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/button.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testCache() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/cache.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConversationId() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/conversationId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConversationPropagation() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/conversationPropagation.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConvertDateTime() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertDateTime.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConvertEntity() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertEntity.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConvertEnum() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertEnum.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testDecorate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/decorate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testDefaultAction() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/defaultAction.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testDiv() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/div.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testEnumItem() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/enumItem.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testFileUpload() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/fileUpload.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testFormattedText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/formattedText.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testFragment() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/fragment.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testGraphicImage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/graphicImage.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testLabel() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/label.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testLink() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/link.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testMessage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testRemote() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/remote.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testSelectDate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testSelectItems() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testValidate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testSpan() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/span.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testValidateAll() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validateAll.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testValidateFormattedText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validateFormattedText.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testTaskId() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/taskId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testAllComponentsOnSinglePage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/seamtest.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+}
15 years, 9 months
JBoss Tools SVN: r14486 - trunk/struts/docs/struts_tools_tutorial/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-04-03 05:27:02 -0400 (Fri, 03 Apr 2009)
New Revision: 14486
Modified:
trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/generating_stub.xml
trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-671 - updating the chapters;
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2009-04-03 09:26:34 UTC (rev 14485)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/coding_files.xml 2009-04-03 09:27:02 UTC (rev 14486)
@@ -34,7 +34,7 @@
<listitem>
<para>You are looking at a Java stub class that was generated by JBoss
- Developer Studio. Now we are going to edit the file</para>
+ Tools. Now we are going to edit the file</para>
</listitem>
<listitem>
@@ -42,7 +42,6 @@
</listitem>
</itemizedlist>
<programlisting role="JAVA"><![CDATA[private String name = "";
- private String greetName = "";
]]></programlisting>
<itemizedlist>
@@ -52,7 +51,6 @@
</listitem>
</itemizedlist>
<programlisting role="JAVA"><![CDATA[this.name = "";
- this.greetName = "";
]]></programlisting>
<itemizedlist>
@@ -68,17 +66,19 @@
<itemizedlist>
<listitem>
<para>Right-click and select <emphasis>
- <property>Source > Generate Getters and Setters...</property>
+ <property>Source > Generate Getters and Setters</property>
</emphasis>from the context menu</para>
</listitem>
<listitem>
- <para>In the dialog box, check the check boxes for name and greetName,
+ <para>In the dialog box, check the check box for <emphasis>
+ <property>name</property>,</emphasis>
select First method for Insertion point, and click on the <emphasis>
<property>OK</property>
</emphasis> button</para>
</listitem>
</itemizedlist>
- <para>The final GetNameForm.java file should look like this:</para>
+ <para>The final <emphasis>
+ <property>GetNameForm.java</property></emphasis> file should look like this:</para>
<programlisting role="JAVA"><![CDATA[package sample;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
@@ -88,7 +88,6 @@
{
private String name = "";
- private String greetName = "";
public String getName()
{
@@ -99,16 +98,6 @@
this.name = name;
}
- public String getGreetName()
- {
- return greetName;
- }
-
- public void setGreetName(String greetName)
- {
- this.greetName = greetName;
- }
-
public GetNameForm()
{
}
@@ -116,7 +105,6 @@
public void reset(ActionMapping actionMapping, HttpServletRequest request)
{
this.name = "";
- this.greetName = "";
}
public ActionErrors validate(ActionMapping actionMapping,
@@ -138,7 +126,8 @@
<title>GreetingAction.java</title>
<itemizedlist>
<listitem>
- <para>Open GreetingAction.java for editing</para>
+ <para>Open <emphasis>
+ <property>GreetingAction.java</property></emphasis> for editing</para>
</listitem>
<listitem>
<para>Inside the execute method, delete the TO DO lines and add the
@@ -152,7 +141,8 @@
return mapping.findForward(FORWARD_sayHello);
]]></programlisting>
- <para>The final version of GreetingAction.java should look like this:</para>
+ <para>The final version of <emphasis>
+ <property>GreetingAction.java</property></emphasis> should look like this:</para>
<programlisting role="JAVA"><![CDATA[package sample;
import javax.servlet.http.HttpServletRequest;
@@ -267,7 +257,7 @@
</emphasis></para>
</listitem>
<listitem>
- <para>In the StrutsForm library in the JBoss Tools Palette, select <emphasis>
+ <para>In the StrutsForm library in the <property>JBoss Tools Palette</property>, select <emphasis>
<property>submit</property>
</emphasis>, and drag it to right after the text box in the Visual pane
of the editor</para>
@@ -322,19 +312,21 @@
</html>
]]></programlisting>
- <para>To complete editing of this file, we will use macros from the JBoss Tools
- Palette. This palette is a view that should be available to the right of the
+ <para>To complete editing of this file, we will use macros from the <property>JBoss Tools
+ Palette</property>. This palette is a view that should be available to the right of the
editing area.</para>
<itemizedlist>
<listitem>
<para>Click on the <emphasis>
<property>Struts Common</property>
- </emphasis> folder in the JBoss Tools Palette to open it</para>
+ </emphasis> folder in the <property>JBoss Tools Palette</property> to open it</para>
</listitem>
<listitem>
- <para>Position the cursor at the beginning of the greeting.jsp file in the
- Source pane and then click on bean taglib in the JBoss Tools
- Palette</para>
+ <para>Position the cursor at the beginning of the <emphasis>
+ <property>greeting.jsp</property></emphasis> file in the
+ Source pane and then click on <emphasis>
+ <property>bean taglib</property></emphasis> in the <property>JBoss Tools
+ Palette</property></para>
</listitem>
</itemizedlist>
<para>This will insert the following line at the top of the file:</para>
@@ -345,7 +337,7 @@
<listitem>
<para>Click on the <emphasis>
<property>Struts Bean</property>
- </emphasis> folder in the JBoss Tools Palette to open it</para>
+ </emphasis> folder in the <property>JBoss Tools Palette</property> to open it</para>
</listitem>
<listitem>
<para>Position the cursor inside the <emphasis role="bold">
@@ -353,15 +345,16 @@
</emphasis> element</para>
</listitem>
<listitem>
- <para>Click on write in the JBoss Tools Palette</para>
+ <para>Click on <emphasis>
+ <property>write</property></emphasis> in the <property>JBoss Tools Palette</property></para>
</listitem>
<listitem>
<para>Type in "GetNameForm" for the <emphasis
role="italic">
- <property>"name"</property>
+ <property>name</property>
</emphasis> attribute and add a <emphasis role="italic">
- <property>"property"</property>
- </emphasis> attribute with "greetName" as its
+ <property>property</property>
+ </emphasis> attribute with "name" as its
value</para>
</listitem>
</itemizedlist>
@@ -378,28 +371,31 @@
</section>
<section id="index.jsp">
<title>index.jsp</title>
- <para>Finally, we will need to create and edit an index.jsp page. This page will use
+ <para>Finally, we will need to create and edit an <emphasis>
+ <property>index.jsp</property></emphasis> page. This page will use
a Struts forward to simply redirect us to the getName global forward.</para>
<itemizedlist>
<listitem>
<para>In the Web Projects view, right-click on <emphasis>
<property>StrutsHello > WEB-ROOT(WebContent)</property>
</emphasis> node and select <emphasis>
- <property>New > File > JSP..</property>
+ <property>New > File > JSP</property>
</emphasis></para>
</listitem>
<listitem>
- <para>Type index for Name and click on the <emphasis>
+ <para>Type <emphasis>
+ <property>index</property></emphasis> for Name and click on the <emphasis>
<property>Finish</property>
</emphasis> button</para>
</listitem>
<listitem>
- <para>On the JBoss Tools Palette, select the <emphasis>
+ <para>On the <property>JBoss Tools Palette</property>, select the <emphasis>
<property>Struts Common</property>
</emphasis> folder of macros by clicking on it in the palette</para>
</listitem>
<listitem>
- <para>Click on the logic taglib icon</para>
+ <para>Click on the <emphasis>
+ <property>logic taglib</property></emphasis> icon</para>
</listitem>
<listitem>
<para>Press the <emphasis>
@@ -412,7 +408,8 @@
</emphasis> folder of macros</para>
</listitem>
<listitem>
- <para>Click on redirect</para>
+ <para>Click on <emphasis>
+ <property>redirect</property></emphasis></para>
</listitem>
<listitem>
<para>Delete the ending tag, put a forward slash in front of the closing
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/generating_stub.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/generating_stub.xml 2009-04-03 09:26:34 UTC (rev 14485)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/generating_stub.xml 2009-04-03 09:27:02 UTC (rev 14486)
@@ -45,7 +45,7 @@
</itemizedlist>
<para>The Java files will be generated in a <emphasis>
<property>JavaSource > sample</property>
- </emphasis> folder that you can see in the Package Explorer view under the
+ </emphasis> folder that you can see in the <property>Package Explorer view</property> under the
"StrutsHello" node. One Action stub and one FormBean stub will have
been generated.</para>
</chapter>
\ No newline at end of file
Modified: trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml
===================================================================
--- trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml 2009-04-03 09:26:34 UTC (rev 14485)
+++ trunk/struts/docs/struts_tools_tutorial/en/modules/struts_application.xml 2009-04-03 09:27:02 UTC (rev 14486)
@@ -11,7 +11,7 @@
<title>Creating a Simple Struts Application</title>
- <para>Firstly, we assume that you have already launched Eclipse with JBoss Tools installed and
+ <para>Firstly, we assume that you have already launched Eclipse with <property>JBoss Tools</property> installed and
also that the <property>Web Development perspective</property> is the current perspective. (If not, make it
active by selecting <emphasis>
<property>Window > Open Perspective > Other > Web
@@ -24,31 +24,27 @@
<itemizedlist>
<listitem>
<para>Go to the menu bar and select <emphasis>
- <property>File > New > Project...</property>
- </emphasis>.</para>
- </listitem>
- <listitem>
- <para>Select <emphasis>
- <property>JBoss Tools Web > Struts > Struts Project</property>
- </emphasis> in the New Project dialog box</para>
- </listitem>
- <listitem>
- <para>Click <emphasis>
- <property>Next </property>
+ <property>File > New > Struts Project</property>
</emphasis></para>
</listitem>
<listitem>
- <para>Enter "StrutsHello" as the project name</para>
+ <para>Next enter "StrutsHello" as the project name</para>
</listitem>
<listitem>
- <para>Leave everything else as is, and click <emphasis>
+ <para>Leave everything else as it is, and click <emphasis>
<property>Next</property>
</emphasis></para>
</listitem>
<listitem>
+ <para>If you have server runtime already defined, just pass to next point. Otherwise in the <emphasis>
+ <property>Runtime</property></emphasis> section click the <emphasis>
+ <property>New</property></emphasis> button and target at needed server runtime environment. Click <emphasis>
+ <property>Finish</property>.</emphasis></para>
+ </listitem>
+ <listitem>
<para>Click <emphasis>
<property>Next</property>
- </emphasis> again</para>
+ </emphasis></para>
</listitem>
<listitem>
<para>Make sure that <emphasis>
@@ -57,13 +53,13 @@
<property>struts-html.tld</property>
</emphasis>, and <emphasis>
<property>struts-logic.tld</property>
- </emphasis> are checked in the list of included tag libraries and then click <emphasis>
+ </emphasis> are checked in the list of included tag libraries and then hit <emphasis>
<property>Finish</property>
</emphasis></para>
</listitem>
</itemizedlist>
- <para>A "StrutsHello" node should appear in the upper-left Package
- Explorer view.</para>
+ <para>A "StrutsHello" node should appear in the <property>Package
+ Explorer view</property>.</para>
<itemizedlist>
<listitem>
<para>Click the plus sign next to <emphasis>
@@ -73,12 +69,14 @@
<listitem>
<para>Click the plus sign next to <emphasis>
<property>WebContent</property>
- </emphasis> under StrutsHello</para>
+ </emphasis> under <emphasis>
+ <property>StrutsHello</property></emphasis></para>
</listitem>
<listitem>
<para>Click the plus sign next to <emphasis>
<property>WEB-INF</property>
- </emphasis> under WebContent</para>
+ </emphasis> under <emphasis>
+ <property>WebContent</property></emphasis></para>
</listitem>
<listitem>
<para>Then, double-click on the <emphasis>
@@ -105,7 +103,7 @@
<title>Creating the Page Placeholders</title>
<itemizedlist>
<listitem>
- <para>Bring the Web Projects view to the front of the Package Explorer view
+ <para>Bring the <property>Web Projects view</property> to the front of the <property>Package Explorer view</property>
by selecting the <emphasis>
<property>Web Projects</property>
</emphasis> tab next to that tab.</para>
@@ -113,7 +111,7 @@
<listitem>
<para>Right-click the <emphasis>
<property>StrutsHello > WEB-ROOT (WebContent)</property>
- </emphasis> folder in the Web Projects view and select <emphasis>
+ </emphasis> folder in the <property>Web Projects view</property> and select <emphasis>
<property>New > Folder...</property>
</emphasis></para>
</listitem>
@@ -130,7 +128,8 @@
</listitem>
<listitem>
- <para>Right-click the pages folder and select <emphasis>
+ <para>Right-click the <emphasis>
+ <property>pages</property></emphasis> folder and select <emphasis>
<property>New > File > JSP...</property>
</emphasis>
</para>
@@ -146,14 +145,16 @@
</emphasis> button</para>
</listitem>
<listitem>
- <para>Right-click the pages folder again and select <emphasis>
+ <para>Right-click the <emphasis>
+ <property>pages</property></emphasis> folder again and select <emphasis>
<property>New > File > JSP...</property>
</emphasis></para>
</listitem>
<listitem>
<para>For Name type in <emphasis>
<property>greeting</property>
- </emphasis>, for Template leave as Blank, and then click on the <emphasis>
+ </emphasis>, for Template leave as <emphasis>
+ <property>Blank</property>,</emphasis> and then click on the <emphasis>
<property>Finish</property>
</emphasis> button</para>
</listitem>
@@ -167,18 +168,18 @@
<listitem>
<para>Click on the <emphasis>
<property>struts-config.xml</property>
- </emphasis> tab in the Editing area to bring the diagram to the
+ </emphasis> tab in the editing area to bring the diagram to the
front</para>
</listitem>
<listitem>
<para>Click on the <emphasis>
<property>inputname.jsp</property>
- </emphasis> page in the Web Projects view, drag it onto the diagram, and
+ </emphasis> page in the <property>Web Projects view</property>, drag it onto the diagram, and
drop it</para>
</listitem>
<listitem><para>Click on the <emphasis>
<property>greeting.jsp</property>
- </emphasis> page in the Web Projects view, drag it onto the diagram, and
+ </emphasis> page in the <property>Web Projects view</property>, drag it onto the diagram, and
drop it to the right of the <emphasis>
<property>/pages/inputname.jsp</property>
</emphasis> icon with some extra space</para></listitem>
@@ -193,7 +194,7 @@
<itemizedlist>
<listitem>
<para>Right-click between the two icons and select <emphasis>
- <property>Add > Action</property>
+ <property>New > Action</property>
</emphasis></para>
</listitem>
<listitem>
@@ -240,14 +241,18 @@
<para>The <emphasis>
<property>/greeting</property>
</emphasis> action should appear in four places, in the diagram, under the
- action-mappings node, under the struts-config.xml node in Tree view, in Web Projects
- view and in the Outline view. Also, note the asterisk to the right of the name,
- struts-config.xml, in the Outline view showing that the file has been changed, but
+ <emphasis>
+ <property>action-mappings</property></emphasis> node, under the <emphasis>
+ <property>struts-config.xml</property></emphasis> node in Tree view, in <property>Web Projects
+ view</property> and in the <property>Outline view</property>. Also, note the asterisk to the right of the name,
+ <emphasis>
+ <property>struts-config.xml</property>,</emphasis> in the <property>Outline view</property> showing that the file has been changed, but
not saved to disk.</para>
</section>
<section id="CreatingaLink">
<title>Creating a Link</title>
- <para>Let's now create a link from the inputname.jsp page to the action.</para>
+ <para>Let's now create a link from the <emphasis>
+ <property>inputname.jsp</property></emphasis> page to the action.</para>
<itemizedlist>
<listitem>
<para>On the left-hand side of the diagram in the column of icons, click on this
@@ -300,7 +305,8 @@
</listitem>
<listitem>
<para>That's it. A link will be drawn from the actions new greeting
- forward to the greeting.jsp JSP page. Note that the forwards name will be
+ forward to the <emphasis>
+ <property>greeting.jsp</property></emphasis> JSP page. Note that the forwards name will be
set based on the name of the target JSP file name. If you don't
like it, you can easily change it</para>
</listitem>
@@ -312,12 +318,13 @@
</listitem>
<listitem>
<para>Expand the <emphasis>
- <property>struts-config.xml/action-mappings//greeting</property>
+ <property>struts-config.xml/action-mappings/ /greeting</property>
</emphasis> node and then select the greeting forward</para>
</listitem>
<listitem>
<para>In the Properties Editor to the right, change the text to
- "sayHello" in the Name field</para>
+ "sayHello" in the <emphasis>
+ <property>Name</property></emphasis> field</para>
</listitem>
<listitem>
<para>Select the <emphasis>
@@ -333,13 +340,14 @@
<itemizedlist>
<listitem>
<para>Somewhere in the top-left corner of diagram, right-click and select <emphasis>
- <property> Add > Global Forward...</property>
+ <property>New > Global Forward</property>
</emphasis></para>
</listitem>
<listitem>
<para>Enter <emphasis>
<property>getName</property>
- </emphasis> in the Name field</para>
+ </emphasis> in the <emphasis>
+ <property>Name</property></emphasis> field</para>
</listitem>
<listitem>
<para>Select the <emphasis>
@@ -389,7 +397,8 @@
<para>One last thing that we need to do is to create a form bean.</para>
<itemizedlist>
<listitem>
- <para>Switch to the Tree viewer in the editor for the struts-config.xml file, by
+ <para>Switch to the Tree viewer in the editor for the <emphasis>
+ <property>struts-config.xml</property></emphasis> file, by
selecting the <emphasis>
<property>Tree</property>
</emphasis> tab at the bottom of the editor window</para>
@@ -417,7 +426,8 @@
</emphasis> from the menu bar</para>
</listitem>
</itemizedlist>
- <para>Note the disappearance of the asterisk next to the name, struts-config.xml.</para>
+ <para>Note the disappearance of the asterisk next to the name, <emphasis>
+ <property>struts-config.xml</property>.</emphasis></para>
</section>
</section>
</chapter>
\ No newline at end of file
15 years, 9 months