Author: vrubezhny
Date: 2010-12-21 10:08:11 -0500 (Tue, 21 Dec 2010)
New Revision: 27638
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/IKBBuilderRequiredNature.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
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_ja.properties
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties
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.core/src/org/jboss/tools/seam/core/messages_ja.properties
Log:
JBIDE-7945
KB Builder warning is confusing
Problem marker description and locations are fixed due to be more informative
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreMessages.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -34,4 +34,5 @@
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE;
public static String CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION;
public static String CDI_UTIL_BUILD_CDI_MODEL;
+ public static String CDI_NATURE_DESCRIPTION;
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/CDICoreNature.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -31,9 +31,10 @@
import org.jboss.tools.common.model.XJob;
import org.jboss.tools.common.model.XJob.XRunnable;
import org.jboss.tools.common.util.FileUtil;
+import org.jboss.tools.jst.web.kb.internal.IKBBuilderRequiredNature;
import org.jboss.tools.jst.web.kb.internal.validation.ProjectValidationContext;
-public class CDICoreNature implements IProjectNature {
+public class CDICoreNature implements IProjectNature, IKBBuilderRequiredNature {
public static String NATURE_ID = "org.jboss.tools.cdi.core.cdinature";
IProject project = null;
@@ -329,4 +330,12 @@
}
return validationContext;
}
+
+ public boolean isKBBuilderRequired() {
+ return true;
+ }
+
+ public String getNatureDescription() {
+ return CDICoreMessages.CDI_NATURE_DESCRIPTION;
+ }
}
\ No newline at end of file
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/messages.properties 2010-12-21
15:08:11 UTC (rev 27638)
@@ -8,4 +8,5 @@
RENAME_NAMED_BEAN_PROCESSOR_ERROR=This is not a @Named Bean
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_FILE=Named Bean does not have a file
CDI_RENAME_PROCESSOR_BEAN_HAS_NO_NAME_LOCATION=Named Bean does not have a name location
-CDI_UTIL_BUILD_CDI_MODEL=Build CDI Model
\ No newline at end of file
+CDI_UTIL_BUILD_CDI_MODEL=Build CDI Model
+CDI_NATURE_DESCRIPTION=CDI
\ No newline at end of file
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 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/JSFUIMessages.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -148,6 +148,7 @@
public static String Refactoring_JSF_2_Changes_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Composite_Component;
public static String Refactoring_JSF_2_Rename_Attr_Ref_Decl;
+ public static String JSFNatureDescription;
static {
// load message values from bundle file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages_ja.properties
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages_ja.properties 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/messages/messages_ja.properties 2010-12-21
15:08:11 UTC (rev 27638)
@@ -62,3 +62,4 @@
LIBRARY_SETS=\u30E9\u30A4\u30D6\u30E9\u30EA\u30FC\u30FB\u30BB\u30C3\u30C8
CONFIGURATION_FILE_ADDITIONS=Configuration File Additions
DELETE_JAVA_SOURCE=Delete Java Source
+JSFNatureDescription=JSF
\ No newline at end of file
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.java 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -26,7 +26,10 @@
public static String VALIDATION_CONTEXT_VARIABLE_NAME_MUST_NOT_BE_NULL;
public static String KBNATURE_NOT_FOUND;
public static String KBBUILDER_NOT_FOUND;
+ public static String KBNATURE_SEPARATOR;
+ public static String KBNATURE_LAST_SEPARATOR;
public static String KBPROBLEM;
+ public static String KBPROBLEM_LOCATION;
public static String ENABLE_KB;
public static String ILLEGAL_CONTENTTYPE;
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/KbMessages.properties 2010-12-21
15:08:11 UTC (rev 27638)
@@ -1,9 +1,12 @@
VALIDATION_CONTEXT_LINKED_RESOURCE_PATH_MUST_NOT_BE_NULL=Linked resource path must not be
null\!
VALIDATION_CONTEXT_VARIABLE_NAME_MUST_NOT_BE_NULL=Variable name must not be null\!
-KBNATURE_NOT_FOUND=KB Nature is not installed.
-KBBUILDER_NOT_FOUND=KB Builder is not installed.
-KBPROBLEM=KB Problem: {0} {1} Use Quick Fix to allow JSF Content Assistant and
Validation.
+KBNATURE_NOT_FOUND=Nature
+KBBUILDER_NOT_FOUND=Builder
+KBNATURE_SEPARATOR=,
+KBNATURE_LAST_SEPARATOR=and
+KBPROBLEM= JBoss Tools Knowledge Base problem: {0} is not installed on project. Use Quick
Fix to enable {1} Content Assistant and Validation.
+KBPROBLEM_LOCATION=Project: {0}
ENABLE_KB=Enable JSF CA and validation on this project
ILLEGAL_CONTENTTYPE=Unknown contentType argument value: {0}
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/IKBBuilderRequiredNature.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/IKBBuilderRequiredNature.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/IKBBuilderRequiredNature.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -0,0 +1,25 @@
+ /*******************************************************************************
+ * Copyright (c) 2010 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jst.web.kb.internal;
+
+/**
+ * The interface is used by the nature which are require the KB Nature and Builder
+ * to be installed due to the correct information to be provided for Content Assist
+ * and/or Validation facilities
+ *
+ * @author Jeremy
+ *
+ */
+public interface IKBBuilderRequiredNature {
+ boolean isKBBuilderRequired();
+ String getNatureDescription();
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/IKBBuilderRequiredNature.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
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 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/SeamCoreMessages.java 2010-12-21
15:08:11 UTC (rev 27638)
@@ -63,4 +63,5 @@
public static String SEAM_RENAME_PROCESSOR_COMPONENT_HAS_BROKEN_DECLARATION;
public static String SEAM_RENAME_METHOD_PARTICIPANT_SETTER_WARNING;
public static String SEAM_RENAME_METHOD_PARTICIPANT_GETTER_WARNING;
+ public static String SEAM_NATURE_DESCRIPTION;
}
\ No newline at end of file
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 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages.properties 2010-12-21
15:08:11 UTC (rev 27638)
@@ -41,4 +41,5 @@
SEAM_RENAME_PROCESSOR_ERROR_READ_ONLY_FILE=Cannot change read-only file:
''{0}''.
SEAM_RENAME_PROCESSOR_COMPONENT_HAS_BROKEN_DECLARATION=Declaration of component
''{0}'' is broken.
SEAM_RENAME_METHOD_PARTICIPANT_SETTER_WARNING=Be sure, may be you also should rename
getter method to avoid compilation problems.
-SEAM_RENAME_METHOD_PARTICIPANT_GETTER_WARNING=Be sure, may be you also should rename
setter method to avoid compilation problems.
\ No newline at end of file
+SEAM_RENAME_METHOD_PARTICIPANT_GETTER_WARNING=Be sure, may be you also should rename
setter method to avoid compilation problems.
+SEAM_NATURE_DESCRIPTION=Seam
\ No newline at end of file
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages_ja.properties
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages_ja.properties 2010-12-21
13:51:14 UTC (rev 27637)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/messages_ja.properties 2010-12-21
15:08:11 UTC (rev 27638)
@@ -30,3 +30,4 @@
ERROR_JBOSS_AS_TARGET_RUNTIME_IS_EMPTY=\u30BF\u30FC\u30B2\u30C3\u30C8\u30FB\u30E9\u30F3\u30BF\u30A4\u30E0\u306F\u7A7A\u6B04\u306B\u3067\u304D\u307E\u305B\u3093
ERROR_JBOSS_AS_TARGET_RUNTIME_UNKNOWN=\u4E0D\u660E\u306A\u30BF\u30FC\u30B2\u30C3\u30C8\u30FB\u30E9\u30F3\u30BF\u30A4\u30E0
SEAM_INSTALL_WIZARD_PROJECT_NAME_WITH_UPPERCASE=\u5927\u6587\u5B57\u3067\u59CB\u307E\u308B\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D\u306F\u3001Seam/JSF
\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u4E2D\u65AD\u3055\u305B\u308B\u304B\u3082\u3057\u308C\u307E\u305B\u3093\u3002\u5C0F\u6587\u5B57\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002
+SEAM_NATURE_DESCRIPTION=Seam
\ No newline at end of file