Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/componentcore/AbstractVirtualComponentQuery.java')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/componentcore/AbstractVirtualComponentQuery.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/componentcore/AbstractVirtualComponentQuery.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/componentcore/AbstractVirtualComponentQuery.java
deleted file mode 100644
index ae797b30f..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/internal/componentcore/AbstractVirtualComponentQuery.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.jst.jsf.common.internal.componentcore;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.wst.common.componentcore.ComponentCore;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
-
-/**
- * Wraps parts of the component core in a way that always PDE-free injection
- * during test.
- *
- * @author cbateman
- *
- */
-public abstract class AbstractVirtualComponentQuery
-{
- /**
- * TODO: reconcile with duplicate. This was taken from JSFAppConfigUtils.
- *
- * Gets an IVirtualFolder instance which represents the root context's web
- * content folder.
- *
- * @param project
- * IProject instance for which to get the folder.
- * @return IVirtualFolder instance which represents the root context's web
- * content folder.
- */
- public abstract IVirtualFolder getWebContentFolder(IProject project);
-
- /**
- * The default implementation that makes static calls to ComponentCore.
- * @author cbateman
- *
- */
- public static class DefaultVirtualComponentQuery extends
- AbstractVirtualComponentQuery
- {
- @Override
- public IVirtualFolder getWebContentFolder(IProject project)
- {
- IVirtualFolder folder = null;
- IVirtualComponent component = ComponentCore
- .createComponent(project);
- if (component != null)
- {
- folder = component.getRootFolder();
- }
- return folder;
- }
- }
-}

Back to the top