Author: mareshkau
Date: 2011-02-15 06:33:10 -0500 (Tue, 15 Feb 2011)
New Revision: 29155
Added:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolution.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolutionGenerator.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nValidationComponent.java
Log:
https://issues.jboss.org/browse/JBIDE-7003, fix compilation errors.
Added:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolution.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolution.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolution.java 2011-02-15
11:33:10 UTC (rev 29155)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2011 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.jsf.web.validation.i18n;
+
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.ui.IMarkerResolution;
+
+/**
+ *
+ * @author mareshkau
+ *
+ */
+public class I18nMarkerResolution implements IMarkerResolution {
+
+ public I18nMarkerResolution(IMarker marker) {
+ // TODO Auto-generated constructor stub
+ }
+
+ public String getLabel() {
+ // TODO Auto-generated method stub
+ return "";
+ }
+
+ public void run(IMarker marker) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolutionGenerator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolutionGenerator.java 2011-02-15
10:15:10 UTC (rev 29154)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nMarkerResolutionGenerator.java 2011-02-15
11:33:10 UTC (rev 29155)
@@ -24,10 +24,9 @@
/* (non-Javadoc)
* @see
org.eclipse.ui.IMarkerResolutionGenerator#getResolutions(org.eclipse.core.resources.IMarker)
*/
- @Override
public IMarkerResolution[] getResolutions(IMarker marker) {
- // TODO Auto-generated method stub
- return null;
+ I18nMarkerResolution i18nMarkerResolution = new I18nMarkerResolution(marker);
+ return new IMarkerResolution[]{i18nMarkerResolution};
}
}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nValidationComponent.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nValidationComponent.java 2011-02-15
10:15:10 UTC (rev 29154)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/i18n/I18nValidationComponent.java 2011-02-15
11:33:10 UTC (rev 29155)
@@ -37,19 +37,19 @@
}
- @Override
+
public String getType() {
// TODO Auto-generated method stub
return null;
}
- @Override
+
public String getComponentResourceLocation() {
// TODO Auto-generated method stub
return null;
}
- @Override
+
public void createValidationMessage() {
setValidationMessage("Non externalized String literal; It should be moved to
resource bundles.");
}