JBoss Tools SVN: r14465 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-02 12:20:16 -0400 (Thu, 02 Apr 2009)
New Revision: 14465
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3690, vpe-text class was added to span elements to avoid custom style declaration influences, some seam templates were added.
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-02 15:44:56 UTC (rev 14464)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml 2009-04-02 16:20:16 UTC (rev 14465)
@@ -1,5 +1,5 @@
<tests>
<test id="id1">
- <INPUT TYPE="submit" VALUE=" " STYLE="-moz-user-modify: read-only;"/>
+ <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify: read-only;"/>
</test>
</tests>
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14464 - trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-02 11:44:56 -0400 (Thu, 02 Apr 2009)
New Revision: 14464
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java
Log:
JBIDE-997
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java 2009-04-02 15:43:03 UTC (rev 14463)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/ClassHyperlink.java 2009-04-02 15:44:56 UTC (rev 14464)
@@ -20,9 +20,12 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.search.IJavaSearchConstants;
import org.eclipse.jdt.core.search.IJavaSearchScope;
import org.eclipse.jdt.core.search.SearchEngine;
@@ -30,10 +33,6 @@
import org.eclipse.jdt.core.search.SearchParticipant;
import org.eclipse.jdt.core.search.SearchPattern;
import org.eclipse.jdt.core.search.SearchRequestor;
-import org.eclipse.jdt.internal.core.BinaryType;
-import org.eclipse.jdt.internal.core.PackageFragment;
-import org.eclipse.jdt.internal.core.PackageFragmentRoot;
-import org.eclipse.jdt.internal.core.SourceType;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IRegion;
@@ -95,8 +94,7 @@
}
}
- private IJavaElement searchForClass(IJavaProject javaProject, String className) {
- try {
+ private IJavaElement searchForClass(IJavaProject javaProject, String className) throws JavaModelException {
// Get the search pattern
SearchPattern pattern = SearchPattern.createPattern(className, IJavaSearchConstants.TYPE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE);
// Get the search scope
@@ -124,25 +122,14 @@
if (className.equals(classQualifiedName))
return element;
}
- return null;
- } finally {
- //
- }
+ return javaProject.findType(className, new NullProgressMonitor());
}
private String getQualifiedClassName(IJavaElement element) {
- String classQualifiedName = null;
- if (element instanceof SourceType || element instanceof BinaryType ) {
- classQualifiedName = element.getElementName();
+ if(element instanceof IType) {
+ return ((IType)element).getFullyQualifiedName('.');
}
- while ( element != null && !(element instanceof PackageFragmentRoot)) {
- element = element.getParent();
- if (element instanceof PackageFragment) {
- classQualifiedName = element.getElementName() + "." + classQualifiedName;
- }
- }
-
- return classQualifiedName;
+ return null;
}
private IJavaElement searchForClass(String className) {
15 years, 9 months
JBoss Tools SVN: r14463 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-04-02 11:43:03 -0400 (Thu, 02 Apr 2009)
New Revision: 14463
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaAdapter.java
Log:
JBIDE-997
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaAdapter.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaAdapter.java 2009-04-02 15:25:10 UTC (rev 14462)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaAdapter.java 2009-04-02 15:43:03 UTC (rev 14463)
@@ -13,6 +13,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.ElementChangedEvent;
import org.eclipse.jdt.core.IElementChangedListener;
@@ -96,7 +97,17 @@
packageFragmentRoot = javaProject == null ? null : javaProject.getPackageFragmentRoot(javaProject.getResource());
try {
- javaElement = javaProject == null ? null : javaProject.findElement(new Path(fullClassName));
+ if(javaProject == null) {
+ javaElement = null;
+ } else {
+ javaElement = javaProject.findElement(new Path(fullClassName));
+ if(javaElement == null) {
+ javaElement = javaProject.findType(name);
+ }
+ if(javaElement == null) {
+ javaElement = javaProject.findType(name, new NullProgressMonitor());
+ }
+ }
} catch (JavaModelException e) {
javaElement = null;
// no validation here
15 years, 9 months
JBoss Tools SVN: r14462 - trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2009-04-02 11:25:10 -0400 (Thu, 02 Apr 2009)
New Revision: 14462
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
Log:
JBIDE-4044 Review unused strings from Messages classes as reported by UCDetector
The unused properies are removed from JSFUIMessages bundle class and its bundle (messages.properties)
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2009-04-02 15:08:38 UTC (rev 14461)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2009-04-02 15:25:10 UTC (rev 14462)
@@ -77,9 +77,7 @@
public static String PROJECT_ALREADY_HAS_SOME_OF_LIBRARIES_INCLUDED;
public static String PROJECT_ALREADY_HAS_SOME_OF_LIBRARIES_INCLUDED_2;
public static String PROJECT_HAS_COFLICTING_LIBRARIES;
- public static String CONTINUE;
public static String OVERWRITE;
- public static String CANNOT_LOAD_JSF_CAPABILITIES;
public static String CONFIGURATION_FILE_ISNOT_FOUND_IN_PROJECT;
public static String FILE_EXISTS;
public static String CREATE_NEW_JSF_PROJECT;
@@ -90,17 +88,12 @@
public static String OF_NORMAL_SIZE;
public static String PRINT;
public static String ZOOM;
- public static String ALL;
public static String SELECT_ALL;
public static String UNSELECT_ALL;
public static String SELECTED_PAGES;
public static String PRINT_PREVIEW;
public static String LIBRARY_SETS;
public static String CONFIGURATION_FILE_ADDITIONS;
- public static String SHOW_DIAGRAM_NAVIGATOR;
- public static String DIAGRAM_NAVIGATOR;
- public static String SHOW_TREE;
- public static String TREE;
public static String DELETE_JAVA_SOURCE;
static {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2009-04-02 15:08:38 UTC (rev 14461)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages.properties 2009-04-02 15:25:10 UTC (rev 14462)
@@ -54,9 +54,7 @@
PROJECT_ALREADY_HAS_SOME_OF_LIBRARIES_INCLUDED = The project already has some of libraries included into the capability ({0}). Existing files will be overwritten and any new files will be added.
PROJECT_ALREADY_HAS_SOME_OF_LIBRARIES_INCLUDED_2 = The project already has some of libraries included into the capability ({0} and {1} more). Existing files will be overwritten and any new files will be added.
PROJECT_HAS_COFLICTING_LIBRARIES = The project has conflicting library {0}. Do you want to replace it with selected libraries?
-CONTINUE = Continue
OVERWRITE = Overwrite
-CANNOT_LOAD_JSF_CAPABILITIES = Cannot load JSF Capabilities
CONFIGURATION_FILE_ISNOT_FOUND_IN_PROJECT = Configuration file '{0}' is not found in project {0}.
FILE_EXISTS = File {0} exists.
CREATE_NEW_JSF_PROJECT = Create New JSF Project
@@ -67,15 +65,10 @@
OF_NORMAL_SIZE = % of normal size
PRINT = Print
ZOOM = Zoom
-ALL = All
SELECT_ALL = Select All
UNSELECT_ALL = Unselect All
SELECTED_PAGES = Selected Pages
PRINT_PREVIEW = Print Preview
LIBRARY_SETS = Library Sets
CONFIGURATION_FILE_ADDITIONS = Configuration File Additions
-SHOW_DIAGRAM_NAVIGATOR = Show Diagram Navigator
-DIAGRAM_NAVIGATOR = Diagram Navigator
-SHOW_TREE = Show Tree
-TREE = Tree
DELETE_JAVA_SOURCE = Delete Java Source
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14461 - in trunk/seam/plugins: org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-04-02 11:08:38 -0400 (Thu, 02 Apr 2009)
New Revision: 14461
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
Log:
https://jira.jboss.org/jira/browse/JBIDE-4044 Removed unused messages from seam tools.
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2009-04-02 15:08:38 UTC (rev 14461)
@@ -12,7 +12,6 @@
public static String SeamCoreBuilder_1;
public static String ANT_COPY_UTILS_COPY_FAILED;
public static String ANT_COPY_UTILS_COULD_NOT_FIND_FOLDER;
- public static String ANT_COPY_UTILS_IN;
public static String ANT_COPY_UTILS_CANNOT_COPY_JDBC_DRIVER_JAR;
public static String DATA_SOURCE_XML_DEPLOYER_DEPLOYING_DATASOURCE_TO_SERVER;
public static String DATA_SOURCE_XML_DEPLOYER_NO_SERVER_SELECTED_TO_DEPLOY_DATASOURCE_TO;
@@ -24,7 +23,6 @@
public static String LIBRARY_SCANNER_CANNOT_PROCESS_JAVA_CLASSES;
public static String SEAM_VALIDATION_CONTEXT_LINKED_RESOURCE_PATH_MUST_NOT_BE_NULL;
public static String SEAM_VALIDATION_CONTEXT_VARIABLE_NAME_MUST_NOT_BE_NULL;
- public static String SEAM_VALIDATION_HELPER_CANNOT_GET_SEAM_PROJECT;
public static String SEAM_CORE_VALIDATOR_ERROR_VALIDATING_SEAM_CORE;
public static String SEAM_VALIDATION_HELPER_RESOURCE_MUST_NOT_BE_NULL;
public static String SEAM_CORE_VALIDATOR_FACTORY_METHOD_MUST_HAVE_NAME;
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2009-04-02 15:08:38 UTC (rev 14461)
@@ -5,7 +5,6 @@
SeamFacetAbstractInstallDelegate_Restrict_raw_XHTML_Documents=Restrict raw XHTML Documents
ANT_COPY_UTILS_COPY_FAILED=Copy failed - ''{0}'' does not exist
ANT_COPY_UTILS_COULD_NOT_FIND_FOLDER=Could not find ''{0}''
-ANT_COPY_UTILS_IN=\ in
ANT_COPY_UTILS_CANNOT_COPY_JDBC_DRIVER_JAR=Cannot copy JDBC driver jar ''{0}''
DATA_SOURCE_XML_DEPLOYER_DEPLOYING_DATASOURCE_TO_SERVER=Deploying datasource to server
DATA_SOURCE_XML_DEPLOYER_NO_SERVER_SELECTED_TO_DEPLOY_DATASOURCE_TO=No server selected to deploy datasource to
@@ -18,7 +17,6 @@
SEAM_VALIDATION_CONTEXT_LINKED_RESOURCE_PATH_MUST_NOT_BE_NULL=Linked resource path must not be null\!
SEAM_VALIDATION_CONTEXT_VARIABLE_NAME_MUST_NOT_BE_NULL=Variable name must not be null\!
SEAM_FACET_INSTALL_ABSTRACT_DELEGATE_CHECK_ERROR_LOG_VIEW=Check Errors View for details
-SEAM_VALIDATION_HELPER_CANNOT_GET_SEAM_PROJECT=Can't get Seam Project
SEAM_CORE_VALIDATOR_ERROR_VALIDATING_SEAM_CORE=Error validating Seam Core
SEAM_VALIDATION_HELPER_RESOURCE_MUST_NOT_BE_NULL=Resource must not be null
SEAM_CORE_VALIDATOR_FACTORY_METHOD_MUST_HAVE_NAME=Factory method must have name: ''{0}''
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/SeamUIMessages.java 2009-04-02 15:08:38 UTC (rev 14461)
@@ -65,10 +65,6 @@
public static String SEAM_ACTION_WIZARD_PAGE1_SEAM_ACTION;
- public static String SEAM_ACTION_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_SEAM_CONVERSATION;
-
- public static String SEAM_ACTION_WIZARD_PAGE1_WITH_KEY_SEAM_EJB_ANNOTATIONS_WILL_BE_CREATED;
-
public static String SEAM_BASE_WIZARD_OPERATION_IS_NOT_DEFINED_FOR_WIZARD;
public static String SEAM_BASE_WIZARD_PAGE_LOCAL_CLASS_NAME;
@@ -83,40 +79,24 @@
public static String SEAM_CONVERSATION_WIZARD_ENTITY_CREATING_OPERATION;
- public static String SEAM_CONVERSATION_WIZARD_PAGE1_MANAGING_A_CONVERSATION_WILL_BE_CREATED;
-
public static String SEAM_CONVERSATION_WIZARD_PAGE1_SEAM_CONVERSATION;
- public static String SEAM_CONVERSATION_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_NEW_SEAM_CONVERSATION;
-
public static String SEAM_ENTITY_WIZARD_ENTITY_CREATING_OPERATION;
public static String SEAM_ENTITY_WIZARD_NEW_SEAM_ENTITY;
- public static String SEAM_ENTITY_WIZARD_PAGE1_ANNOTATIONS_AND_EXAMPLES_ATTRIBUTES_WILL_BE_CREATED;
-
public static String SEAM_ENTITY_WIZARD_PAGE1_ENTITY_CLASS_NAME;
public static String SEAM_ENTITY_WIZARD_PAGE1_ENTITY_MASTER_PAGE;
- public static String SEAM_ENTITY_WIZARD_PAGE1_LIST;
-
public static String SEAM_ENTITY_WIZARD_PAGE1_PAGE;
- public static String SEAM_ENTITY_WIZARD_PAGE1_SEAM_ENTITY;
-
- public static String SEAM_ENTITY_WIZARD_PAGE1_SELECT_THE_NAME_OF_NEW_SEAM_ENTITY;
-
public static String SEAM_FORM_WIZARD_FORM_CREATING_OPERATION;
public static String SEAM_FORM_WIZARD_NEW_SEAM_FORM;
- public static String SEAM_FORM_WIZARD_PAGE1_JAVA_INTERFACE_SLSB_AND_KEY_SEAMEJB3_ANNOTATIONS_WILL_BE_CREATED;
-
public static String SEAM_FORM_WIZARD_PAGE1_SEAM_FORM;
- public static String SEAM_FORM_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_NEW_SEAM_FORM;
-
public static String SEAM_GENERATE_ENTITIES_WIZARD_54;
public static String SEAM_GENERATE_ENTITIES_WIZARD_ACTION_CREATING_OPERATION;
@@ -125,8 +105,6 @@
public static String SEAM_GENERATE_ENTITIES_WIZARD_CAN_NOT_GENERATE_SEAM_ENTITIES;
- public static String SEAM_GENERATE_ENTITIES_WIZARD_THIS_METHOD_IS_NOT_RELEVANT_IN_GENERATING_SEAM_ENTITIES;
-
public static String SEAM_INSTALL_WIZARD_PAGE_ADD;
public static String SEAM_INSTALL_WIZARD_PAGE_CANNOT_USE_SELECTED_DEPLOYMENT6;
@@ -149,16 +127,12 @@
public static String SEAM_INSTALL_WIZARD_PAGE_DEPLOY_AS;
- public static String SEAM_INSTALL_WIZARD_PAGE_EAR;
-
public static String SEAM_INSTALL_WIZARD_PAGE_EDIT;
public static String SEAM_INSTALL_WIZARD_PAGE_ENTITY_BEAN_PACKAGE_NAME;
public static String SEAM_INSTALL_WIZARD_PAGE_GENERAL;
- public static String SEAM_INSTALL_WIZARD_PAGE_HIBERNATE_DIALECT;
-
public static String SEAM_INSTALL_WIZARD_PAGE_IS_NOT_VALID;
public static String SEAM_INSTALL_WIZARD_PAGE_NEW;
@@ -175,8 +149,6 @@
public static String SEAM_INSTALL_WIZARD_PAGE_TEST_PACKAGE_NAME;
- public static String SEAM_INSTALL_WIZARD_PAGE_WAR;
-
public static String SEAM_OPEN_ACTION_OPEN;
public static String SEAM_PROJECT_LABEL_PROVIDER_SEAM_COMPONENTS;
@@ -193,38 +165,10 @@
public static String SEAM_PROJECT_WIZARD_NEW_SEAM_PROJECT;
- public static String SEAM_PROJECT_WIZARD_PAGE1_BROWSE;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_CONTAINER;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_CONTAINER_MUST_BE_SPECIFIED;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_CONTAINER_MUST_EXIST;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_EXTENSION_MUST_BE_MPE;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_SPECIFIED;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_VALID;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_MULTIPAGE_EDITOR_FILE;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_PROJECT_MUST_BE_WRITABLE;
-
- public static String SEAM_PROJECT_WIZARD_PAGE1_SELECT_NEW_FILE_CONTAINER;
-
public static String SEAM_PROJECT_WIZARD_PAGE1_SEAM_FACET_MUST_BE_SPECIFIED;
- public static String SEAM_PROJECT_WIZARD_PAGE1_THIS_WIZARD_CREATES_A_NEW_FILE;
-
public static String SEAM_PROJECT_WIZARD_SEAM_WEB_PROJECT;
- public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_ADD;
-
- public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE;
-
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_ALREADY_EXISTS;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_AN_INSTANCEOF_OF_LIST;
@@ -271,8 +215,6 @@
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_THE_SELECTED_SEAM_APPEARS_TO_BE_OF_INCOMATIBLE_VERSION;
- public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_USE_AS_DEFAULT;
-
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_VERSION;
public static String SEAM_RUNTIME_LIST_FIELD_EDITOR_VERSION2;
@@ -430,20 +372,16 @@
public static String FIND_DECLARATIONS_ACTION_ACTION_NAME;
public static String FIND_DECLARATIONS_ACTION_DESCRIPTION;
- public static String FIND_DECLARATIONS_ACTION_MESSAGE;
public static String FIND_DECLARATIONS_ACTION_TOOL_TIP;
public static String FIND_REFERENCES_ACTION_ACTION_NAME;
public static String FIND_REFERENCES_ACTION_DESCRIPTION;
- public static String FIND_REFERENCES_ACTION_MESSAGE;
public static String FIND_REFERENCES_ACTION_TOOL_TIP;
public static String SELECT_WORKSPACE_FOLDER_DIALOG_TITLE;
public static String SELECT_WORKSPACE_FOLDER_DIALOG_MESSAGE;
- public static String SeamSearchQuery_task_label;
public static String SeamSearchQuery_label;
- public static String SeamSearchQuery_error_unsupported_pattern;
public static String SeamSearchQuery_singularPatternWithLimitTo;
public static String SeamSearchQuery_pluralPatternWithLimitTo;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/messages.properties 2009-04-02 15:08:38 UTC (rev 14461)
@@ -9,7 +9,6 @@
GENERATE_SEAM_ENTITIES_WIZARD_EXISTING_ENTITIES_LABEL = Use existing entities
SEAM_INSTALL_WIZARD_PAGE_CONFIGURE_SEAM_FACET_SETTINGS=Configure Seam Facet Settings
SEAM_INSTALL_WIZARD_PAGE_CANNOT_USE_SELECTED_DEPLOYMENT6=''{0}'' deployment cannot be used, because selected Server Runtime ''{1}'' doesn't support EJB 3.0 and EAR 5.0 modules
-SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_SPECIFIED=File name must be specified
SEAM_PROJECT_WIZARD_PAGE1_SEAM_FACET_MUST_BE_SPECIFIED=Seam facet must be enabled
SEAM_PROJECT_SELECTION_DIALOG_SELECT_SEAM_WEB_PROJECT=Select Seam Web Project
SEAM_PROJECT_WIZARD_CREATE_STANDALONE_SEAM_WEB_PROJECT=Create standalone Seam Web Project
@@ -17,10 +16,6 @@
SEAM_INSTALL_WIZARD_PAGE_DEPLOY_AS=Deploy as:
SEAM_VIEW_LAYOUT_ACTION_GROUP_FLAT=Flat
SEAM_VIEW_LAYOUT_ACTION_GROUP_NODE=Node
-SEAM_RUNTIME_LIST_FIELD_EDITOR_ADD=Add...
-SEAM_RUNTIME_LIST_FIELD_EDITOR_REMOVE=Remove
-SEAM_INSTALL_WIZARD_PAGE_WAR=war
-SEAM_INSTALL_WIZARD_PAGE_EAR=ear
SEAM_INSTALL_WIZARD_PAGE_CONNECTION_PROFILE=Connection profile:
SEAM_VIEW_LAYOUT_ACTION_GROUP_SEAM_PACKAGES=Seam Packages
SEAM_RUNTIME_LIST_FIELD_EDITOR_SEAM_RUNTIME=Seam Runtime
@@ -29,12 +24,9 @@
SEAM_BASE_WIZARD_PAGE_LOCAL_CLASS_NAME=Local interface:
SEAM_RUNTIME_LIST_FIELD_EDITOR_VERSION=Version
SEAM_RUNTIME_LIST_FIELD_EDITOR_RUNTIME=Runtime '
-SEAM_INSTALL_WIZARD_PAGE_HIBERNATE_DIALECT=Hibernate Dialect:
SEAM_INSTALL_WIZARD_PAGE_DATABASE_SCHEMA_NAME=Database Schema Name:
-SEAM_RUNTIME_LIST_FIELD_EDITOR_USE_AS_DEFAULT=Use as default:
SEAM_RUNTIME_LIST_FIELD_EDITOR_ALREADY_EXISTS=' already exists
SEAM_INSTALL_WIZARD_PAGE_DATABASE_CATALOG_NAME=Database Catalog Name:
-SEAM_PROJECT_WIZARD_PAGE1_MULTIPAGE_EDITOR_FILE=Multi-page Editor File
SEAM_PROJECT_SELECTION_DIALOG_SEAM_WEB_PROJECT=Seam Web Projects
SEAM_PROJECT_SELECTION_DIALOG_SHOW_ALL_PROJECTS=Show all projects
SEAM_PROJECT_LABEL_PROVIDER_SEAM_COMPONENTS=Seam Components
@@ -44,28 +36,20 @@
SEAM_RUNTIME_LIST_FIELD_EDITOR_EDIT_SEAM_RUNTIME=Edit Seam Runtime
SEAM_INSTALL_WIZARD_PAGE_DB_TABLES_ALREADY_EXISTS=DB Tables already exists in database:
SEAM_INSTALL_WIZARD_PAGE_RECREATE_DATABASE_TABLES_AND_DATA_ON_DEPLOY=Recreate database tables and data on deploy:
-SEAM_ACTION_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_SEAM_CONVERSATION=Select the name of the new Seam Conversation. A new Java interface and SLSB
SEAM_RUNTIME_LIST_FIELD_EDITOR_PARENT_CONTROL_SHOULD_BE_COMPOSITE=Parent control should be Composite
SEAM_RUNTIME_LIST_FIELD_EDITOR_EDITOR_SUPPORTS_ONLY_GRID_LAYOUT=Editor supports only grid layout
SEAM_RUNTIME_LIST_FIELD_EDITOR_CANNOT_OBTAIN_SEAM_VERSION_NUMBER=Cannot obtain Seam version number from jboss-seam.jar file.
-SEAM_ACTION_WIZARD_PAGE1_WITH_KEY_SEAM_EJB_ANNOTATIONS_WILL_BE_CREATED=with key Seam/EJB annotations will be created.
SEAM_INSTALL_WIZARD_PAGE_SESSION_BEAN_PACKAGE_NAME=Session Bean Package Name:
SEAM_CONVERSATION_WIZARD_ENTITY_CREATING_OPERATION=Entity creating operation
-SEAM_CONVERSATION_WIZARD_PAGE1_MANAGING_A_CONVERSATION_WILL_BE_CREATED=managing a coversation will be created.
-SEAM_PROJECT_WIZARD_PAGE1_PROJECT_MUST_BE_WRITABLE=Project must be writable
-SEAM_PROJECT_WIZARD_PAGE1_SELECT_NEW_FILE_CONTAINER=Select new file container
-SEAM_PROJECT_WIZARD_PAGE1_FILE_CONTAINER_MUST_EXIST=File container must exist
SEAM_RUNTIME_LIST_FIELD_EDITOR_INPUTELEMENT_MUST_BE=inputElement must be
SEAM_RUNTIME_LIST_FIELD_EDITOR_NAME_CANNOT_BE_EMPTY=Name cannot be empty
SEAM_RUNTIME_LIST_FIELD_EDITOR_CANNOT_READ_JAR_FILE=Cannot read jboss-seam.jar file
SEAM_RUNTIME_LIST_FIELD_EDITOR_CANNOT_FIND_JBOSS_SEAM_JAR=Cannot find jboss-seam.jar file
-SEAM_PROJECT_WIZARD_PAGE1_FILE_EXTENSION_MUST_BE_MPE=File extension must be "mpe"
SEAM_RUNTIME_LIST_FIELD_EDITOR_AN_INSTANCEOF_OF_LIST=an instance of List<SeamRuntime>.
SEAM_RUNTIME_LIST_FIELD_EDITOR_CREATE_A_SEAM_RUNTIME=Create a Seam Runtime
SEAM_RUNTIME_LIST_FIELD_EDITOR_MODIFY_SEAM_RUNTIME=Input new values
SEAM_BASE_WIZARD_OPERATION_IS_NOT_DEFINED_FOR_WIZARD=Operation is not defined for wizard
SEAM_INSTALL_WIZARD_PAGE_ENTITY_BEAN_PACKAGE_NAME=Entity Bean Package Name:
-SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME_MUST_BE_VALID=File name must be valid
SEAM_VIEW_LAYOUT_ACTION_GROUP_SCOPE_PRESENTATION=Scope Presentation
SEAM_CONVERSATION_WIZARD_CREATE_NEW_CONVERSATION=Create New Conversation
SEAM_CONVERSATION_WIZARD_PAGE1_SEAM_CONVERSATION=Seam Conversation
@@ -76,15 +60,12 @@
SEAM_ENTITY_WIZARD_PAGE1_ENTITY_CLASS_NAME=Entity class name
SEAM_INSTALL_WIZARD_PAGE_SEAM_FACET=Seam Facet
SEAM_VIEW_LAYOUT_ACTION_GROUP_LABEL=Label
-SEAM_PROJECT_WIZARD_PAGE1_CONTAINER=&Container:
-SEAM_PROJECT_WIZARD_PAGE1_FILE_NAME=&File name:
SEAM_PROJECT_WIZARD_NEW_SEAM_PROJECT=New Seam Project
SEAM_PROJECT_WIZARD_SEAM_WEB_PROJECT=Seam Web Project
SEAM_PROJECT_WIZARD_EAR_MEMBERSHIP=EAR Membership
SEAM_RUNTIME_LIST_FIELD_EDITOR_NAME=Name
SEAM_RUNTIME_LIST_FIELD_EDITOR_PATH=Path
SEAM_INSTALL_WIZARD_PAGE_GENERAL=General
-SEAM_PROJECT_WIZARD_PAGE1_BROWSE=Browse...
SEAM_GENERATE_ENTITIES_WIZARD_54=org.hibernate.eclipse.launch.SeamUtil
SEAM_WIZARD_FACTORY_SEAM_PROJECT=Seam Project:
SEAM_INSTALL_WIZARD_PAGE_DATABASE=Database
@@ -100,7 +81,6 @@
SEAM_WIZARD_FACTORY_BEAN_NAME=Bean name:
SEAM_WIZARD_FACTORY_PAGE_NAME=Page name:
SEAM_WIZARD_FACTORY_PACKAGE_NAME=Package name:
-SEAM_ENTITY_WIZARD_PAGE1_LIST=List
SEAM_ENTITY_WIZARD_PAGE1_PAGE=Page
SEAM_FORM_WIZARD_NEW_SEAM_FORM=New Seam Form
SEAM_FORM_WIZARD_PAGE1_SEAM_FORM=Seam Form
@@ -116,7 +96,6 @@
SEAM_ACTION_WIZARD_ACTION_CREATING_OPERATION=Action creating operation
SEAM_RUNTIME_LIST_FIELD_EDITOR_NAME2=Name:
SEAM_WIZARD_FACTORY_MASTER_PAGE_NAME=Master page name:
-SEAM_ENTITY_WIZARD_PAGE1_SEAM_ENTITY=Seam Entity
SEAM_ENTITY_WIZARD_NEW_SEAM_ENTITY=New Seam Entity
SEAM_INSTALL_WIZARD_PAGE_ADD=Add...
CREATE_PROJECT_ACTION_UNABLE_TO_CREATE_WIZARD=Unable to create wizard '
@@ -163,13 +142,9 @@
VALIDATOR_FACTORY_PROJECT_ALREADY_EXISTS=' already exists. Please select other name for new Seam project.
VALIDATOR_FACTORY_SEAM_RT_NOT_CONFIGURED=Seam Runtime is not configured for selected Seam Web Project
VALIDATOR_INVALID_SETTINGS=Selected seam project has some invalid settings. Please press "Settings..." and correct them.
-SEAM_PROJECT_WIZARD_PAGE1_FILE_CONTAINER_MUST_BE_SPECIFIED=File container must be specified
SEAM_RUNTIME_LIST_FIELD_EDITOR_RUNTIME_NAME_IS_NOT_CORRECT=Runtime name is not correct
SEAM_GENERATE_ENTITIES_WIZARD_CAN_NOT_GENERATE_SEAM_ENTITIES=Can't generate seam entities
-SEAM_FORM_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_NEW_SEAM_FORM=Select the name of the new Seam Form. A new Seam Form with a single input field and related
-SEAM_ENTITY_WIZARD_PAGE1_SELECT_THE_NAME_OF_NEW_SEAM_ENTITY=Select the name of the new Seam Entity. A new Seam Entity Bean with key Seam/EJB3
SEAM_UI_IMAGESBASE_URL_FOR_IMAGE_REGISTRY_CANNOT_BE_NULL=Base url for image registry cannot be null.
-SEAM_PROJECT_WIZARD_PAGE1_THIS_WIZARD_CREATES_A_NEW_FILE=This wizard creates a new file with *.mpe extension that can be opened by a multi-page editor.
SEAM_GENERATE_ENTITIES_WIZARD_ACTION_CREATING_OPERATION=Action creating operation
SEAM_GENERATE_ENTITIES_WIZARD_CAN_NOT_FIND_SEAM_RUNTIME=Can't find seam runtime for project
ABSTRACT_SEAM_CONTENT_PROVIDER_SEAM_PROJECT_CHANGE_EVENT_OCCURS_BUT_NO_SORCE_OF_PROJECT_PROVIDED=Seam Project change event occurs, but no soyrce of project provided
@@ -191,11 +166,7 @@
COMPOSITE_EDITOR_EDITOR_SUPPORTS_ONLY_GRID_LAYOUT=Editor supports only grid layout
COMPOSITE_EDITOR_THIS_METOD_CAN_BE_INVOKED=This metod can be invoked after getEditorControls(parent) only
SEAM_RUNTIME_LIST_FIELD_EDITOR_PATH_TO_SEAM_HOME_DIRECTORY_CANNOT_BE_EMPTY=Path to seam home directory cannot be empty
-SEAM_CONVERSATION_WIZARD_PAGE1_SELECT_THE_NAME_OF_THE_NEW_SEAM_CONVERSATION=Select the name of the new Seam Conversation. A set of classes
-SEAM_ENTITY_WIZARD_PAGE1_ANNOTATIONS_AND_EXAMPLES_ATTRIBUTES_WILL_BE_CREATED=annotations and wxample attributes will be created.
SEAM_RUNTIME_LIST_FIELD_EDITOR_THE_SELECTED_SEAM_APPEARS_TO_BE_OF_INCOMATIBLE_VERSION=The selected seam appears to be of an incompatible version '
-SEAM_GENERATE_ENTITIES_WIZARD_THIS_METHOD_IS_NOT_RELEVANT_IN_GENERATING_SEAM_ENTITIES=This method is not relevant in generating seam entities.
-SEAM_FORM_WIZARD_PAGE1_JAVA_INTERFACE_SLSB_AND_KEY_SEAMEJB3_ANNOTATIONS_WILL_BE_CREATED=Java Interface, SLSB and key Seam/EJB3 annotations will be created.
SEAM_TARGET_SERVER=Target Server
RUNTIME_DELETE_CONFIRM_TITLE=Confirm Runtime Delete
RUNTIME_DELETE_NOT_USED_CONFIRM=Are you sure you want to delete runtime ''{0}''?
@@ -210,17 +181,13 @@
FIND_DECLARATIONS_ACTION_ACTION_NAME=Find Seam Declarations
FIND_DECLARATIONS_ACTION_DESCRIPTION=Find Seam Declarations
FIND_DECLARATIONS_ACTION_TOOL_TIP=Find Seam Declarations
-FIND_DECLARATIONS_ACTION_MESSAGE=&Choose a name of the seam variable or pattern (? = any character, * = any string):
FIND_REFERENCES_ACTION_ACTION_NAME=Find Seam References
FIND_REFERENCES_ACTION_DESCRIPTION=Find Seam References
FIND_REFERENCES_ACTION_TOOL_TIP=Find Seam References
-FIND_REFERENCES_ACTION_MESSAGE=&Choose a name of the seam variable or pattern (? = any character, * = any string):
VIEW_FOLDER_FILED_EDITOR=View Folder:
SELECT_WORKSPACE_FOLDER_DIALOG_TITLE=Folder Selection
SELECT_WORKSPACE_FOLDER_DIALOG_MESSAGE=&Chose a folder
-SeamSearchQuery_task_label=Searching for ''{0}''...
SeamSearchQuery_label=Seam {0} Search
-SeamSearchQuery_error_unsupported_pattern=Unsupported search pattern: "{0}"
# The first argument will be replaced by the pattern, the second by the scope, last by limitTo patterns
SeamSearchQuery_singularPatternWithLimitTo= ''{0}'' - 1 match in {1} ({2})
# The first argument will be replaced by the pattern, the second by the count and the third by the scope, last by limitTo patterns
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2009-04-02 15:08:38 UTC (rev 14461)
@@ -41,12 +41,6 @@
public static String SEAM_PREFERENCE_PAGE_SEAM_RUNTIMES;
- public static String SEAM_SETTINGS_PREFERENCE_PAGE_ADD;
-
- public static String SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES;
-
- public static String SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME;
-
public static String SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED;
public static String SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_DOES_NOT_EXIST;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2009-04-02 15:08:38 UTC (rev 14461)
@@ -88,11 +88,8 @@
SEAM_SETTINGS_PREFERENCES_PAGE_TEST=Test
SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT=Test Project\:
-SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME=Runtime
SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED=Seam runtime is not selected
-SEAM_SETTINGS_PREFERENCE_PAGE_ADD=Add
SEAM_PREFERENCE_PAGE_SEAM_RUNTIMES=Seam Runtimes
-SEAM_SETTINGS_PREFERENCE_PAGE_INSTALLED_RUNTIMES=Installed Runtimes
SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_DOES_NOT_EXIST=Runtime "{0}" does not exist.
SEAM_SETTINGS_PREFERENCE_PAGE_EJB_PROJECT_DOES_NOT_EXIST=Seam EJB project "{0}" does not exist.
SEAM_SETTINGS_PREFERENCE_PAGE_VIEW_FOLDER_DOES_NOT_EXIST=View Folder "{0}" does not exist.
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java 2009-04-02 15:08:38 UTC (rev 14461)
@@ -17,14 +17,12 @@
public static String PAGESDIAGRAM_SELECT;
public static String PAGESDIAGRAM_MARQUEE;
- public static String PAGESDIAGRAM_CREATE_NEW_CONNECTION;
public static String SEAM_UI_PAGES_PLUGIN_NO_MESSAGES;
public static String PAGES_DIAGRAM_VIEW_TEMPLATE;
public static String PAGES_DIAGRAM_EXCEPTION_TEMPLATE;
public static String SEAM_PAGES_EDITOR_TITLE;
- public static String SEAM_PAGES_EDITOR_SOURCE_TAB;
public static String SEAM_PAGES_EDITOR_DIAGRAM_TAB;
public static ResourceBundle getResourceBundle() {
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties 2009-04-02 15:07:42 UTC (rev 14460)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties 2009-04-02 15:08:38 UTC (rev 14461)
@@ -1,10 +1,8 @@
SEAM_UI_PAGES_PLUGIN_NO_MESSAGES=
PAGESDIAGRAM_SELECT=Select
PAGESDIAGRAM_MARQUEE=Marquee
-PAGESDIAGRAM_CREATE_NEW_CONNECTION=Create New Connection
SEAM_PAGES_EDITOR_TITLE=Seam Pages Editor
-SEAM_PAGES_EDITOR_SOURCE_TAB=Source
SEAM_PAGES_EDITOR_DIAGRAM_TAB=Graphical
PAGES_DIAGRAM_VIEW_TEMPLATE=Add Page
PAGES_DIAGRAM_EXCEPTION_TEMPLATE=Add Exception
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14460 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2009-04-02 11:07:42 -0400 (Thu, 02 Apr 2009)
New Revision: 14460
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
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:
https://jira.jboss.org/jira/browse/JBIDE-4044
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2009-04-02 15:07:32 UTC (rev 14459)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2009-04-02 15:07:42 UTC (rev 14460)
@@ -269,7 +269,7 @@
textEditor = createTextEditor();
try {
int index = addPage((IEditorPart)textEditor, getEditorInput());
- setPageText(index, "Source");
+ setPageText(index, ObjectMultiPageEditorMessages.PAGES_EDITOR_SOURCE_TAB);
textEditor.setObject(object);
textEditor.addFocusListener(new TextFocusListener());
outline.addSelectionChangedListener(new OutlineSelectionListener());
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-02 15:07:32 UTC (rev 14459)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.java 2009-04-02 15:07:42 UTC (rev 14460)
@@ -10,27 +10,36 @@
******************************************************************************/
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
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
*/
public class ObjectMultiPageEditorMessages {
- private static ResourceBundle bundle = ResourceBundle
- .getBundle("org.jboss.tools.common.editor.ObjectMultiPageEditorMessages"); //$NON-NLS-1$
+ private static final String BUNDLE_NAME = "org.jboss.tools.common.editor.ObjectMultiPageEditorMessages"; //$NON-NLS-1$
- private ObjectMultiPageEditorMessages() {}
+ private static ResourceBundle fResourceBundle;
+ static {
+ // load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, ObjectMultiPageEditorMessages.class);
+ }
- public static String getString( String key ) {
+ public static String PAGES_EDITOR_SOURCE_TAB;
+
+ public static ResourceBundle getResourceBundle() {
try {
- return bundle.getString( key );
- } catch ( MissingResourceException e ) {
- return "!!!" + key + "!!!"; //$NON-NLS-1$ //$NON-NLS-2$
+ 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-02 15:07:32 UTC (rev 14459)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditorMessages.properties 2009-04-02 15:07:42 UTC (rev 14460)
@@ -1,2 +1,3 @@
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: r14459 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl: src/org/jboss/tools/jsf/vpe/jstl/template/util and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-02 11:07:32 -0400 (Thu, 02 Apr 2009)
New Revision: 14459
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/JstlXOutTemplate.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/util/Jstl.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/templates/vpe-templates-jstl.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3548, x:out was corrected, junit test was corrected, plugin.properties was added to src build in a4j junit tests' plugin.
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/JstlXOutTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/JstlXOutTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/JstlXOutTemplate.java 2009-04-02 15:07:32 UTC (rev 14459)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jstl.template;
+
+import org.jboss.tools.jsf.vpe.jstl.template.util.Jstl;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VisualDomUtil;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * Class for jstl x:out template
+ *
+ * @author dmaliarevich
+ *
+ */
+public class JstlXOutTemplate extends VpeAbstractTemplate {
+
+ public JstlXOutTemplate() {
+ super();
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ Element sourceElement = (Element) sourceNode;
+ String select = sourceElement.getAttribute(Jstl.ATTR_SELECT);
+ nsIDOMElement span = VisualDomUtil
+ .createBorderlessContainer(visualDocument);
+ nsIDOMText text = visualDocument.createTextNode(select);
+ span.appendChild(text);
+ VpeCreationData creationData = new VpeCreationData(span);
+
+ return creationData;
+ }
+
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/JstlXOutTemplate.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/util/Jstl.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/util/Jstl.java 2009-04-02 15:07:24 UTC (rev 14458)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/src/org/jboss/tools/jsf/vpe/jstl/template/util/Jstl.java 2009-04-02 15:07:32 UTC (rev 14459)
@@ -31,4 +31,6 @@
public static final String TAG_OUT = "out"; //$NON-NLS-1$
public static final String ATTR_URL = "url"; //$NON-NLS-1$
+
+ public static final String ATTR_SELECT = "select"; //$NON-NLS-1$
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/templates/vpe-templates-jstl.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/templates/vpe-templates-jstl.xml 2009-04-02 15:07:24 UTC (rev 14458)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jstl/templates/vpe-templates-jstl.xml 2009-04-02 15:07:32 UTC (rev 14459)
@@ -199,7 +199,7 @@
<vpe:tag name="x:out" case-sensitive="yes">
<vpe:template children="no" modify="no"
- class="org.jboss.tools.jsf.vpe.jstl.template.JstlOutTemplate">
+ class="org.jboss.tools.jsf.vpe.jstl.template.JstlXOutTemplate">
<vpe:textFormatting use-default-formats="yes">
</vpe:textFormatting>
</vpe:template>
15 years, 9 months
JBoss Tools SVN: r14458 - in trunk/jsf/tests: org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-04-02 11:07:24 -0400 (Thu, 02 Apr 2009)
New Revision: 14458
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3548, x:out was corrected, junit test was corrected, plugin.properties was added to src build in a4j junit tests' plugin.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/build.properties 2009-04-02 13:50:47 UTC (rev 14457)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/build.properties 2009-04-02 15:07:24 UTC (rev 14458)
@@ -12,4 +12,5 @@
META-INF/,\
build.properties,\
plugin.xml,\
- about.html
+ about.html,\
+ plugin.properties
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp 2009-04-02 13:50:47 UTC (rev 14457)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp 2009-04-02 15:07:24 UTC (rev 14458)
@@ -11,20 +11,10 @@
<h1>c:import</h1>
<c:import url="books.xml" var="url" />
-----------------------------------------------<br>
- <h1>x:parse</h1>
<x:parse xml="${url}" var="doc" />
-
- <h1>x:forEach & x:out</h1>
- <x:forEach var="n" select="$doc/books/book">
- <x:out select="$n/title" id="id1"/>
- <br>
- <x:out select="$n/author" />
- <br>
- ========
- <br>
- </x:forEach>
-
+
<h1>x:out</h1>
- <x:out select="$doc/books" id="id2"/>
+ <x:out select="$doc/books" id="id1"/>
+
</body>
</html>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp.xml 2009-04-02 13:50:47 UTC (rev 14457)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/resources/jstlTests/WebContent/pages/components/xOut.jsp.xml 2009-04-02 15:07:24 UTC (rev 14458)
@@ -1,6 +1,7 @@
<tests>
<test id="id1">
<SPAN CLASS="vpe-text">
- </SPAN>
+ $doc/books
+ </SPAN>
</test>
</tests>
\ No newline at end of file
15 years, 9 months
JBoss Tools SVN: r14457 - trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2009-04-02 09:50:47 -0400 (Thu, 02 Apr 2009)
New Revision: 14457
Modified:
trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.properties
Log:
JBIDE-4044 Review unused strings from Messages classes as reported by UCDetector
The Wrong message with the duplicate key has removed from the Messages bundle used in FilterNameHyperlink.
Modified: trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.properties 2009-04-02 12:41:29 UTC (rev 14456)
+++ trunk/common/plugins/org.jboss.tools.common.text.ext/src/org/jboss/tools/common/text/ext/hyperlink/xpl/Messages.properties 2009-04-02 13:50:47 UTC (rev 14457)
@@ -17,7 +17,6 @@
BrowseToFilterNameDefinition=Browse to ''filter-name'' definition
BrowseToRoleNameDefinition=Browse to ''role-name'' definition
BrowseToServletNameDefinition=Browse to ''servlet-name'' definition
-BrowseToFilterNameDefinition=Browse to TLD Attribute Name declaration
Open=Open ''{0}''
OpenA=Open a {0}
OpenAn=Open an {0}
15 years, 9 months
JBoss Tools SVN: r14456 - trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-04-02 08:41:29 -0400 (Thu, 02 Apr 2009)
New Revision: 14456
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java
Log:
JBIDE-3968
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java 2009-04-02 12:39:55 UTC (rev 14455)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.jpt.core.test/src/org/jboss/tools/hibernate/jpt/core/test/HibernateJPACoreTests.java 2009-04-02 12:41:29 UTC (rev 14456)
@@ -79,11 +79,25 @@
*/
public class HibernateJPACoreTests extends TestCase {
+ /**
+ * annotated class name
+ */
public static final String className = "TestPTR"; //$NON-NLS-1$
+ /**
+ * annotated package name
+ */
public static final String packageName = "org.test"; //$NON-NLS-1$
+ /**
+ * fully qualified name of annotated class
+ */
public static final String classFullName = packageName + "." + className; //$NON-NLS-1$
+ /**
+ * annotated java file name
+ */
public static final String javaFileName = className + ".java"; //$NON-NLS-1$
-
+ /**
+ * content of annotated java file
+ */
public static final String strJava = "package " + packageName + ";\n" + //$NON-NLS-1$ //$NON-NLS-2$
"import javax.persistence.*;\n" + //$NON-NLS-1$
"import org.hibernate.annotations.GenericGenerator;\n" + //$NON-NLS-1$
@@ -100,6 +114,9 @@
"public Short getId_Article(){return id_Article;}\n" + //$NON-NLS-1$
"public Short getId_Article2(){return id_Article2;}\n" + //$NON-NLS-1$
"}\n"; //$NON-NLS-1$
+ /**
+ * content of .classpath file
+ */
public static final String strClassPath = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + //$NON-NLS-1$
"<classpath>\n" + //$NON-NLS-1$
"<classpathentry kind=\"src\" path=\"src\"/>\n" + //$NON-NLS-1$
@@ -108,17 +125,29 @@
"<classpathentry kind=\"output\" path=\"bin\"/>\n" + //$NON-NLS-1$
"</classpath>\n"; //$NON-NLS-1$
+
public Mockery context = new Mockery() {
{
setImposteriser(ClassImposteriser.INSTANCE);
}
};
+ /**
+ * mock hibernate factory, redefine some methods of base GenericJpaFactory
+ * to avoid unnecessary checks, which are not a subject of testing.
+ */
public class MockHibernateFactory extends HibernateFactory {
+ /**
+ * during the testing our file has relevant content,
+ * so just return true without dig into the base code.
+ */
public boolean hasRelevantContent(IFile file) {
return true;
}
-
+ /**
+ * just build resource model from JavaCore.JAVA_SOURCE_CONTENT_TYPE
+ * all base code checks are unnecessary.
+ */
public ResourceModel buildResourceModel(JpaProject jpaProject,
IFile file) {
return buildResourceModel(jpaProject, file,
@@ -126,6 +155,10 @@
}
}
+ /**
+ * mock hibernate platform to get MockHibernateFactory
+ * instead of HibernateFactory
+ */
public class MockHibernatePlatform extends HibernatePlatform {
protected JpaFactory buildJpaFactory() {
JpaFactory jpaFactory = super.buildJpaFactory();
@@ -134,6 +167,9 @@
}
}
+ /**
+ * mock input stream to simulate javaFileName file reading
+ */
public class MockJavaInputStream extends InputStream {
protected int pointer = 0;
@@ -147,6 +183,9 @@
}
}
+ /**
+ * mock input stream to simulate .classpath file reading
+ */
public class MockClassPathInputStream extends InputStream {
protected int pointer = 0;
@@ -160,12 +199,21 @@
}
}
- public void testMockSave() throws CoreException, IOException {
+ /**
+ * The general goal of this test is cover org.jboss.tools.hibernate.jpt.core
+ * plugin functionality, it doesn't test org.eclipse.jdt functionality,
+ * so here all org.eclipse.jdt internal objects substituted with mock values.
+ *
+ * @throws CoreException
+ * @throws IOException
+ */
+ public void testMockJPTCore() throws CoreException, IOException {
+ // define/prepare mock objects for testing
final JpaPlatform jpaPlatform = new MockHibernatePlatform();
final String hibernatePlatformId = jpaPlatform.getId();
assertTrue(HibernatePlatform.ID.equals(hibernatePlatformId));
-
+ //
final JpaProject jpaProject = context.mock(JpaProject.class);
final IProject project = context.mock(IProject.class);
final IFile file = context.mock(IFile.class);
@@ -183,6 +231,8 @@
final XmlPersistenceUnit xmlPersistenceUnit = context
.mock(XmlPersistenceUnit.class);
final InternalEObject owner = xmlPersistenceUnit;
+ // setup expectations to mock model notifications during
+ // EList<XmlJavaClassRef> classes - value insertion
context.checking(new Expectations() {
{
oneOf(owner).eNotificationRequired();
@@ -199,6 +249,7 @@
final XmlJavaClassRef xmlJavaClassRef1 = PersistenceFactory.eINSTANCE
.createXmlJavaClassRef();
xmlJavaClassRef1.setJavaClass(testClassName);
+ // insert testClass into classes list
classes.add(xmlJavaClassRef1);
final EList<XmlMappingFileRef> mappingFiles = new EObjectContainmentEList<XmlMappingFileRef>(
XmlMappingFileRef.class, xmlPersistenceUnit,
@@ -206,29 +257,29 @@
final List<String> annotatedClassNamesList = new ArrayList<String>();
final Iterator<String> annotatedClassNames = annotatedClassNamesList
.iterator();
-
+ //
final JavaResourcePersistentType javaResourcePersistentType = context
.mock(JavaResourcePersistentType.class);
-
+ //
final List<JavaResourcePersistentAttribute> resourceAttributesList1 = new ArrayList<JavaResourcePersistentAttribute>();
-
+ //
final List<JavaResourcePersistentAttribute> resourceAttributesList2 = new ArrayList<JavaResourcePersistentAttribute>();
final JDTFieldAttribute jdtFieldAttribute = new JDTFieldAttribute(null,
"", 1, null, null); //$NON-NLS-1$
final JavaResourcePersistentAttribute jrpa1 = new JavaResourcePersistentAttributeImpl(
javaResourcePersistentType, jdtFieldAttribute);
resourceAttributesList2.add(jrpa1);
-
+ //
final GenericGeneratorAnnotationImpl genericGeneratorAnnotation = new GenericGeneratorAnnotationImpl(
javaResourcePersistentType, null);
-
+ //
final InputStream classPathIStream = new MockClassPathInputStream();
final InputStream javaIStream = new MockJavaInputStream();
-
+ //
final IPath pathProject = new Path(""); //$NON-NLS-1$
-
+ //
final IPath pathJavaFile = new Path(javaFileName);
-
+ // define/check jpaPlatform.buildJpaFile expectations
context.checking(new Expectations() {
{
@@ -294,27 +345,33 @@
will(returnValue(null));
}
});
+ // setup JptCorePlugin preferences:
+ // a) setup hibernate as default jpa platform
JptCorePlugin.setDefaultJpaPlatformId(hibernatePlatformId);
+ // b) setup hibernate as jpa platform for project
JptCorePlugin.setJpaPlatformId(project, hibernatePlatformId);
-
+ // FIRST TEST:
+ // try to build jpa file using hibernate jpa platform
final JpaFile jpaFile = jpaPlatform.buildJpaFile(jpaProject, file);
-
+ //
+ // define/prepare mock objects for further testing
final JpaCompilationUnit jpaCompilationUnit = context
.mock(JpaCompilationUnit.class);
final JpaAnnotationProvider jpaAnnotationProvider = new HibernateJpaAnnotationProvider();
-
+ //
final IProjectFacetActionEvent projectFacetActionEvent = context
.mock(IProjectFacetActionEvent.class);
final IFacetedProject facetedProject = context
.mock(IFacetedProject.class);
final IProjectFacet projectFacet = context.mock(IProjectFacet.class);
-
+ // define/check jpaPlatform.getJpaFactory().buildPersistenceUnit,
+ // pu.update and jpaPostInstallFasetListener.handleEvent expectations
context.checking(new Expectations() {
{
allowing(xmlPersistenceUnit).getName();
- will(returnValue("xmlPUName")); //$NON-NLS-1$
+ will(returnValue(className));
- oneOf(xmlPersistenceUnit).setName("xmlPUName"); //$NON-NLS-1$
+ oneOf(xmlPersistenceUnit).setName(className);
allowing(xmlPersistenceUnit).getClasses();
will(returnValue(classes));
@@ -487,17 +544,24 @@
will(returnValue(JptCorePlugin.FACET_ID));
}
});
-
+ // SECOND TEST:
+ // build pu via hibernate jpa factory
PersistenceUnit pu = jpaPlatform.getJpaFactory().buildPersistenceUnit(
persistence, xmlPersistenceUnit);
+ // THIRD TEST:
+ // update persistence unit and check number of class refs
int classRefSizeOld = pu.classRefsSize();
pu.update(xmlPersistenceUnit);
int classRefSizeNew = pu.classRefsSize();
+ // check is the old number of ref classes remain the same after
+ // pu.update call - should be the same
assertTrue(classRefSizeOld == classRefSizeNew);
-
+ // FOURTH TEST:
+ // check for handleEvent of JPAPostInstallFasetListener
JPAPostInstallFasetListener jpaPostInstallFasetListener = new JPAPostInstallFasetListener();
jpaPostInstallFasetListener.handleEvent(projectFacetActionEvent);
-
+ // GENERAL TEST:
+ // check for all expectations
context.assertIsSatisfied();
}
15 years, 9 months