JBoss Tools SVN: r17844 - in workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces: src/org/jboss/tools/jsf/vpe and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-10-01 11:11:15 -0400 (Thu, 01 Oct 2009)
New Revision: 17844
Added:
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractApplicationFactory.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractConfiguration.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractExternalContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractFacesContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletResponse.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpSession.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletOutputStream.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractUIComponent.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeApplicationFactory.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeConfiguration.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeDOMResponseWriter.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeExternalContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeFacesContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletResponse.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpSession.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletOutputStream.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeUIComponent.java
Removed:
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VPEExternalContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeApplicationFactory.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeConfiguration.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeDOMResponseWriter.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeFacesContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletResponse.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpSession.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeRequest.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletContext.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletOutputStream.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeUIComponent.java
Modified:
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/.classpath
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/build.properties
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/IceFacesOutputTextTemplate.java
workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/utill/VpeRendererUtil.java
Log:
Mock object structure has been reorganized, has been created abstract mock objects which contains generated code and extended mock objects which cantaint written code, https://jira.jboss.org/jira/browse/JBIDE-4710
Modified: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/.classpath
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/.classpath 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/.classpath 2009-10-01 15:11:15 UTC (rev 17844)
@@ -3,7 +3,7 @@
<classpathentry exported="true" kind="lib" path="resources/servlet-api.jar"/>
<classpathentry exported="true" kind="lib" path="resources/el-api.jar"/>
<classpathentry exported="true" kind="lib" path="resources/jsp-api.jar"/>
- <classpathentry exported="true" kind="lib" path="resources/jsf-api.jar" sourcepath="/home/mareshkau/Programs/ICEfaces-1.8.1-src.zip"/>
+ <classpathentry exported="true" kind="lib" path="resources/jsf-api.jar" sourcepath="/home/mareshkau/Programs/mojarra-2.0.0-RC-source.zip"/>
<classpathentry exported="true" kind="lib" path="resources/icefaces-facelets.jar"/>
<classpathentry exported="true" kind="lib" path="resources/icefaces.jar" sourcepath="/home/mareshkau/Programs/ICEfaces-1.8.1-src.zip"/>
<classpathentry exported="true" kind="lib" path="resources/icefaces-comps.jar"/>
Modified: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/build.properties
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/build.properties 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/build.properties 2009-10-01 15:11:15 UTC (rev 17844)
@@ -12,3 +12,4 @@
resources/jsp-api.jar,\
resources/el-api.jar,\
resources/servlet-api.jar
+
Modified: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/IceFacesOutputTextTemplate.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/IceFacesOutputTextTemplate.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/IceFacesOutputTextTemplate.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -12,18 +12,17 @@
import javax.faces.render.Renderer;
-import org.jboss.tools.jsf.vpe.icefaces.template.mock.VpeUIComponent;
import org.jboss.tools.jsf.vpe.icefaces.utill.VpeRendererUtil;
+import org.jboss.tools.jsf.vpe.template.mock.impl.VpeUIComponent;
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.VisualDomUtil;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
public class IceFacesOutputTextTemplate extends VpeAbstractTemplate {
@@ -33,38 +32,13 @@
Renderer render = new com.icesoft.faces.renderkit.dom_html_basic.TextRenderer();
VpeUIComponent uiComponent = new VpeUIComponent((Element)sourceNode);
Node result = VpeRendererUtil.processRenderer(render,uiComponent);
- nsIDOMNode resultVisualNode = createVisualNode(result, visualDocument);
+ nsIDOMNode resultVisualNode = VpeRendererUtil.createVisualNode(result, visualDocument);
+ if(resultVisualNode.getNodeType()==Node.TEXT_NODE) {
+ nsIDOMElement domElement = VisualDomUtil.createBorderlessContainer(visualDocument);
+ domElement.appendChild(resultVisualNode);
+ resultVisualNode = domElement;
+ }
return new VpeCreationData(resultVisualNode);
}
-
- private static final nsIDOMNode createVisualNode(Node srcNode,nsIDOMDocument visualDocument){
-
- nsIDOMNode resultNode = null;
- switch(srcNode.getNodeType()) {
- case Node.TEXT_NODE:{
- resultNode = visualDocument.createTextNode(srcNode.getNodeValue());
- break;
- }
- case Node.ELEMENT_NODE:{
- resultNode = visualDocument.createElement(srcNode.getNodeName());
- copyAttributes((Element)srcNode, (nsIDOMElement)resultNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID));
- NodeList chieldNodes = srcNode.getChildNodes();
- for(int i=0;i<chieldNodes.getLength();i++){
- nsIDOMNode chield = createVisualNode(chieldNodes.item(i), visualDocument);
- if(chield!=null) {
- resultNode.appendChild(chield);
- }
- }
- }
- }
- return resultNode;
- }
-
- private static final void copyAttributes(Element srcElement, nsIDOMElement visualElement) {
- NamedNodeMap attributeMap = srcElement.getAttributes();
- for(int i=0; i< attributeMap.getLength();i++){
- Node attr = attributeMap.item(i);
- visualElement.setAttribute(attr.getNodeName(), attr.getNodeValue());
- }
- }
+
}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VPEExternalContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VPEExternalContext.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VPEExternalContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,347 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.security.Principal;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Set;
-
-import javax.faces.context.ExternalContext;
-
-/**
- * @author mareshkau
- *
- */
-public class VPEExternalContext extends ExternalContext {
-
- private static VPEExternalContext instance = new VPEExternalContext();
-
- private VPEExternalContext(){
- //singleton
- }
- public static VPEExternalContext getInstance(){
- return instance;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#dispatch(java.lang.String)
- */
- @Override
- public void dispatch(String arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#encodeActionURL(java.lang.String)
- */
- @Override
- public String encodeActionURL(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#encodeNamespace(java.lang.String)
- */
- @Override
- public String encodeNamespace(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#encodeResourceURL(java.lang.String)
- */
- @Override
- public String encodeResourceURL(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getApplicationMap()
- */
- @Override
- public Map getApplicationMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getAuthType()
- */
- @Override
- public String getAuthType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getContext()
- */
- @Override
- public Object getContext() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getInitParameter(java.lang.String)
- */
- @Override
- public String getInitParameter(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getInitParameterMap()
- */
- @Override
- public Map getInitParameterMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRemoteUser()
- */
- @Override
- public String getRemoteUser() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequest()
- */
- @Override
- public Object getRequest() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestContextPath()
- */
- @Override
- public String getRequestContextPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestCookieMap()
- */
- @Override
- public Map getRequestCookieMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestHeaderMap()
- */
- @Override
- public Map getRequestHeaderMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestHeaderValuesMap()
- */
- @Override
- public Map getRequestHeaderValuesMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestLocale()
- */
- @Override
- public Locale getRequestLocale() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestLocales()
- */
- @Override
- public Iterator getRequestLocales() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestMap()
- */
- @Override
- public Map getRequestMap() {
- // TODO Auto-generated method stub
- return new HashMap();
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestParameterMap()
- */
- @Override
- public Map getRequestParameterMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestParameterNames()
- */
- @Override
- public Iterator getRequestParameterNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestParameterValuesMap()
- */
- @Override
- public Map getRequestParameterValuesMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestPathInfo()
- */
- @Override
- public String getRequestPathInfo() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getRequestServletPath()
- */
- @Override
- public String getRequestServletPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getResource(java.lang.String)
- */
- @Override
- public URL getResource(String arg0) throws MalformedURLException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getResourceAsStream(java.lang.String)
- */
- @Override
- public InputStream getResourceAsStream(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getResourcePaths(java.lang.String)
- */
- @Override
- public Set getResourcePaths(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getResponse()
- */
- @Override
- public Object getResponse() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getSession(boolean)
- */
- @Override
- public Object getSession(boolean arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getSessionMap()
- */
- @Override
- public Map getSessionMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#getUserPrincipal()
- */
- @Override
- public Principal getUserPrincipal() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#isUserInRole(java.lang.String)
- */
- @Override
- public boolean isUserInRole(String arg0) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#log(java.lang.String)
- */
- @Override
- public void log(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#log(java.lang.String, java.lang.Throwable)
- */
- @Override
- public void log(String arg0, Throwable arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.ExternalContext#redirect(java.lang.String)
- */
- @Override
- public void redirect(String arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeApplicationFactory.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeApplicationFactory.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeApplicationFactory.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import javax.faces.application.Application;
-import javax.faces.application.ApplicationFactory;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeApplicationFactory extends ApplicationFactory {
-
- /* (non-Javadoc)
- * @see javax.faces.application.ApplicationFactory#getApplication()
- */
- @Override
- public Application getApplication() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.application.ApplicationFactory#setApplication(javax.faces.application.Application)
- */
- @Override
- public void setApplication(Application application) {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeConfiguration.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeConfiguration.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeConfiguration.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import com.icesoft.faces.webapp.http.common.Configuration;
-import com.icesoft.faces.webapp.http.common.ConfigurationException;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeConfiguration extends Configuration {
-
- private static VpeConfiguration instance = new VpeConfiguration();
-
- private VpeConfiguration(){
- //singleton
- }
-
- public static VpeConfiguration getInstance(){
- return instance;
- }
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Configuration#getAttribute(java.lang.String)
- */
- @Override
- public String getAttribute(String paramName) throws ConfigurationException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Configuration#getChild(java.lang.String)
- */
- @Override
- public Configuration getChild(String child) throws ConfigurationException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Configuration#getChildren(java.lang.String)
- */
- @Override
- public Configuration[] getChildren(String name)
- throws ConfigurationException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Configuration#getName()
- */
- @Override
- public String getName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Configuration#getValue()
- */
- @Override
- public String getValue() throws ConfigurationException {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeDOMResponseWriter.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeDOMResponseWriter.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeDOMResponseWriter.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.util.Collection;
-
-import javax.faces.context.FacesContext;
-
-import com.icesoft.faces.context.DOMResponseWriter;
-import com.icesoft.faces.context.DOMSerializer;
-import com.icesoft.faces.webapp.http.common.Configuration;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeDOMResponseWriter extends DOMResponseWriter{
-
-
- public VpeDOMResponseWriter(FacesContext context, DOMSerializer serializer,
- Configuration configuration, Collection jsCode, Collection cssCode,
- String blockingRequestHandlerContext) {
- super(context, serializer, configuration, jsCode, cssCode,
- blockingRequestHandlerContext);
- setCursorParent(getDocument().createElement("ROOT")); //$NON-NLS-1$
-
- }
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeFacesContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeFacesContext.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeFacesContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,230 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.util.Iterator;
-
-import javax.faces.FactoryFinder;
-import javax.faces.application.Application;
-import javax.faces.application.FacesMessage;
-import javax.faces.application.FacesMessage.Severity;
-import javax.faces.component.UIViewRoot;
-import javax.faces.context.ExternalContext;
-import javax.faces.context.ResponseStream;
-import javax.faces.context.ResponseWriter;
-import javax.faces.render.RenderKit;
-
-import com.icesoft.faces.context.BridgeFacesContext;
-
-/**
- * Mock object for FacesContext.
- * It's need for using real renders in vpe templates
- *
- * @author mareshkau
- *
- */
-public class VpeFacesContext extends BridgeFacesContext {
-
- private static VpeFacesContext instance;
-
- private static final VpeDOMResponseWriter vpeDOMResponseWriter = new VpeDOMResponseWriter(null, null, null, null, null, null);
-
- private VpeFacesContext() throws Exception{
- //singleton
- super(VpeRequest.getInstance(),null,null,null, VpeConfiguration.getInstance(),null,null,null,null);
- }
-
- public static VpeFacesContext getInstance(){
- if(instance==null) {
- try {
- FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, VpeApplicationFactory.class.getName());
- instance = new VpeFacesContext();
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- return instance;
- }
-
-
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#addMessage(java.lang.String, javax.faces.application.FacesMessage)
- */
- @Override
- public void addMessage(String arg0, FacesMessage arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getApplication()
- */
- @Override
- public Application getApplication() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getClientIdsWithMessages()
- */
- @Override
- public Iterator getClientIdsWithMessages() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getExternalContext()
- */
- @Override
- public ExternalContext getExternalContext() {
- return VPEExternalContext.getInstance();
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getMaximumSeverity()
- */
- @Override
- public Severity getMaximumSeverity() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getMessages()
- */
- @Override
- public Iterator getMessages() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getMessages(java.lang.String)
- */
- @Override
- public Iterator getMessages(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getRenderKit()
- */
- @Override
- public RenderKit getRenderKit() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getRenderResponse()
- */
- @Override
- public boolean getRenderResponse() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getResponseComplete()
- */
- @Override
- public boolean getResponseComplete() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getResponseStream()
- */
- @Override
- public ResponseStream getResponseStream() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getResponseWriter()
- */
- @Override
- public ResponseWriter getResponseWriter() {
-
- return this.vpeDOMResponseWriter;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#getViewRoot()
- */
- @Override
- public UIViewRoot getViewRoot() {
- // TODO Auto-generated method stub
- return new UIViewRoot();
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#release()
- */
- @Override
- public void release() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#renderResponse()
- */
- @Override
- public void renderResponse() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#responseComplete()
- */
- @Override
- public void responseComplete() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#setResponseStream(javax.faces.context.ResponseStream)
- */
- @Override
- public void setResponseStream(ResponseStream arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#setResponseWriter(javax.faces.context.ResponseWriter)
- */
- @Override
- public void setResponseWriter(ResponseWriter arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.context.FacesContext#setViewRoot(javax.faces.component.UIViewRoot)
- */
- @Override
- public void setViewRoot(UIViewRoot arg0) {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletRequest.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletRequest.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,473 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.security.Principal;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.Locale;
-import java.util.Map;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletInputStream;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpSession;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeHttpServletRequest implements HttpServletRequest {
-
- private static VpeHttpServletRequest instance = new VpeHttpServletRequest();
-
- private VpeHttpServletRequest() {
- //singleton
- }
- public static VpeHttpServletRequest getInstance(){
- return instance;
- }
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getAuthType()
- */
- public String getAuthType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getContextPath()
- */
- public String getContextPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getCookies()
- */
- public Cookie[] getCookies() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getDateHeader(java.lang.String)
- */
- public long getDateHeader(String arg0) {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getHeader(java.lang.String)
- */
- public String getHeader(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getHeaderNames()
- */
- public Enumeration getHeaderNames() {
- // TODO Auto-generated method stub
- return Collections.enumeration(Collections.EMPTY_LIST);
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getHeaders(java.lang.String)
- */
- public Enumeration getHeaders(String arg0) {
- // TODO Auto-generated method stub
- return Collections.enumeration(Collections.EMPTY_LIST);
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getIntHeader(java.lang.String)
- */
- public int getIntHeader(String arg0) {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getMethod()
- */
- public String getMethod() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getPathInfo()
- */
- public String getPathInfo() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getPathTranslated()
- */
- public String getPathTranslated() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getQueryString()
- */
- public String getQueryString() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getRemoteUser()
- */
- public String getRemoteUser() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getRequestURI()
- */
- public String getRequestURI() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getRequestURL()
- */
- public StringBuffer getRequestURL() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getRequestedSessionId()
- */
- public String getRequestedSessionId() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getServletPath()
- */
- public String getServletPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getSession()
- */
- public HttpSession getSession() {
- // TODO Auto-generated method stub
- return VpeHttpSession.getInstance();
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getSession(boolean)
- */
- public HttpSession getSession(boolean arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#getUserPrincipal()
- */
- public Principal getUserPrincipal() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
- */
- public boolean isRequestedSessionIdFromCookie() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
- */
- public boolean isRequestedSessionIdFromURL() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
- */
- public boolean isRequestedSessionIdFromUrl() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
- */
- public boolean isRequestedSessionIdValid() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletRequest#isUserInRole(java.lang.String)
- */
- public boolean isUserInRole(String arg0) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getAttribute(java.lang.String)
- */
- public Object getAttribute(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getAttributeNames()
- */
- public Enumeration getAttributeNames() {
- return Collections.enumeration(Collections.EMPTY_LIST);
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getCharacterEncoding()
- */
- public String getCharacterEncoding() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getContentLength()
- */
- public int getContentLength() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getContentType()
- */
- public String getContentType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getInputStream()
- */
- public ServletInputStream getInputStream() throws IOException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getLocalAddr()
- */
- public String getLocalAddr() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getLocalName()
- */
- public String getLocalName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getLocalPort()
- */
- public int getLocalPort() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getLocale()
- */
- public Locale getLocale() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getLocales()
- */
- public Enumeration getLocales() {
- return Collections.enumeration(Collections.EMPTY_LIST);
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getParameter(java.lang.String)
- */
- public String getParameter(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getParameterMap()
- */
- public Map getParameterMap() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getParameterNames()
- */
- public Enumeration getParameterNames() {
- // TODO Auto-generated method stub
- return Collections.enumeration(Collections.EMPTY_LIST);
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getParameterValues(java.lang.String)
- */
- public String[] getParameterValues(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getProtocol()
- */
- public String getProtocol() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getReader()
- */
- public BufferedReader getReader() throws IOException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getRealPath(java.lang.String)
- */
- public String getRealPath(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getRemoteAddr()
- */
- public String getRemoteAddr() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getRemoteHost()
- */
- public String getRemoteHost() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getRemotePort()
- */
- public int getRemotePort() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getRequestDispatcher(java.lang.String)
- */
- public RequestDispatcher getRequestDispatcher(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getScheme()
- */
- public String getScheme() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getServerName()
- */
- public String getServerName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#getServerPort()
- */
- public int getServerPort() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#isSecure()
- */
- public boolean isSecure() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#removeAttribute(java.lang.String)
- */
- public void removeAttribute(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#setAttribute(java.lang.String, java.lang.Object)
- */
- public void setAttribute(String arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletRequest#setCharacterEncoding(java.lang.String)
- */
- public void setCharacterEncoding(String arg0)
- throws UnsupportedEncodingException {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletResponse.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletResponse.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletResponse.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,293 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.Locale;
-
-import javax.servlet.ServletOutputStream;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletResponse;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeHttpServletResponse implements HttpServletResponse {
-
- private static VpeHttpServletResponse instance = new VpeHttpServletResponse();
-
- private VpeHttpServletResponse(){
- //singleton
- }
-
- public static VpeHttpServletResponse getInstance(){
- return instance;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#addCookie(javax.servlet.http.Cookie)
- */
- public void addCookie(Cookie arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#addDateHeader(java.lang.String, long)
- */
- public void addDateHeader(String arg0, long arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#addHeader(java.lang.String, java.lang.String)
- */
- public void addHeader(String arg0, String arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#addIntHeader(java.lang.String, int)
- */
- public void addIntHeader(String arg0, int arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#containsHeader(java.lang.String)
- */
- public boolean containsHeader(String arg0) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#encodeRedirectURL(java.lang.String)
- */
- public String encodeRedirectURL(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#encodeRedirectUrl(java.lang.String)
- */
- public String encodeRedirectUrl(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String)
- */
- public String encodeURL(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#encodeUrl(java.lang.String)
- */
- public String encodeUrl(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#sendError(int)
- */
- public void sendError(int arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#sendError(int, java.lang.String)
- */
- public void sendError(int arg0, String arg1) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)
- */
- public void sendRedirect(String arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#setDateHeader(java.lang.String, long)
- */
- public void setDateHeader(String arg0, long arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String)
- */
- public void setHeader(String arg0, String arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#setIntHeader(java.lang.String, int)
- */
- public void setIntHeader(String arg0, int arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#setStatus(int)
- */
- public void setStatus(int arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpServletResponse#setStatus(int, java.lang.String)
- */
- public void setStatus(int arg0, String arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#flushBuffer()
- */
- public void flushBuffer() throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getBufferSize()
- */
- public int getBufferSize() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getCharacterEncoding()
- */
- public String getCharacterEncoding() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getContentType()
- */
- public String getContentType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getLocale()
- */
- public Locale getLocale() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getOutputStream()
- */
- public ServletOutputStream getOutputStream() throws IOException {
- // TODO Auto-generated method stub
- return VpeServletOutputStream.getInstance();
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#getWriter()
- */
- public PrintWriter getWriter() throws IOException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#isCommitted()
- */
- public boolean isCommitted() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#reset()
- */
- public void reset() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#resetBuffer()
- */
- public void resetBuffer() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#setBufferSize(int)
- */
- public void setBufferSize(int arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#setCharacterEncoding(java.lang.String)
- */
- public void setCharacterEncoding(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#setContentLength(int)
- */
- public void setContentLength(int arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
- */
- public void setContentType(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletResponse#setLocale(java.util.Locale)
- */
- public void setLocale(Locale arg0) {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpSession.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpSession.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpSession.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,172 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.util.Enumeration;
-
-import javax.servlet.ServletContext;
-import javax.servlet.http.HttpSession;
-import javax.servlet.http.HttpSessionContext;
-
-/**
- * @author mareshkau
- *
- */
-
-public class VpeHttpSession implements HttpSession {
-
-
- private static VpeHttpSession vpeHttpSession = new VpeHttpSession();
-
- private VpeHttpSession() {
- //singleton
- }
-
- public static VpeHttpSession getInstance(){
- return vpeHttpSession;
- }
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getAttribute(java.lang.String)
- */
- public Object getAttribute(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getAttributeNames()
- */
- public Enumeration getAttributeNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getCreationTime()
- */
- public long getCreationTime() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getId()
- */
- public String getId() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getLastAccessedTime()
- */
- public long getLastAccessedTime() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getMaxInactiveInterval()
- */
- public int getMaxInactiveInterval() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getServletContext()
- */
- public ServletContext getServletContext() {
- // TODO Auto-generated method stub
- return VpeServletContext.getInstance();
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getSessionContext()
- */
- public HttpSessionContext getSessionContext() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getValue(java.lang.String)
- */
- public Object getValue(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#getValueNames()
- */
- public String[] getValueNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#invalidate()
- */
- public void invalidate() {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#isNew()
- */
- public boolean isNew() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#putValue(java.lang.String, java.lang.Object)
- */
- public void putValue(String arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#removeAttribute(java.lang.String)
- */
- public void removeAttribute(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#removeValue(java.lang.String)
- */
- public void removeValue(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#setAttribute(java.lang.String, java.lang.Object)
- */
- public void setAttribute(String arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.http.HttpSession#setMaxInactiveInterval(int)
- */
- public void setMaxInactiveInterval(int arg0) {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeRequest.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeRequest.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,244 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.URI;
-import java.util.Date;
-
-import javax.servlet.http.Cookie;
-
-import com.icesoft.faces.webapp.http.common.Request;
-import com.icesoft.faces.webapp.http.common.ResponseHandler;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeRequest implements Request {
-
- private static VpeRequest vpeRequest = new VpeRequest();
-
- public static VpeRequest getInstance(){
- return vpeRequest;
- }
-
- private VpeRequest() {
- //singleton
- }
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#containsParameter(java.lang.String)
- */
- public boolean containsParameter(String name) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#detectEnvironment(com.icesoft.faces.webapp.http.common.Request.Environment)
- */
- public void detectEnvironment(Environment environment) throws Exception {
- environment.servlet(VpeHttpServletRequest.getInstance(), VpeHttpServletResponse.getInstance());
-
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getHeader(java.lang.String)
- */
- public String getHeader(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsDate(java.lang.String)
- */
- public Date getHeaderAsDate(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsInteger(java.lang.String)
- */
- public int getHeaderAsInteger(String name) {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsStrings(java.lang.String)
- */
- public String[] getHeaderAsStrings(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getHeaderNames()
- */
- public String[] getHeaderNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getLocalAddr()
- */
- public String getLocalAddr() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getLocalName()
- */
- public String getLocalName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getMethod()
- */
- public String getMethod() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameter(java.lang.String)
- */
- public String getParameter(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameter(java.lang.String, java.lang.String)
- */
- public String getParameter(String name, String defaultValue) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsBoolean(java.lang.String)
- */
- public boolean getParameterAsBoolean(String name) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsBoolean(java.lang.String, boolean)
- */
- public boolean getParameterAsBoolean(String name, boolean defaultValue) {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsInteger(java.lang.String)
- */
- public int getParameterAsInteger(String name) {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsInteger(java.lang.String, int)
- */
- public int getParameterAsInteger(String name, int defaultValue) {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsStrings(java.lang.String)
- */
- public String[] getParameterAsStrings(String name) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getParameterNames()
- */
- public String[] getParameterNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getRemoteAddr()
- */
- public String getRemoteAddr() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getRemoteHost()
- */
- public String getRemoteHost() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getServerName()
- */
- public String getServerName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#getURI()
- */
- public URI getURI() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#readBody()
- */
- public InputStream readBody() throws IOException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#readBodyInto(java.io.OutputStream)
- */
- public void readBodyInto(OutputStream out) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see com.icesoft.faces.webapp.http.common.Request#respondWith(com.icesoft.faces.webapp.http.common.ResponseHandler)
- */
- public void respondWith(ResponseHandler handler) throws Exception {
- // TODO Auto-generated method stub
-
- }
-
- public Cookie[] getCookies() {
- // TODO Auto-generated method stub
- return null;
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletContext.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,237 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.InputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.Enumeration;
-import java.util.Set;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.Servlet;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeServletContext implements ServletContext {
-
- private static final VpeServletContext instance = new VpeServletContext();
- private VpeServletContext() {
- //singleton
- }
- public static VpeServletContext getInstance(){
- return instance;
- }
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getAttribute(java.lang.String)
- */
- public Object getAttribute(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getAttributeNames()
- */
- public Enumeration getAttributeNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getContext(java.lang.String)
- */
- public ServletContext getContext(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getContextPath()
- */
- public String getContextPath() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getInitParameter(java.lang.String)
- */
- public String getInitParameter(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getInitParameterNames()
- */
- public Enumeration getInitParameterNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getMajorVersion()
- */
- public int getMajorVersion() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getMimeType(java.lang.String)
- */
- public String getMimeType(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getMinorVersion()
- */
- public int getMinorVersion() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getNamedDispatcher(java.lang.String)
- */
- public RequestDispatcher getNamedDispatcher(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getRealPath(java.lang.String)
- */
- public String getRealPath(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getRequestDispatcher(java.lang.String)
- */
- public RequestDispatcher getRequestDispatcher(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getResource(java.lang.String)
- */
- public URL getResource(String arg0) throws MalformedURLException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getResourceAsStream(java.lang.String)
- */
- public InputStream getResourceAsStream(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getResourcePaths(java.lang.String)
- */
- public Set getResourcePaths(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getServerInfo()
- */
- public String getServerInfo() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getServlet(java.lang.String)
- */
- public Servlet getServlet(String arg0) throws ServletException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getServletContextName()
- */
- public String getServletContextName() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getServletNames()
- */
- public Enumeration getServletNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#getServlets()
- */
- public Enumeration getServlets() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#log(java.lang.String)
- */
- public void log(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#log(java.lang.Exception, java.lang.String)
- */
- public void log(Exception arg0, String arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#log(java.lang.String, java.lang.Throwable)
- */
- public void log(String arg0, Throwable arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#removeAttribute(java.lang.String)
- */
- public void removeAttribute(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.servlet.ServletContext#setAttribute(java.lang.String, java.lang.Object)
- */
- public void setAttribute(String arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletOutputStream.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletOutputStream.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletOutputStream.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.IOException;
-
-import javax.servlet.ServletOutputStream;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeServletOutputStream extends ServletOutputStream {
-
- private static final VpeServletOutputStream instance =new VpeServletOutputStream();
-
- private VpeServletOutputStream(){
- //singleton
- }
- public static VpeServletOutputStream getInstance(){
- return instance;
- }
-
- /* (non-Javadoc)
- * @see java.io.OutputStream#write(int)
- */
- @Override
- public void write(int b) throws IOException {
- System.out.println(b);
- }
-
- /* (non-Javadoc)
- * @see java.io.OutputStream#write(int)
- */
- @Override
- public void write(byte [] data) throws IOException {
- System.out.print(data);
- }
- @Override
- public void write(byte [] data, int begin, int lengh) throws IOException {
- System.out.print(data);
- }
-}
Deleted: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeUIComponent.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeUIComponent.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeUIComponent.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -1,437 +0,0 @@
-/*******************************************************************************
- * 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.icefaces.template.mock;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.faces.component.UIComponent;
-import javax.faces.component.UIOutput;
-import javax.faces.context.FacesContext;
-import javax.faces.el.EvaluationException;
-import javax.faces.el.PropertyNotFoundException;
-import javax.faces.el.ValueBinding;
-import javax.faces.event.AbortProcessingException;
-import javax.faces.event.FacesEvent;
-import javax.faces.event.FacesListener;
-import javax.faces.render.Renderer;
-
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-
-/**
- * @author mareshkau
- *
- */
-public class VpeUIComponent extends UIOutput {
-
- private Map attributesMap;
-
- public VpeUIComponent(Element sourceElement) {
- attributesMap = new HashMap();
- NamedNodeMap attributes = sourceElement.getAttributes();
- for(int i=0;i<attributes.getLength();i++){
- Node item = attributes.item(i);
- attributesMap.put(item.getNodeName(), item.getNodeValue());
- }
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#addFacesListener(javax.faces.event.FacesListener)
- */
- @Override
- protected void addFacesListener(FacesListener arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#broadcast(javax.faces.event.FacesEvent)
- */
- @Override
- public void broadcast(FacesEvent arg0) throws AbortProcessingException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#decode(javax.faces.context.FacesContext)
- */
- @Override
- public void decode(FacesContext arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#encodeBegin(javax.faces.context.FacesContext)
- */
- @Override
- public void encodeBegin(FacesContext arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#encodeChildren(javax.faces.context.FacesContext)
- */
- @Override
- public void encodeChildren(FacesContext arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#encodeEnd(javax.faces.context.FacesContext)
- */
- @Override
- public void encodeEnd(FacesContext arg0) throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#findComponent(java.lang.String)
- */
- @Override
- public UIComponent findComponent(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getAttributes()
- */
- @Override
- public Map getAttributes() {
- // TODO Auto-generated method stub
- return attributesMap;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getChildCount()
- */
- @Override
- public int getChildCount() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getChildren()
- */
- @Override
- public List getChildren() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getClientId(javax.faces.context.FacesContext)
- */
- @Override
- public String getClientId(FacesContext arg0) {
- // TODO Auto-generated method stub
- return "uiOutput";
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFacesContext()
- */
- @Override
- protected FacesContext getFacesContext() {
- // TODO Auto-generated method stub
- return VpeFacesContext.getInstance();
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFacesListeners(java.lang.Class)
- */
- @Override
- protected FacesListener[] getFacesListeners(Class arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFacet(java.lang.String)
- */
- @Override
- public UIComponent getFacet(String arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFacets()
- */
- @Override
- public Map getFacets() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFacetsAndChildren()
- */
- @Override
- public Iterator getFacetsAndChildren() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getFamily()
- */
- @Override
- public String getFamily() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getId()
- */
- @Override
- public String getId() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getParent()
- */
- @Override
- public UIComponent getParent() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getRenderer(javax.faces.context.FacesContext)
- */
- @Override
- protected Renderer getRenderer(FacesContext arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getRendererType()
- */
- @Override
- public String getRendererType() {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getRendersChildren()
- */
- @Override
- public boolean getRendersChildren() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#getValueBinding(java.lang.String)
- */
- @Override
- public ValueBinding getValueBinding(String arg0) {
- // TODO Auto-generated method stub
- final String value=arg0;
- return new ValueBinding() {
-
- @Override
- public void setValue(FacesContext arg0, Object arg1)
- throws EvaluationException, PropertyNotFoundException {
- // TODO Auto-generated method stub
-
- }
-
- @Override
- public boolean isReadOnly(FacesContext arg0) throws EvaluationException,
- PropertyNotFoundException {
- // TODO Auto-generated method stub
- return true;
- }
-
- @Override
- public Object getValue(FacesContext arg0) throws EvaluationException,
- PropertyNotFoundException {
- // TODO Auto-generated method stub
- return getAttributes().get(value);
- }
-
- @Override
- public Class getType(FacesContext arg0) throws EvaluationException,
- PropertyNotFoundException {
- // TODO Auto-generated method stub
- return null;
- }
- };
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#isRendered()
- */
- @Override
- public boolean isRendered() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#processDecodes(javax.faces.context.FacesContext)
- */
- @Override
- public void processDecodes(FacesContext arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#processRestoreState(javax.faces.context.FacesContext, java.lang.Object)
- */
- @Override
- public void processRestoreState(FacesContext arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#processSaveState(javax.faces.context.FacesContext)
- */
- @Override
- public Object processSaveState(FacesContext arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#processUpdates(javax.faces.context.FacesContext)
- */
- @Override
- public void processUpdates(FacesContext arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#processValidators(javax.faces.context.FacesContext)
- */
- @Override
- public void processValidators(FacesContext arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#queueEvent(javax.faces.event.FacesEvent)
- */
- @Override
- public void queueEvent(FacesEvent arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#removeFacesListener(javax.faces.event.FacesListener)
- */
- @Override
- protected void removeFacesListener(FacesListener arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#setId(java.lang.String)
- */
- @Override
- public void setId(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#setParent(javax.faces.component.UIComponent)
- */
- @Override
- public void setParent(UIComponent arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#setRendered(boolean)
- */
- @Override
- public void setRendered(boolean arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#setRendererType(java.lang.String)
- */
- @Override
- public void setRendererType(String arg0) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.UIComponent#setValueBinding(java.lang.String, javax.faces.el.ValueBinding)
- */
- @Override
- public void setValueBinding(String arg0, ValueBinding arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.StateHolder#isTransient()
- */
- public boolean isTransient() {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.StateHolder#restoreState(javax.faces.context.FacesContext, java.lang.Object)
- */
- public void restoreState(FacesContext arg0, Object arg1) {
- // TODO Auto-generated method stub
-
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.StateHolder#saveState(javax.faces.context.FacesContext)
- */
- public Object saveState(FacesContext arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see javax.faces.component.StateHolder#setTransient(boolean)
- */
- public void setTransient(boolean arg0) {
- // TODO Auto-generated method stub
-
- }
-
-}
Modified: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/utill/VpeRendererUtil.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/utill/VpeRendererUtil.java 2009-10-01 14:57:01 UTC (rev 17843)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/utill/VpeRendererUtil.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -13,9 +13,16 @@
import javax.faces.component.UIComponent;
import javax.faces.render.Renderer;
-import org.jboss.tools.jsf.vpe.icefaces.template.mock.VpeFacesContext;
+
+import org.jboss.tools.jsf.vpe.template.mock.impl.VpeFacesContext;
import org.jboss.tools.vpe.VpePlugin;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
import com.icesoft.faces.context.DOMContext;
@@ -39,4 +46,35 @@
return domContext.getRootNode();
}
+ public static final nsIDOMNode createVisualNode(Node srcNode,nsIDOMDocument visualDocument){
+
+ nsIDOMNode resultNode = null;
+ switch(srcNode.getNodeType()) {
+ case Node.TEXT_NODE:{
+ resultNode = visualDocument.createTextNode(srcNode.getNodeValue());
+ break;
+ }
+ case Node.ELEMENT_NODE:{
+ resultNode = visualDocument.createElement(srcNode.getNodeName());
+ copyAttributes((Element)srcNode, (nsIDOMElement)resultNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID));
+ NodeList chieldNodes = srcNode.getChildNodes();
+ for(int i=0;i<chieldNodes.getLength();i++){
+ nsIDOMNode chield = createVisualNode(chieldNodes.item(i), visualDocument);
+ if(chield!=null) {
+ resultNode.appendChild(chield);
+ }
+ }
+ }
+ }
+ return resultNode;
+ }
+
+ private static final void copyAttributes(Element srcElement, nsIDOMElement visualElement) {
+ NamedNodeMap attributeMap = srcElement.getAttributes();
+ for(int i=0; i< attributeMap.getLength();i++){
+ Node attr = attributeMap.item(i);
+ visualElement.setAttribute(attr.getNodeName(), attr.getNodeValue());
+ }
+ }
+
}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractApplicationFactory.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeApplicationFactory.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractApplicationFactory.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractApplicationFactory.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import javax.faces.application.Application;
+import javax.faces.application.ApplicationFactory;
+
+/**
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ * @author mareshkau
+ */
+public abstract class VpeAbstractApplicationFactory extends ApplicationFactory {
+
+ /* (non-Javadoc)
+ * @see javax.faces.application.ApplicationFactory#getApplication()
+ */
+ @Override
+ public Application getApplication() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.application.ApplicationFactory#setApplication(javax.faces.application.Application)
+ */
+ @Override
+ public void setApplication(Application application) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractConfiguration.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeConfiguration.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractConfiguration.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractConfiguration.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,72 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import com.icesoft.faces.webapp.http.common.Configuration;
+import com.icesoft.faces.webapp.http.common.ConfigurationException;
+
+/**
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractConfiguration extends Configuration {
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Configuration#getAttribute(java.lang.String)
+ */
+ @Override
+ public String getAttribute(String paramName) throws ConfigurationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Configuration#getChild(java.lang.String)
+ */
+ @Override
+ public Configuration getChild(String child) throws ConfigurationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Configuration#getChildren(java.lang.String)
+ */
+ @Override
+ public Configuration[] getChildren(String name)
+ throws ConfigurationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Configuration#getName()
+ */
+ @Override
+ public String getName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Configuration#getValue()
+ */
+ @Override
+ public String getValue() throws ConfigurationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractExternalContext.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VPEExternalContext.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractExternalContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractExternalContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,334 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.security.Principal;
+import java.util.Iterator;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Set;
+import javax.faces.context.ExternalContext;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractExternalContext extends ExternalContext {
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#dispatch(java.lang.String)
+ */
+ @Override
+ public void dispatch(String arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#encodeActionURL(java.lang.String)
+ */
+ @Override
+ public String encodeActionURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#encodeNamespace(java.lang.String)
+ */
+ @Override
+ public String encodeNamespace(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#encodeResourceURL(java.lang.String)
+ */
+ @Override
+ public String encodeResourceURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getApplicationMap()
+ */
+ @Override
+ public Map getApplicationMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getAuthType()
+ */
+ @Override
+ public String getAuthType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getContext()
+ */
+ @Override
+ public Object getContext() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getInitParameter(java.lang.String)
+ */
+ @Override
+ public String getInitParameter(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getInitParameterMap()
+ */
+ @Override
+ public Map getInitParameterMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRemoteUser()
+ */
+ @Override
+ public String getRemoteUser() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequest()
+ */
+ @Override
+ public Object getRequest() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestContextPath()
+ */
+ @Override
+ public String getRequestContextPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestCookieMap()
+ */
+ @Override
+ public Map getRequestCookieMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestHeaderMap()
+ */
+ @Override
+ public Map getRequestHeaderMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestHeaderValuesMap()
+ */
+ @Override
+ public Map getRequestHeaderValuesMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestLocale()
+ */
+ @Override
+ public Locale getRequestLocale() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestLocales()
+ */
+ @Override
+ public Iterator getRequestLocales() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestParameterMap()
+ */
+ @Override
+ public Map getRequestParameterMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestParameterNames()
+ */
+ @Override
+ public Iterator getRequestParameterNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestParameterValuesMap()
+ */
+ @Override
+ public Map getRequestParameterValuesMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestPathInfo()
+ */
+ @Override
+ public String getRequestPathInfo() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestServletPath()
+ */
+ @Override
+ public String getRequestServletPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getResource(java.lang.String)
+ */
+ @Override
+ public URL getResource(String arg0) throws MalformedURLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getResourceAsStream(java.lang.String)
+ */
+ @Override
+ public InputStream getResourceAsStream(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getResourcePaths(java.lang.String)
+ */
+ @Override
+ public Set getResourcePaths(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getResponse()
+ */
+ @Override
+ public Object getResponse() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getSession(boolean)
+ */
+ @Override
+ public Object getSession(boolean arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getSessionMap()
+ */
+ @Override
+ public Map getSessionMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getUserPrincipal()
+ */
+ @Override
+ public Principal getUserPrincipal() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#isUserInRole(java.lang.String)
+ */
+ @Override
+ public boolean isUserInRole(String arg0) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#log(java.lang.String)
+ */
+ @Override
+ public void log(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#log(java.lang.String, java.lang.Throwable)
+ */
+ @Override
+ public void log(String arg0, Throwable arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#redirect(java.lang.String)
+ */
+ @Override
+ public void redirect(String arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractFacesContext.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeFacesContext.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractFacesContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractFacesContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,196 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.util.Iterator;
+
+import javax.faces.application.Application;
+import javax.faces.application.FacesMessage;
+import javax.faces.application.FacesMessage.Severity;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.ResponseStream;
+import javax.faces.context.ResponseWriter;
+import javax.faces.render.RenderKit;
+import com.icesoft.faces.context.BridgeFacesContext;
+import com.icesoft.faces.context.View;
+import com.icesoft.faces.env.Authorization;
+import com.icesoft.faces.webapp.http.common.Configuration;
+import com.icesoft.faces.webapp.http.common.Request;
+import com.icesoft.faces.webapp.http.core.ResourceDispatcher;
+import com.icesoft.faces.webapp.http.servlet.SessionDispatcher.Monitor;
+
+/**
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractFacesContext extends BridgeFacesContext {
+
+ public VpeAbstractFacesContext(Request request, String viewIdentifier,
+ String sessionID, View view, Configuration configuration,
+ ResourceDispatcher resourceDispatcher, Monitor sessionMonitor,
+ String blockingRequestHandlerContext, Authorization authorization)
+ throws Exception {
+ super(request, viewIdentifier, sessionID, view, configuration,
+ resourceDispatcher, sessionMonitor, blockingRequestHandlerContext,
+ authorization);
+ // TODO Auto-generated constructor stub
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#addMessage(java.lang.String, javax.faces.application.FacesMessage)
+ */
+ @Override
+ public void addMessage(String arg0, FacesMessage arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getApplication()
+ */
+ @Override
+ public Application getApplication() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getClientIdsWithMessages()
+ */
+ @Override
+ public Iterator getClientIdsWithMessages() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getMaximumSeverity()
+ */
+ @Override
+ public Severity getMaximumSeverity() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getMessages()
+ */
+ @Override
+ public Iterator getMessages() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getMessages(java.lang.String)
+ */
+ @Override
+ public Iterator getMessages(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getRenderKit()
+ */
+ @Override
+ public RenderKit getRenderKit() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getRenderResponse()
+ */
+ @Override
+ public boolean getRenderResponse() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getResponseComplete()
+ */
+ @Override
+ public boolean getResponseComplete() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getResponseStream()
+ */
+ @Override
+ public ResponseStream getResponseStream() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#release()
+ */
+ @Override
+ public void release() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#renderResponse()
+ */
+ @Override
+ public void renderResponse() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#responseComplete()
+ */
+ @Override
+ public void responseComplete() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#setResponseStream(javax.faces.context.ResponseStream)
+ */
+ @Override
+ public void setResponseStream(ResponseStream arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#setResponseWriter(javax.faces.context.ResponseWriter)
+ */
+ @Override
+ public void setResponseWriter(ResponseWriter arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#setViewRoot(javax.faces.component.UIViewRoot)
+ */
+ @Override
+ public void setViewRoot(UIViewRoot arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletRequest.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletRequest.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletRequest.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,422 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.security.Principal;
+import java.util.Locale;
+import java.util.Map;
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletInputStream;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpSession;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractHttpServletRequest implements HttpServletRequest {
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getAuthType()
+ */
+ public String getAuthType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getContextPath()
+ */
+ public String getContextPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getCookies()
+ */
+ public Cookie[] getCookies() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getDateHeader(java.lang.String)
+ */
+ public long getDateHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getHeader(java.lang.String)
+ */
+ public String getHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getIntHeader(java.lang.String)
+ */
+ public int getIntHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getMethod()
+ */
+ public String getMethod() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getPathInfo()
+ */
+ public String getPathInfo() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getPathTranslated()
+ */
+ public String getPathTranslated() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getQueryString()
+ */
+ public String getQueryString() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getRemoteUser()
+ */
+ public String getRemoteUser() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getRequestURI()
+ */
+ public String getRequestURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getRequestURL()
+ */
+ public StringBuffer getRequestURL() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getRequestedSessionId()
+ */
+ public String getRequestedSessionId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getServletPath()
+ */
+ public String getServletPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getSession(boolean)
+ */
+ public HttpSession getSession(boolean arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getUserPrincipal()
+ */
+ public Principal getUserPrincipal() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromCookie()
+ */
+ public boolean isRequestedSessionIdFromCookie() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromURL()
+ */
+ public boolean isRequestedSessionIdFromURL() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdFromUrl()
+ */
+ public boolean isRequestedSessionIdFromUrl() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#isRequestedSessionIdValid()
+ */
+ public boolean isRequestedSessionIdValid() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#isUserInRole(java.lang.String)
+ */
+ public boolean isUserInRole(String arg0) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getAttribute(java.lang.String)
+ */
+ public Object getAttribute(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getCharacterEncoding()
+ */
+ public String getCharacterEncoding() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getContentLength()
+ */
+ public int getContentLength() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getContentType()
+ */
+ public String getContentType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getInputStream()
+ */
+ public ServletInputStream getInputStream() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getLocalAddr()
+ */
+ public String getLocalAddr() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getLocalName()
+ */
+ public String getLocalName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getLocalPort()
+ */
+ public int getLocalPort() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getLocale()
+ */
+ public Locale getLocale() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getParameter(java.lang.String)
+ */
+ public String getParameter(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getParameterMap()
+ */
+ public Map getParameterMap() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getParameterValues(java.lang.String)
+ */
+ public String[] getParameterValues(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getProtocol()
+ */
+ public String getProtocol() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getReader()
+ */
+ public BufferedReader getReader() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getRealPath(java.lang.String)
+ */
+ public String getRealPath(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getRemoteAddr()
+ */
+ public String getRemoteAddr() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getRemoteHost()
+ */
+ public String getRemoteHost() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getRemotePort()
+ */
+ public int getRemotePort() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getRequestDispatcher(java.lang.String)
+ */
+ public RequestDispatcher getRequestDispatcher(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getScheme()
+ */
+ public String getScheme() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getServerName()
+ */
+ public String getServerName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getServerPort()
+ */
+ public int getServerPort() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#isSecure()
+ */
+ public boolean isSecure() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#removeAttribute(java.lang.String)
+ */
+ public void removeAttribute(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#setAttribute(java.lang.String, java.lang.Object)
+ */
+ public void setAttribute(String arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#setCharacterEncoding(java.lang.String)
+ */
+ public void setCharacterEncoding(String arg0)
+ throws UnsupportedEncodingException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletResponse.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpServletResponse.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletResponse.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpServletResponse.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,279 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.Locale;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractHttpServletResponse implements HttpServletResponse {
+
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#addCookie(javax.servlet.http.Cookie)
+ */
+ public void addCookie(Cookie arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#addDateHeader(java.lang.String, long)
+ */
+ public void addDateHeader(String arg0, long arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#addHeader(java.lang.String, java.lang.String)
+ */
+ public void addHeader(String arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#addIntHeader(java.lang.String, int)
+ */
+ public void addIntHeader(String arg0, int arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#containsHeader(java.lang.String)
+ */
+ public boolean containsHeader(String arg0) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#encodeRedirectURL(java.lang.String)
+ */
+ public String encodeRedirectURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#encodeRedirectUrl(java.lang.String)
+ */
+ public String encodeRedirectUrl(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#encodeURL(java.lang.String)
+ */
+ public String encodeURL(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#encodeUrl(java.lang.String)
+ */
+ public String encodeUrl(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#sendError(int)
+ */
+ public void sendError(int arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#sendError(int, java.lang.String)
+ */
+ public void sendError(int arg0, String arg1) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#sendRedirect(java.lang.String)
+ */
+ public void sendRedirect(String arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#setDateHeader(java.lang.String, long)
+ */
+ public void setDateHeader(String arg0, long arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#setHeader(java.lang.String, java.lang.String)
+ */
+ public void setHeader(String arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#setIntHeader(java.lang.String, int)
+ */
+ public void setIntHeader(String arg0, int arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#setStatus(int)
+ */
+ public void setStatus(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletResponse#setStatus(int, java.lang.String)
+ */
+ public void setStatus(int arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#flushBuffer()
+ */
+ public void flushBuffer() throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getBufferSize()
+ */
+ public int getBufferSize() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getCharacterEncoding()
+ */
+ public String getCharacterEncoding() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getContentType()
+ */
+ public String getContentType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getLocale()
+ */
+ public Locale getLocale() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getWriter()
+ */
+ public PrintWriter getWriter() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#isCommitted()
+ */
+ public boolean isCommitted() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#reset()
+ */
+ public void reset() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#resetBuffer()
+ */
+ public void resetBuffer() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#setBufferSize(int)
+ */
+ public void setBufferSize(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#setCharacterEncoding(java.lang.String)
+ */
+ public void setCharacterEncoding(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#setContentLength(int)
+ */
+ public void setContentLength(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
+ */
+ public void setContentType(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#setLocale(java.util.Locale)
+ */
+ public void setLocale(Locale arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpSession.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeHttpSession.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpSession.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractHttpSession.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,159 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.util.Enumeration;
+
+import javax.servlet.http.HttpSession;
+import javax.servlet.http.HttpSessionContext;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+
+public abstract class VpeAbstractHttpSession implements HttpSession {
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getAttribute(java.lang.String)
+ */
+ public Object getAttribute(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getAttributeNames()
+ */
+ public Enumeration getAttributeNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getCreationTime()
+ */
+ public long getCreationTime() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getId()
+ */
+ public String getId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getLastAccessedTime()
+ */
+ public long getLastAccessedTime() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getMaxInactiveInterval()
+ */
+ public int getMaxInactiveInterval() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getSessionContext()
+ */
+ public HttpSessionContext getSessionContext() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getValue(java.lang.String)
+ */
+ public Object getValue(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getValueNames()
+ */
+ public String[] getValueNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#invalidate()
+ */
+ public void invalidate() {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#isNew()
+ */
+ public boolean isNew() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#putValue(java.lang.String, java.lang.Object)
+ */
+ public void putValue(String arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#removeAttribute(java.lang.String)
+ */
+ public void removeAttribute(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#removeValue(java.lang.String)
+ */
+ public void removeValue(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#setAttribute(java.lang.String, java.lang.Object)
+ */
+ public void setAttribute(String arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#setMaxInactiveInterval(int)
+ */
+ public void setMaxInactiveInterval(int arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractRequest.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeRequest.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractRequest.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,233 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URI;
+import java.util.Date;
+
+import javax.servlet.http.Cookie;
+
+import com.icesoft.faces.webapp.http.common.Request;
+import com.icesoft.faces.webapp.http.common.ResponseHandler;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public abstract class VpeAbstractRequest implements Request {
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#containsParameter(java.lang.String)
+ */
+ public boolean containsParameter(String name) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getHeader(java.lang.String)
+ */
+ public String getHeader(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsDate(java.lang.String)
+ */
+ public Date getHeaderAsDate(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsInteger(java.lang.String)
+ */
+ public int getHeaderAsInteger(String name) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getHeaderAsStrings(java.lang.String)
+ */
+ public String[] getHeaderAsStrings(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getHeaderNames()
+ */
+ public String[] getHeaderNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getLocalAddr()
+ */
+ public String getLocalAddr() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getLocalName()
+ */
+ public String getLocalName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getMethod()
+ */
+ public String getMethod() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameter(java.lang.String)
+ */
+ public String getParameter(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameter(java.lang.String, java.lang.String)
+ */
+ public String getParameter(String name, String defaultValue) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsBoolean(java.lang.String)
+ */
+ public boolean getParameterAsBoolean(String name) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsBoolean(java.lang.String, boolean)
+ */
+ public boolean getParameterAsBoolean(String name, boolean defaultValue) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsInteger(java.lang.String)
+ */
+ public int getParameterAsInteger(String name) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsInteger(java.lang.String, int)
+ */
+ public int getParameterAsInteger(String name, int defaultValue) {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterAsStrings(java.lang.String)
+ */
+ public String[] getParameterAsStrings(String name) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getParameterNames()
+ */
+ public String[] getParameterNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getRemoteAddr()
+ */
+ public String getRemoteAddr() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getRemoteHost()
+ */
+ public String getRemoteHost() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getServerName()
+ */
+ public String getServerName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#getURI()
+ */
+ public URI getURI() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#readBody()
+ */
+ public InputStream readBody() throws IOException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#readBodyInto(java.io.OutputStream)
+ */
+ public void readBodyInto(OutputStream out) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#respondWith(com.icesoft.faces.webapp.http.common.ResponseHandler)
+ */
+ public void respondWith(ResponseHandler handler) throws Exception {
+ // TODO Auto-generated method stub
+
+ }
+
+ public Cookie[] getCookies() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletContext.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeServletContext.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,236 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Enumeration;
+import java.util.Set;
+
+import javax.servlet.RequestDispatcher;
+import javax.servlet.Servlet;
+import javax.servlet.ServletContext;
+import javax.servlet.ServletException;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeAbstractServletContext implements ServletContext {
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getAttribute(java.lang.String)
+ */
+ public Object getAttribute(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getAttributeNames()
+ */
+ public Enumeration getAttributeNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getContext(java.lang.String)
+ */
+ public ServletContext getContext(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getContextPath()
+ */
+ public String getContextPath() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getInitParameter(java.lang.String)
+ */
+ public String getInitParameter(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getInitParameterNames()
+ */
+ public Enumeration getInitParameterNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getMajorVersion()
+ */
+ public int getMajorVersion() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getMimeType(java.lang.String)
+ */
+ public String getMimeType(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getMinorVersion()
+ */
+ public int getMinorVersion() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getNamedDispatcher(java.lang.String)
+ */
+ public RequestDispatcher getNamedDispatcher(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getRealPath(java.lang.String)
+ */
+ public String getRealPath(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getRequestDispatcher(java.lang.String)
+ */
+ public RequestDispatcher getRequestDispatcher(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getResource(java.lang.String)
+ */
+ public URL getResource(String arg0) throws MalformedURLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getResourceAsStream(java.lang.String)
+ */
+ public InputStream getResourceAsStream(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getResourcePaths(java.lang.String)
+ */
+ public Set getResourcePaths(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getServerInfo()
+ */
+ public String getServerInfo() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getServlet(java.lang.String)
+ */
+ public Servlet getServlet(String arg0) throws ServletException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getServletContextName()
+ */
+ public String getServletContextName() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getServletNames()
+ */
+ public Enumeration getServletNames() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#getServlets()
+ */
+ public Enumeration getServlets() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#log(java.lang.String)
+ */
+ public void log(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#log(java.lang.Exception, java.lang.String)
+ */
+ public void log(Exception arg0, String arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#log(java.lang.String, java.lang.Throwable)
+ */
+ public void log(String arg0, Throwable arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#removeAttribute(java.lang.String)
+ */
+ public void removeAttribute(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletContext#setAttribute(java.lang.String, java.lang.Object)
+ */
+ public void setAttribute(String arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletOutputStream.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletOutputStream.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractServletOutputStream.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.IOException;
+
+import javax.servlet.ServletOutputStream;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeAbstractServletOutputStream extends ServletOutputStream {
+
+ @Override
+ public void write(int b) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractUIComponent.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeUIComponent.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractUIComponent.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/abstr/VpeAbstractUIComponent.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,367 @@
+/*******************************************************************************
+ * 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.template.mock.abstr;
+
+import java.io.IOException;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIOutput;
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import javax.faces.event.AbortProcessingException;
+import javax.faces.event.FacesEvent;
+import javax.faces.event.FacesListener;
+import javax.faces.render.Renderer;
+
+/**
+ *
+ * This class and package has been created for separation generated code
+ * from code which was write. Don't change this classes, instead change classes
+ * in org.jboss.tools.jsf.vpe.template.mock.impl package
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeAbstractUIComponent extends UIOutput {
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#addFacesListener(javax.faces.event.FacesListener)
+ */
+ @Override
+ protected void addFacesListener(FacesListener arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#broadcast(javax.faces.event.FacesEvent)
+ */
+ @Override
+ public void broadcast(FacesEvent arg0) throws AbortProcessingException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#decode(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void decode(FacesContext arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#encodeBegin(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void encodeBegin(FacesContext arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#encodeChildren(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void encodeChildren(FacesContext arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#encodeEnd(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void encodeEnd(FacesContext arg0) throws IOException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#findComponent(java.lang.String)
+ */
+ @Override
+ public UIComponent findComponent(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getChildCount()
+ */
+ @Override
+ public int getChildCount() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getChildren()
+ */
+ @Override
+ public List getChildren() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+
+
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFacesListeners(java.lang.Class)
+ */
+ @Override
+ protected FacesListener[] getFacesListeners(Class arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFacet(java.lang.String)
+ */
+ @Override
+ public UIComponent getFacet(String arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFacets()
+ */
+ @Override
+ public Map getFacets() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFacetsAndChildren()
+ */
+ @Override
+ public Iterator getFacetsAndChildren() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFamily()
+ */
+ @Override
+ public String getFamily() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getId()
+ */
+ @Override
+ public String getId() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getParent()
+ */
+ @Override
+ public UIComponent getParent() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getRenderer(javax.faces.context.FacesContext)
+ */
+ @Override
+ protected Renderer getRenderer(FacesContext arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getRendererType()
+ */
+ @Override
+ public String getRendererType() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getRendersChildren()
+ */
+ @Override
+ public boolean getRendersChildren() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#isRendered()
+ */
+ @Override
+ public boolean isRendered() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#processDecodes(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void processDecodes(FacesContext arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#processRestoreState(javax.faces.context.FacesContext, java.lang.Object)
+ */
+ @Override
+ public void processRestoreState(FacesContext arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#processSaveState(javax.faces.context.FacesContext)
+ */
+ @Override
+ public Object processSaveState(FacesContext arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#processUpdates(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void processUpdates(FacesContext arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#processValidators(javax.faces.context.FacesContext)
+ */
+ @Override
+ public void processValidators(FacesContext arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#queueEvent(javax.faces.event.FacesEvent)
+ */
+ @Override
+ public void queueEvent(FacesEvent arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#removeFacesListener(javax.faces.event.FacesListener)
+ */
+ @Override
+ protected void removeFacesListener(FacesListener arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#setId(java.lang.String)
+ */
+ @Override
+ public void setId(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#setParent(javax.faces.component.UIComponent)
+ */
+ @Override
+ public void setParent(UIComponent arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#setRendered(boolean)
+ */
+ @Override
+ public void setRendered(boolean arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#setRendererType(java.lang.String)
+ */
+ @Override
+ public void setRendererType(String arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#setValueBinding(java.lang.String, javax.faces.el.ValueBinding)
+ */
+ @Override
+ public void setValueBinding(String arg0, ValueBinding arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.StateHolder#isTransient()
+ */
+ public boolean isTransient() {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.StateHolder#restoreState(javax.faces.context.FacesContext, java.lang.Object)
+ */
+ public void restoreState(FacesContext arg0, Object arg1) {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.StateHolder#saveState(javax.faces.context.FacesContext)
+ */
+ public Object saveState(FacesContext arg0) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.StateHolder#setTransient(boolean)
+ */
+ public void setTransient(boolean arg0) {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeApplicationFactory.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeApplicationFactory.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeApplicationFactory.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractApplicationFactory;
+
+/**
+ *
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeApplicationFactory extends VpeAbstractApplicationFactory {
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeConfiguration.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeConfiguration.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeConfiguration.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractConfiguration;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeConfiguration extends VpeAbstractConfiguration {
+
+ private static VpeConfiguration instance = new VpeConfiguration();
+
+ private VpeConfiguration(){
+ //singleton
+ }
+
+ public static VpeConfiguration getInstance(){
+ return instance;
+ }
+
+}
Copied: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeDOMResponseWriter.java (from rev 17832, workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/icefaces/template/mock/VpeDOMResponseWriter.java)
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeDOMResponseWriter.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeDOMResponseWriter.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import java.util.Collection;
+
+import javax.faces.context.FacesContext;
+
+import com.icesoft.faces.context.DOMResponseWriter;
+import com.icesoft.faces.context.DOMSerializer;
+import com.icesoft.faces.webapp.http.common.Configuration;
+
+/**
+ *
+ * This class is created for using as mock object in original jsf renderers
+ * @author mareshkau
+ *
+ */
+public class VpeDOMResponseWriter extends DOMResponseWriter{
+
+
+ public VpeDOMResponseWriter(FacesContext context, DOMSerializer serializer,
+ Configuration configuration, Collection jsCode, Collection cssCode,
+ String blockingRequestHandlerContext) {
+ super(context, serializer, configuration, jsCode, cssCode,
+ blockingRequestHandlerContext);
+ setCursorParent(getDocument().createElement("ROOT")); //$NON-NLS-1$
+ }
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeExternalContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeExternalContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeExternalContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractExternalContext;
+
+/**
+ *
+ * This class is created for using as mock object in original jsf renderers
+ * @author mareshkau
+ *
+ */
+public class VpeExternalContext extends VpeAbstractExternalContext {
+
+ private static VpeExternalContext instance = new VpeExternalContext();
+
+ private VpeExternalContext(){
+ //singleton
+ }
+ public static VpeExternalContext getInstance(){
+ return instance;
+ }
+
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.ExternalContext#getRequestMap()
+ */
+ @Override
+ public Map getRequestMap() {
+ // TODO Auto-generated method stub
+ return new HashMap();
+ }
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeFacesContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeFacesContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeFacesContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,75 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import javax.faces.FactoryFinder;
+import javax.faces.component.UIViewRoot;
+import javax.faces.context.ExternalContext;
+import javax.faces.context.ResponseWriter;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractFacesContext;
+
+
+/**
+ * Mock object for FacesContext.
+ * It's need for using real renders in vpe templates
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeFacesContext extends VpeAbstractFacesContext {
+
+ private static VpeFacesContext instance;
+
+ private static final VpeDOMResponseWriter vpeDOMResponseWriter = new VpeDOMResponseWriter(null, null, null, null, null, null);
+
+ private VpeFacesContext() throws Exception{
+ //singleton
+ super(VpeRequest.getInstance(),null,null,null, VpeConfiguration.getInstance(),null,null,null,null);
+ }
+
+ public static VpeFacesContext getInstance(){
+ if(instance==null) {
+ try {
+ FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, VpeApplicationFactory.class.getName());
+ instance = new VpeFacesContext();
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+ return instance;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getExternalContext()
+ */
+ @Override
+ public ExternalContext getExternalContext() {
+ return VpeExternalContext.getInstance();
+ }
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getResponseWriter()
+ */
+ @Override
+ public ResponseWriter getResponseWriter() {
+ return this.vpeDOMResponseWriter;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.context.FacesContext#getViewRoot()
+ */
+ @Override
+ public UIViewRoot getViewRoot() {
+ return new UIViewRoot();
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletRequest.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletRequest.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,78 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import java.util.Collections;
+import java.util.Enumeration;
+
+import javax.servlet.http.HttpSession;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractHttpServletRequest;
+
+/**
+ *
+ * This class is created for using as mock object in original jsf renderers
+ * @author mareshkau
+ *
+ */
+public class VpeHttpServletRequest extends VpeAbstractHttpServletRequest {
+
+ private static VpeAbstractHttpServletRequest instance = new VpeHttpServletRequest();
+
+ private VpeHttpServletRequest() {
+ //singleton
+ }
+ public static VpeAbstractHttpServletRequest getInstance(){
+ return instance;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getHeaderNames()
+ */
+ public Enumeration getHeaderNames() {
+ return Collections.enumeration(Collections.EMPTY_LIST);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getHeaders(java.lang.String)
+ */
+ public Enumeration getHeaders(String arg0) {
+ return Collections.enumeration(Collections.EMPTY_LIST);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpServletRequest#getSession()
+ */
+ public HttpSession getSession() {
+ return VpeHttpSession.getInstance();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getAttributeNames()
+ */
+ public Enumeration getAttributeNames() {
+ return Collections.enumeration(Collections.EMPTY_LIST);
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getLocales()
+ */
+ public Enumeration getLocales() {
+ return Collections.enumeration(Collections.EMPTY_LIST);
+ }
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletRequest#getParameterNames()
+ */
+ public Enumeration getParameterNames() {
+ return Collections.enumeration(Collections.EMPTY_LIST);
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletResponse.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletResponse.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpServletResponse.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import java.io.IOException;
+
+import javax.servlet.ServletOutputStream;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractHttpServletResponse;
+
+/**
+ *
+ * This class is created for using as mock object in original jsf renderers
+ * @author mareshkau
+ *
+ */
+public class VpeHttpServletResponse extends VpeAbstractHttpServletResponse {
+
+ private static VpeHttpServletResponse instance = new VpeHttpServletResponse();
+
+ private VpeHttpServletResponse(){
+ //singleton
+ }
+
+ public static VpeHttpServletResponse getInstance(){
+ return instance;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.ServletResponse#getOutputStream()
+ */
+ public ServletOutputStream getOutputStream() throws IOException {
+ return VpeServletOutputStream.getInstance();
+ }
+
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpSession.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpSession.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeHttpSession.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import javax.servlet.ServletContext;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractHttpSession;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ * @author mareshkau
+ *
+ */
+
+public class VpeHttpSession extends VpeAbstractHttpSession {
+
+
+ private static VpeHttpSession vpeHttpSession = new VpeHttpSession();
+
+ private VpeHttpSession() {
+ //singleton
+ }
+
+ public static VpeHttpSession getInstance(){
+ return vpeHttpSession;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.servlet.http.HttpSession#getServletContext()
+ */
+ public ServletContext getServletContext() {
+ return VpeServletContext.getInstance();
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeRequest.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeRequest.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeRequest.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractRequest;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeRequest extends VpeAbstractRequest {
+
+ private static VpeRequest vpeRequest = new VpeRequest();
+
+ public static VpeRequest getInstance(){
+ return vpeRequest;
+ }
+
+ private VpeRequest() {
+ //singleton
+ }
+ /* (non-Javadoc)
+ * @see com.icesoft.faces.webapp.http.common.Request#detectEnvironment(com.icesoft.faces.webapp.http.common.Request.Environment)
+ */
+ public void detectEnvironment(Environment environment) throws Exception {
+ environment.servlet(VpeHttpServletRequest.getInstance(), VpeHttpServletResponse.getInstance());
+
+ }
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletContext.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletContext.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletContext.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractServletContext;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeServletContext extends VpeAbstractServletContext {
+
+ private static final VpeServletContext instance = new VpeServletContext();
+ private VpeServletContext() {
+ //singleton
+ }
+ public static VpeServletContext getInstance(){
+ return instance;
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletOutputStream.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletOutputStream.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeServletOutputStream.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractServletOutputStream;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeServletOutputStream extends VpeAbstractServletOutputStream {
+
+ private static final VpeServletOutputStream instance =new VpeServletOutputStream();
+
+ private VpeServletOutputStream(){
+ //singleton
+ }
+ public static VpeServletOutputStream getInstance(){
+ return instance;
+ }
+
+}
Added: workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeUIComponent.java
===================================================================
--- workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeUIComponent.java (rev 0)
+++ workspace/mareshkau/org.jboss.tools.jsf.vpe.icefaces/src/org/jboss/tools/jsf/vpe/template/mock/impl/VpeUIComponent.java 2009-10-01 15:11:15 UTC (rev 17844)
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * 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.template.mock.impl;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.PropertyNotFoundException;
+import javax.faces.el.ValueBinding;
+import org.jboss.tools.jsf.vpe.template.mock.abstr.VpeAbstractUIComponent;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+
+/**
+ * This class is created for using as mock object in original jsf renderers
+ *
+ * @author mareshkau
+ *
+ */
+public class VpeUIComponent extends VpeAbstractUIComponent {
+
+ private Map attributesMap;
+
+ public VpeUIComponent(Element sourceElement) {
+ attributesMap = new HashMap();
+ NamedNodeMap attributes = sourceElement.getAttributes();
+ for(int i=0;i<attributes.getLength();i++){
+ Node item = attributes.item(i);
+ attributesMap.put(item.getNodeName(), item.getNodeValue());
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getAttributes()
+ */
+ @Override
+ public Map getAttributes() {
+ return attributesMap;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getClientId(javax.faces.context.FacesContext)
+ */
+ @Override
+ public String getClientId(FacesContext arg0) {
+ return "uiOutput"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getFacesContext()
+ */
+ @Override
+ protected FacesContext getFacesContext() {
+ return VpeFacesContext.getInstance();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.component.UIComponent#getValueBinding(java.lang.String)
+ */
+ @Override
+ public ValueBinding getValueBinding(String arg0) {
+
+ final String value=arg0;
+ return new ValueBinding() {
+
+ @Override
+ public void setValue(FacesContext arg0, Object arg1)
+ throws EvaluationException, PropertyNotFoundException {
+ }
+
+ @Override
+ public boolean isReadOnly(FacesContext arg0) throws EvaluationException,
+ PropertyNotFoundException {
+ return true;
+ }
+
+ @Override
+ public Object getValue(FacesContext arg0) throws EvaluationException,
+ PropertyNotFoundException {
+ return getAttributes().get(value);
+ }
+
+ @Override
+ public Class getType(FacesContext arg0) throws EvaluationException,
+ PropertyNotFoundException {
+ return null;
+ }
+ };
+ }
+
+}
15 years, 5 months
JBoss Tools SVN: r17843 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/attribute/adapter and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 10:57:01 -0400 (Thu, 01 Oct 2009)
New Revision: 17843
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd 2009-10-01 14:54:06 UTC (rev 17842)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd 2009-10-01 14:57:01 UTC (rev 17843)
@@ -59,6 +59,16 @@
</appInfo>
</annotation>
</attribute>
+ <attribute name="attributeProcessor" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java"/>
+ </appInfo>
+ </annotation>
+ </attribute>
<attribute name="fileName" type="string">
<annotation>
<documentation>
@@ -66,14 +76,11 @@
</documentation>
</annotation>
</attribute>
- <attribute name="attributeProcessor" type="string">
+ <attribute name="entity" type="string">
<annotation>
<documentation>
</documentation>
- <appInfo>
- <meta.attribute kind="java"/>
- </appInfo>
</annotation>
</attribute>
</complexType>
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java 2009-10-01 14:54:06 UTC (rev 17842)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java 2009-10-01 14:57:01 UTC (rev 17843)
@@ -23,7 +23,6 @@
import org.jboss.tools.common.model.filesystems.impl.FileAnyImpl;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
-import org.jboss.tools.common.model.ui.texteditors.propertyeditor.AbstractPropertiesContentAssistProcessor;
public class PropertiesContentAssistProvider implements
IAttributeContentProposalProvider {
@@ -32,12 +31,14 @@
XAttribute attribute;
String fileName = null;
+ String entity = null;
public PropertiesContentAssistProvider() {}
public boolean isRelevant(XModelObject object, XAttribute attribute) {
if(object == null || attribute == null) return false;
if("Property".equals(attribute.getModelEntity().getName())) return true;
+ if("HibConfig3Property".equals(attribute.getModelEntity().getName())) return true;
return false;
}
@@ -45,6 +46,7 @@
this.object = object;
this.data = data;
this.attribute = attribute;
+ entity = attribute.getModelEntity().getName();
fileName = null;
XModelObject f = object;
@@ -56,7 +58,7 @@
public IContentProposalProvider getContentProposalProvider() {
if(fileName == null) return null;
- PropertiesContentProposalProvider provider = createProcessorByFileName(fileName);
+ PropertiesContentProposalProvider provider = createProcessorByFileName(fileName, entity);
return provider;
}
@@ -74,7 +76,7 @@
static String EXTENSION_POINT = "org.jboss.tools.common.model.ui.propertiesFileContentAssist";
- private PropertiesContentProposalProvider createProcessorByFileName(String fileName) {
+ private PropertiesContentProposalProvider createProcessorByFileName(String fileName, String entity) {
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(EXTENSION_POINT);
if(point == null) return null;
IConfigurationElement[] cs = point.getConfigurationElements();
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java 2009-10-01 14:54:06 UTC (rev 17842)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java 2009-10-01 14:57:01 UTC (rev 17843)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.common.model.ui.attribute.adapter;
-import org.eclipse.jface.fieldassist.IContentProposal;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.jboss.tools.common.meta.XAttribute;
import org.jboss.tools.common.meta.action.XEntityData;
@@ -21,15 +20,11 @@
* @author Viacheslav Kabanovich
*
*/
-public class PropertiesContentProposalProvider implements IContentProposalProvider {
+public abstract class PropertiesContentProposalProvider implements IContentProposalProvider {
protected XModelObject object;
protected XEntityData data;
protected XAttribute attribute;
public PropertiesContentProposalProvider() {}
- public IContentProposal[] getProposals(String contents, int position) {
- return null;
- }
-
}
15 years, 5 months
JBoss Tools SVN: r17842 - trunk/cdi/features/org.jboss.tools.cdi.feature.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-10-01 10:54:06 -0400 (Thu, 01 Oct 2009)
New Revision: 17842
Modified:
trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties
Log:
CDI feature has no name because missing included files when building
Modified: trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties
===================================================================
--- trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties 2009-10-01 14:44:12 UTC (rev 17841)
+++ trunk/cdi/features/org.jboss.tools.cdi.feature/build.properties 2009-10-01 14:54:06 UTC (rev 17842)
@@ -1 +1,3 @@
-bin.includes = feature.xml
+bin.includes = feature.xml,\
+ feature.properties,\
+ license.html
15 years, 5 months
JBoss Tools SVN: r17841 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 10:44:12 -0400 (Thu, 01 Oct 2009)
New Revision: 17841
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/PropertiesLoader.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/PropertiesLoader.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/PropertiesLoader.java 2009-10-01 13:48:30 UTC (rev 17840)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/loaders/impl/PropertiesLoader.java 2009-10-01 14:44:12 UTC (rev 17841)
@@ -25,6 +25,7 @@
import org.jboss.tools.common.util.FileUtil;
public class PropertiesLoader implements XObjectLoader {
+ public static String ENT_PROPERTY = "Property"; //$NON-NLS-1$
static String INTERNAL_SEPARATOR = "@"; //$NON-NLS-1$
String defaultLineSeparator = "\r\n"; //$NON-NLS-1$
@@ -123,7 +124,7 @@
p.setProperty("separator", "#"); //obsolete //$NON-NLS-1$ //$NON-NLS-2$
p.setProperty("line-end", ""); //$NON-NLS-1$ //$NON-NLS-2$
- c = object.getModel().createModelObject("Property", p); //$NON-NLS-1$
+ c = object.getModel().createModelObject(ENT_PROPERTY, p);
object.addChild(c);
String dirtyvalue = (i < s.length()) ? s.substring(i + 1) : ""; //$NON-NLS-1$
15 years, 5 months
JBoss Tools SVN: r17840 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui: src/org/jboss/tools/hibernate/ui/xml/editor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:48:30 -0400 (Thu, 01 Oct 2009)
New Revision: 17840
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentProposalProvider.java
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml 2009-10-01 13:47:44 UTC (rev 17839)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/plugin.xml 2009-10-01 13:48:30 UTC (rev 17840)
@@ -66,6 +66,7 @@
point="org.jboss.tools.common.model.ui.propertiesFileContentAssist">
<propertiesFileContentAssist
processor="org.jboss.tools.hibernate.ui.xml.editor.HibernatePropertiesContentAssistProcessor"
+ attributeProcessor="org.jboss.tools.hibernate.ui.xml.editor.HibernatePropertiesContentProposalProvider"
fileName="hibernate.properties"
/>
</extension>
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java 2009-10-01 13:47:44 UTC (rev 17839)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentAssistProcessor.java 2009-10-01 13:48:30 UTC (rev 17840)
@@ -111,7 +111,7 @@
}
} else if("AccessibleJava".equals(attr.getEditor().getName())) { //$NON-NLS-1$
JavaClassContentAssistProvider p = new JavaClassContentAssistProvider();
- p.init(object, attr);
+ p.init(object, null, attr);
IContentProposalProvider pp = p.getContentProposalProvider();
IContentProposal[] ps = pp.getProposals(valuePrefix, valuePrefix.length());
IProject project = EclipseResourceUtil.getProject(object);
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentProposalProvider.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentProposalProvider.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentProposalProvider.java 2009-10-01 13:48:30 UTC (rev 17840)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.hibernate.ui.xml.editor;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.jboss.tools.common.model.ui.attribute.adapter.PropertiesContentProposalProvider;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class HibernatePropertiesContentProposalProvider extends PropertiesContentProposalProvider {
+
+ public IContentProposal[] getProposals(String contents, int position) {
+ return null;
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml.ui/src/org/jboss/tools/hibernate/ui/xml/editor/HibernatePropertiesContentProposalProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r17839 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/attribute/adapter and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:47:44 -0400 (Thu, 01 Oct 2009)
New Revision: 17839
Added:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java
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/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-10-01 13:35:52 UTC (rev 17838)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2009-10-01 13:47:44 UTC (rev 17839)
@@ -499,6 +499,7 @@
point="org.jboss.tools.common.model.ui.attributeContentProposalProviders">
<provider class="org.jboss.tools.common.model.ui.attribute.adapter.DefaultTreeSelectionContentAssistProvider"/>
<provider class="org.jboss.tools.common.model.ui.attribute.adapter.JavaClassContentAssistProvider"/>
+ <provider class="org.jboss.tools.common.model.ui.attribute.adapter.PropertiesContentAssistProvider"/>
</extension>
</plugin>
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java 2009-10-01 13:35:52 UTC (rev 17838)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java 2009-10-01 13:47:44 UTC (rev 17839)
@@ -10,6 +10,10 @@
******************************************************************************/
package org.jboss.tools.common.model.ui.attribute.adapter;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.fieldassist.ContentProposalAdapter;
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.viewers.LabelProvider;
@@ -17,7 +21,9 @@
import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.filesystems.impl.FileAnyImpl;
+import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
+import org.jboss.tools.common.model.ui.texteditors.propertyeditor.AbstractPropertiesContentAssistProcessor;
public class PropertiesContentAssistProvider implements
IAttributeContentProposalProvider {
@@ -25,6 +31,8 @@
XEntityData data;
XAttribute attribute;
+ String fileName = null;
+
public PropertiesContentAssistProvider() {}
public boolean isRelevant(XModelObject object, XAttribute attribute) {
@@ -37,17 +45,19 @@
this.object = object;
this.data = data;
this.attribute = attribute;
+ fileName = null;
XModelObject f = object;
while(f != null && f.getFileType() != XModelObject.FILE) f = f.getParent();
if(f == null) return;
- String fileName = FileAnyImpl.toFileName(f);
+ fileName = FileAnyImpl.toFileName(f);
}
public IContentProposalProvider getContentProposalProvider() {
- // TODO Auto-generated method stub
- return null;
+ if(fileName == null) return null;
+ PropertiesContentProposalProvider provider = createProcessorByFileName(fileName);
+ return provider;
}
public LabelProvider getCustomLabelProbider() {
@@ -62,4 +72,28 @@
}
+ static String EXTENSION_POINT = "org.jboss.tools.common.model.ui.propertiesFileContentAssist";
+
+ private PropertiesContentProposalProvider createProcessorByFileName(String fileName) {
+ IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(EXTENSION_POINT);
+ if(point == null) return null;
+ IConfigurationElement[] cs = point.getConfigurationElements();
+ for (IConfigurationElement c: cs) {
+ if(fileName.equals(c.getAttribute("fileName"))) {
+ try {
+ PropertiesContentProposalProvider p = (PropertiesContentProposalProvider)c.createExecutableExtension("attributeProcessor");
+ p.object = object;
+ p.data = data;
+ p.attribute = attribute;
+ return p;
+ } catch (CoreException e) {
+ ModelUIPlugin.getPluginLog().logError(e);
+ } catch (ClassCastException e2) {
+ ModelUIPlugin.getPluginLog().logError(e2);
+ }
+ }
+ }
+
+ return null;
+ }
}
Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java 2009-10-01 13:47:44 UTC (rev 17839)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.common.model.ui.attribute.adapter;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
+import org.jboss.tools.common.model.XModelObject;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class PropertiesContentProposalProvider implements IContentProposalProvider {
+ protected XModelObject object;
+ protected XEntityData data;
+ protected XAttribute attribute;
+
+ public PropertiesContentProposalProvider() {}
+
+ public IContentProposal[] getProposals(String contents, int position) {
+ return null;
+ }
+
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentProposalProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r17838 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:35:52 -0400 (Thu, 01 Oct 2009)
New Revision: 17838
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java 2009-10-01 13:35:22 UTC (rev 17837)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/edit/ViewIDEditManager.java 2009-10-01 13:35:52 UTC (rev 17838)
@@ -197,7 +197,7 @@
getCellEditor().setValidator(new ViewIDValidator(target));
if (figure instanceof PageFigure){
XAttribute attr = target.getModel().getMetaData().getEntity("SeamPage21").getAttribute("view id");
- AttributeContentProposalProviderFactory.registerContentAssist(target, attr, getCellEditor().getControl());
+ AttributeContentProposalProviderFactory.registerContentAssist(target, null, attr, getCellEditor().getControl());
}else if(figure instanceof ExceptionFigure){
IProject project = (IProject)target.getModel().getProperties().get("project");
15 years, 5 months
JBoss Tools SVN: r17837 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/properties.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:35:22 -0400 (Thu, 01 Oct 2009)
New Revision: 17837
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/properties/SeamELAttributeContentProposalProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/properties/SeamELAttributeContentProposalProvider.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/properties/SeamELAttributeContentProposalProvider.java 2009-10-01 13:34:45 UTC (rev 17836)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/properties/SeamELAttributeContentProposalProvider.java 2009-10-01 13:35:22 UTC (rev 17837)
@@ -26,6 +26,7 @@
import org.jboss.tools.common.el.core.model.ELUtil;
import org.jboss.tools.common.el.core.resolver.SimpleELContext;
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
import org.jboss.tools.common.text.TextProposal;
@@ -67,7 +68,7 @@
return ContentProposalAdapter.PROPOSAL_INSERT;
}
- public void init(XModelObject object, XAttribute attribute) {
+ public void init(XModelObject object, XEntityData data, XAttribute attribute) {
this.object = object;
this.attribute = attribute;
while(object != null && object.getFileType() != XModelObject.FILE) object = object.getParent();
15 years, 5 months
JBoss Tools SVN: r17836 - in trunk/common/plugins/org.jboss.tools.common.model.ui: src/org/jboss/tools/common/model/ui/attribute and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:34:45 -0400 (Thu, 01 Oct 2009)
New Revision: 17836
Added:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/AttributeContentProposalProviderFactory.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IAttributeContentProposalProvider.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultTreeSelectionContentAssistProvider.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd 2009-10-01 13:19:56 UTC (rev 17835)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/schema/propertiesFileContentAssist.exsd 2009-10-01 13:34:45 UTC (rev 17836)
@@ -66,6 +66,16 @@
</documentation>
</annotation>
</attribute>
+ <attribute name="attributeProcessor" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java"/>
+ </appInfo>
+ </annotation>
+ </attribute>
</complexType>
</element>
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/AttributeContentProposalProviderFactory.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/AttributeContentProposalProviderFactory.java 2009-10-01 13:19:56 UTC (rev 17835)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/AttributeContentProposalProviderFactory.java 2009-10-01 13:34:45 UTC (rev 17836)
@@ -39,6 +39,7 @@
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.attribute.adapter.DefaultValueAdapter;
@@ -68,18 +69,22 @@
public static void registerContentAssist(DefaultValueAdapter valueAdapter, Control control, IContentProposalListener2 listener) {
XModelObject object = valueAdapter.getModelObject();
+ XEntityData data = null;
+ if(valueAdapter.getAttributeData() != null) {
+ data = valueAdapter.getAttributeData().getEntityData();
+ }
XAttribute attr = valueAdapter.getAttribute();
if (attr == null && valueAdapter.getAttributeData() != null) {
attr = valueAdapter.getAttributeData().getAttribute();
}
- registerContentAssist(object, attr, control, listener);
+ registerContentAssist(object, data, attr, control, listener);
}
- public static void registerContentAssist(XModelObject object, XAttribute attr, Control control) {
- registerContentAssist(object, attr, control, null);
+ public static void registerContentAssist(XModelObject object, XEntityData data, XAttribute attr, Control control) {
+ registerContentAssist(object, data, attr, control, null);
}
- public static void registerContentAssist(XModelObject object, XAttribute attr, Control control, IContentProposalListener2 listener) {
+ public static void registerContentAssist(XModelObject object, XEntityData data, XAttribute attr, Control control, IContentProposalListener2 listener) {
IControlContentAdapter controlAdapter = control instanceof Text
? new TextContentAdapter()
: control instanceof Combo
@@ -93,7 +98,7 @@
.getContentProposalProviders(object, attr);
boolean added = false;
for (IAttributeContentProposalProvider p : ps) {
- p.init(object, attr);
+ p.init(object, data, attr);
IContentProposalProvider cpp = p.getContentProposalProvider();
if (cpp == null)
continue;
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IAttributeContentProposalProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IAttributeContentProposalProvider.java 2009-10-01 13:19:56 UTC (rev 17835)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/IAttributeContentProposalProvider.java 2009-10-01 13:34:45 UTC (rev 17836)
@@ -13,6 +13,7 @@
import org.eclipse.jface.fieldassist.IContentProposalProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
/**
@@ -22,7 +23,7 @@
public boolean isRelevant(XModelObject object, XAttribute attribute);
- public void init(XModelObject object, XAttribute attribute);
+ public void init(XModelObject object, XEntityData data, XAttribute attribute);
public IContentProposalProvider getContentProposalProvider();
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultTreeSelectionContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultTreeSelectionContentAssistProvider.java 2009-10-01 13:19:56 UTC (rev 17835)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/DefaultTreeSelectionContentAssistProvider.java 2009-10-01 13:34:45 UTC (rev 17836)
@@ -17,6 +17,7 @@
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.*;
import org.jboss.tools.common.model.ui.attribute.AttributeContentProposalProviderFactory;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
@@ -97,7 +98,7 @@
return ContentProposalAdapter.PROPOSAL_REPLACE;
}
- public void init(XModelObject object, XAttribute attribute) {
+ public void init(XModelObject object, XEntityData data, XAttribute attribute) {
this.object = object;
this.attribute = attribute;
treeProvider = new DefaultXAttributeTreeContentProvider(attribute, object.getModel(), object);
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-10-01 13:19:56 UTC (rev 17835)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/JavaClassContentAssistProvider.java 2009-10-01 13:34:45 UTC (rev 17836)
@@ -26,6 +26,7 @@
import org.eclipse.pde.internal.ui.editor.contentassist.TypePackageCompletionProcessor;
import org.eclipse.swt.graphics.Image;
import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
import org.jboss.tools.common.model.ui.attribute.editor.JavaHyperlinkCueLabelProvider;
@@ -44,7 +45,7 @@
return ContentProposalAdapter.PROPOSAL_REPLACE;
}
- public void init(XModelObject object, XAttribute attribute) {
+ public void init(XModelObject object, XEntityData data, XAttribute attribute) {
this.object = object;
this.attribute = attribute;
}
Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java 2009-10-01 13:34:45 UTC (rev 17836)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.common.model.ui.attribute.adapter;
+
+import org.eclipse.jface.fieldassist.ContentProposalAdapter;
+import org.eclipse.jface.fieldassist.IContentProposalProvider;
+import org.eclipse.jface.viewers.LabelProvider;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.action.XEntityData;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.filesystems.impl.FileAnyImpl;
+import org.jboss.tools.common.model.ui.attribute.IAttributeContentProposalProvider;
+
+public class PropertiesContentAssistProvider implements
+ IAttributeContentProposalProvider {
+ XModelObject object;
+ XEntityData data;
+ XAttribute attribute;
+
+ public PropertiesContentAssistProvider() {}
+
+ public boolean isRelevant(XModelObject object, XAttribute attribute) {
+ if(object == null || attribute == null) return false;
+ if("Property".equals(attribute.getModelEntity().getName())) return true;
+ return false;
+ }
+
+ public void init(XModelObject object, XEntityData data, XAttribute attribute) {
+ this.object = object;
+ this.data = data;
+ this.attribute = attribute;
+
+ XModelObject f = object;
+ while(f != null && f.getFileType() != XModelObject.FILE) f = f.getParent();
+ if(f == null) return;
+ String fileName = FileAnyImpl.toFileName(f);
+
+ }
+
+ public IContentProposalProvider getContentProposalProvider() {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public LabelProvider getCustomLabelProbider() {
+ return null;
+ }
+
+ public int getProposalAcceptanceStyle() {
+ return ContentProposalAdapter.PROPOSAL_REPLACE;
+ }
+
+ public void dispose() {
+
+ }
+
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/adapter/PropertiesContentAssistProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r17835 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action: impl and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-10-01 09:19:56 -0400 (Thu, 01 Oct 2009)
New Revision: 17835
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/XAttributeData.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XAttributeDataImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XEntityDataImpl.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4916
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/XAttributeData.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/XAttributeData.java 2009-10-01 12:33:57 UTC (rev 17834)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/XAttributeData.java 2009-10-01 13:19:56 UTC (rev 17835)
@@ -13,6 +13,7 @@
import org.jboss.tools.common.meta.XAttribute;
public interface XAttributeData {
+ public XEntityData getEntityData();
public boolean getMandatoryFlag();
public String getValue();
public void setValue(String value);
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XAttributeDataImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XAttributeDataImpl.java 2009-10-01 12:33:57 UTC (rev 17834)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XAttributeDataImpl.java 2009-10-01 13:19:56 UTC (rev 17835)
@@ -13,6 +13,7 @@
import org.w3c.dom.*;
import org.jboss.tools.common.meta.*;
import org.jboss.tools.common.meta.action.XAttributeData;
+import org.jboss.tools.common.meta.action.XEntityData;
import org.jboss.tools.common.meta.impl.*;
import org.jboss.tools.common.model.XModelObjectConstants;
@@ -24,9 +25,18 @@
private boolean isAdvanced;
private String value = null;
private boolean references = false;
+ private XEntityDataImpl entityData;
public XAttributeDataImpl() {}
+ public XEntityData getEntityData() {
+ return entityData;
+ }
+
+ public void setEntityData(XEntityDataImpl entityData) {
+ this.entityData = entityData;
+ }
+
public boolean getMandatoryFlag() {
return mandatory && !isAdvanced;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XEntityDataImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XEntityDataImpl.java 2009-10-01 12:33:57 UTC (rev 17834)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/XEntityDataImpl.java 2009-10-01 13:19:56 UTC (rev 17835)
@@ -55,6 +55,7 @@
attributes = new XAttributeDataImpl[cs.length];
for (int i = 0; i < cs.length; i++) {
attributes[i] = new XAttributeDataImpl();
+ attributes[i].setEntityData(this);
attributes[i].load(cs[i]);
}
}
@@ -77,6 +78,7 @@
impl.attributes[i] = XAttributeDataImpl.create(impl.entityname,
data[i + 1][0],
(data[i + 1].length > 1 && XModelObjectConstants.YES.equals(data[i + 1][1])));
+ impl.attributes[i].setEntityData(impl);
}
return impl;
}
15 years, 5 months