Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbateman2007-09-24 23:55:15 +0000
committercbateman2007-09-24 23:55:15 +0000
commitc2032e9369e56d92f1bcbb7246b328ac7f24085f (patch)
treed218fec39d166087b3e02175b8b45b8d0a4db374 /jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter
parented9381894a6e978e868aee564f0b9a93a9b1f7df (diff)
downloadwebtools.jsf-c2032e9369e56d92f1bcbb7246b328ac7f24085f.tar.gz
webtools.jsf-c2032e9369e56d92f1bcbb7246b328ac7f24085f.tar.xz
webtools.jsf-c2032e9369e56d92f1bcbb7246b328ac7f24085f.zip
Added javadocs and eliminated unnecessary call through PDPlugin to get structured model.
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter')
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/jsp/IncludeTagConverterPreview.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/jsp/IncludeTagConverterPreview.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/jsp/IncludeTagConverterPreview.java
index cc9de3622..73aa8255e 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/jsp/IncludeTagConverterPreview.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/converter/jsp/IncludeTagConverterPreview.java
@@ -30,6 +30,7 @@ import org.eclipse.jst.pagedesigner.jsp.core.internal.pagevar.DocumentPageVariab
import org.eclipse.jst.pagedesigner.jsp.core.pagevar.adapter.PageVariableAdapterFactory;
import org.eclipse.jst.pagedesigner.preview.PageExpressionContext;
import org.eclipse.jst.pagedesigner.preview.PreviewConvertContext;
+import org.eclipse.wst.sse.core.StructuredModelManager;
import org.eclipse.wst.sse.core.internal.util.URIResolver;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
@@ -51,6 +52,7 @@ public class IncludeTagConverterPreview extends AbstractTagConverter {
/**
* @param host
+ * @param fileAttrname
*/
public IncludeTagConverterPreview(Element host, String fileAttrname) {
super(host);
@@ -77,6 +79,10 @@ public class IncludeTagConverterPreview extends AbstractTagConverter {
return previewFile(file);
}
+ /**
+ * @param includedPath
+ * @return the IFile corresponding to the IPath
+ */
public IFile getFile(IPath includedPath) {
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IProject[] projects = workspaceRoot.getProjects();
@@ -95,13 +101,17 @@ public class IncludeTagConverterPreview extends AbstractTagConverter {
return null;
}
+ /**
+ * @param file
+ * @return the Element
+ */
public Element previewFile(IFile file) {
IDOMModel xmlModel = null;
DocumentPageVariableAdapter provider = null;
boolean pushedPageVarProvider = false;
try {
- xmlModel = (IDOMModel) PDPlugin.getModelManager().getModelForRead(
+ xmlModel = (IDOMModel) StructuredModelManager.getModelManager().getModelForRead(
file);
if (xmlModel != null) {
IDOMDocument doc = xmlModel.getDocument();

Back to the top