| java.lang.Object org.netbeans.modules.visualweb.api.insync.InSyncService org.netbeans.modules.visualweb.insync.InSyncServiceProvider
InSyncServiceProvider | public class InSyncServiceProvider extends InSyncService (Code) | | This class provides a concrete implementation of InSyncService.
As well, it provides some functionality to handle the mapping of Java <-> JSP files.
This code should really exist in a Faces module to InSync, but these services will
be needed once I start removing any knowledge of this mapping from all other modules.
The key would be to creating a Faces InSync module, and have a FacesInSyncService
that modules would then depend on. Otherwise we cannot break out the Faces specific
functionality out of InSync's core.
TODO
author: eric |
Method Summary | |
public void | addLocalStyleValueForElement(Element element, int style, String value) | public void | appendParsedString(Document doc, org.w3c.dom.Node node, String xhtml, MarkupDesignBean bean) | public void | clearHtmlForMarkupFile(FileObject markupFile) | public String | computeFileName(Object location) | public int | computeLine(Document doc, Element element) | public int | computeLineNumber(Object location, int lineno) | public void | copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject) This is a hack until we get things done correctly with integration of Retouche.
Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject.
Go through and rename the EL expression references to the original page name to the new page name.
This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way
that prevent us from creating a simple fix that will yield the same results. | public void | copyMarkupDesignBeanForElement(Element fromElement, Element toElement) | public void | copyMarkupMouseRegionForElement(Element fromElement, Element toElement) | public void | doOutsideOfRefactoringSession(Runnable runnable) | public String | expandHtmlEntities(String html, boolean warn, org.w3c.dom.Node node) | public String | fromURL(String url) | public static InSyncServiceProvider | get() | public String | getBeanNameForJsp(FileObject fileObject) | public ClassLoader | getContextClassLoader(DesignContext designContext) | public ClassLoader | getContextClassLoader(DesignBean designBean) | public ClassLoader | getContextClassLoader(DesignProperty designProperty) | public ClassLoader | getContextClassLoader(DesignEvent designEvent) | public URL | getDocumentUrl(Document doc) | public int | getExpandedOffset(String unexpanded, int unexpandedOffset) | public FileObject | getFileObject(Document doc) | public Element | getHtmlBodyForMarkupFile(FileObject markupFile) | public Document | getHtmlDomForMarkupFile(FileObject markupFile) | public DocumentFragment | getHtmlDomFragmentForDocument(Document document) | public String | getHtmlStream(org.w3c.dom.Node node) Generate the html string from the given node. | public String | getHtmlStream(Element element) | public String | getHtmlStream(org.w3c.dom.Document document) Generate the html string from the given element. | public String | getHtmlStream(DocumentFragment df) | public DataObject | getJavaDataObjectEquivalent(DataObject dataObject, String originalName, boolean forceCreate) | public DataObject | getJavaDataObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate) | public DataObject | getJavaDataObjectEquivalent(Node node, String originalName, boolean forceCreate) | public FileObject | getJavaFileObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate) | public FileObject | getJavaFolderForJsp(FileObject fileObject) | public FileObject | getJavaForJsp(FileObject jspFileObject) Gets corresponding java file object for specified jsp file object if exists. | public Document | getJspDomForMarkupFile(FileObject markupFile) | public MarkupDesignBean | getMarkupDesignBeanForElement(Element element) | public FileObject | getMarkupFileObjectForDesignContext(DesignContext designContext) | public MarkupMouseRegion | getMarkupMouseRegionForElement(Element element) | public String[] | getMimeTypes() | public Project | getProjectForDesignProject(DesignProject designProject) | public InSyncService.RaveErrorHandler | getRaveErrorHandler() | public Exception | getRenderFailure(FileObject markupFile) | public DesignBean | getRenderFailureComponent(FileObject markupFile) | public int | getUnexpandedOffset(String unexpanded, int expandedOffset) | public URL | getUrl(Document doc) | public List | getWebPages(Project project, boolean includePages, boolean includeFragments) | public void | initModelsForWebformFile(Project project, FileObject webformFile) | public boolean | isBraveheartPage(Document dom) | public static boolean | isComponentRendersChildren(DesignBean designBean) | public boolean | isWebPage(FileObject fo) | public boolean | isWoodstockPage(Document dom) | public void | jspDataObjectTopComponentActivated(DataObject dobj) | public void | jspDataObjectTopComponentHidden(DataObject dobj) | public void | jspDataObjectTopComponentShown(DataObject dobj) | protected InSyncServiceProviderQuery | newQuery(FileObject fileObject, DataObject dataObject) | public void | removeLocalStyleValueForElement(Element element, int style) | public DocumentFragment | renderHtml(FileObject markupFile, MarkupDesignBean bean) | public URL | resolveUrl(URL base, Document document, String src) | public void | setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean) | public void | setUrl(Document doc, URL url) | public WriteLock | writeLockContext(DesignContext designContext, String message) | public void | writeUnlockContext(DesignContext designContext, WriteLock lock) |
InSyncServiceProvider | public InSyncServiceProvider()(Code) | | |
addLocalStyleValueForElement | public void addLocalStyleValueForElement(Element element, int style, String value)(Code) | | |
clearHtmlForMarkupFile | public void clearHtmlForMarkupFile(FileObject markupFile)(Code) | | |
computeLineNumber | public int computeLineNumber(Object location, int lineno)(Code) | | |
copied | public void copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)(Code) | | This is a hack until we get things done correctly with integration of Retouche.
Should only be called from JsfJspDataObject to notify us that toDataObject was created by copying fromDataObject.
Go through and rename the EL expression references to the original page name to the new page name.
This is NOT the way to fix the problem of copy, however there are too many other issues that get in the way
that prevent us from creating a simple fix that will yield the same results. Since ALL of this code will change
when we properly integrate insync into platform, this is throw away code.
TODO: Remove
Parameters: fromDataObject - Parameters: toDataObject - |
copyMarkupDesignBeanForElement | public void copyMarkupDesignBeanForElement(Element fromElement, Element toElement)(Code) | | |
copyMarkupMouseRegionForElement | public void copyMarkupMouseRegionForElement(Element fromElement, Element toElement)(Code) | | |
doOutsideOfRefactoringSession | public void doOutsideOfRefactoringSession(Runnable runnable)(Code) | | |
getBeanNameForJsp | public String getBeanNameForJsp(FileObject fileObject)(Code) | | |
getExpandedOffset | public int getExpandedOffset(String unexpanded, int unexpandedOffset)(Code) | | |
getHtmlBodyForMarkupFile | public Element getHtmlBodyForMarkupFile(FileObject markupFile)(Code) | | |
getHtmlDomForMarkupFile | public Document getHtmlDomForMarkupFile(FileObject markupFile)(Code) | | |
getHtmlStream | public String getHtmlStream(org.w3c.dom.Node node)(Code) | | Generate the html string from the given node. This will return
an empty string unless the Node is an Element or a DocumentFragment
or a Document.
|
getHtmlStream | public String getHtmlStream(Element element)(Code) | | Generate the html string from the given element
|
getJavaDataObjectEquivalent | public DataObject getJavaDataObjectEquivalent(DataObject dataObject, String originalName, boolean forceCreate)(Code) | | |
getJavaDataObjectEquivalent | public DataObject getJavaDataObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)(Code) | | |
getJavaDataObjectEquivalent | public DataObject getJavaDataObjectEquivalent(Node node, String originalName, boolean forceCreate)(Code) | | |
getJavaFileObjectEquivalent | public FileObject getJavaFileObjectEquivalent(FileObject fileObject, String originalName, boolean forceCreate)(Code) | | |
getJavaFolderForJsp | public FileObject getJavaFolderForJsp(FileObject fileObject)(Code) | | |
getJavaForJsp | public FileObject getJavaForJsp(FileObject jspFileObject)(Code) | | Gets corresponding java file object for specified jsp file object if exists.
corresponding java file object or null |
getJspDomForMarkupFile | public Document getJspDomForMarkupFile(FileObject markupFile)(Code) | | |
getMarkupFileObjectForDesignContext | public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(Code) | | |
getProjectForDesignProject | public Project getProjectForDesignProject(DesignProject designProject)(Code) | | |
getRenderFailure | public Exception getRenderFailure(FileObject markupFile)(Code) | | |
getRenderFailureComponent | public DesignBean getRenderFailureComponent(FileObject markupFile)(Code) | | |
getUnexpandedOffset | public int getUnexpandedOffset(String unexpanded, int expandedOffset)(Code) | | |
getWebPages | public List getWebPages(Project project, boolean includePages, boolean includeFragments)(Code) | | |
initModelsForWebformFile | public void initModelsForWebformFile(Project project, FileObject webformFile)(Code) | | |
isComponentRendersChildren | public static boolean isComponentRendersChildren(DesignBean designBean)(Code) | | |
isWebPage | public boolean isWebPage(FileObject fo)(Code) | | |
jspDataObjectTopComponentActivated | public void jspDataObjectTopComponentActivated(DataObject dobj)(Code) | | |
jspDataObjectTopComponentHidden | public void jspDataObjectTopComponentHidden(DataObject dobj)(Code) | | |
jspDataObjectTopComponentShown | public void jspDataObjectTopComponentShown(DataObject dobj)(Code) | | |
removeLocalStyleValueForElement | public void removeLocalStyleValueForElement(Element element, int style)(Code) | | |
writeUnlockContext | public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code) | | |
Methods inherited from org.netbeans.modules.visualweb.api.insync.InSyncService | abstract public void addLocalStyleValueForElement(Element element, int style, String value)(Code)(Java Doc) abstract public void appendParsedString(Document doc, Node node, String xhtml, MarkupDesignBean bean)(Code)(Java Doc) abstract public String computeFileName(Object location)(Code)(Java Doc) abstract public int computeLine(Document document, Element element)(Code)(Java Doc) abstract public int computeLineNumber(Object location, int line)(Code)(Java Doc) abstract public void copied(JsfJspDataObjectMarker fromDataObject, JsfJspDataObjectMarker toDataObject)(Code)(Java Doc) abstract public void copyMarkupDesignBeanForElement(Element fromElement, Element toElement)(Code)(Java Doc) abstract public void copyMarkupMouseRegionForElement(Element fromElement, Element toElement)(Code)(Java Doc) abstract public void doOutsideOfRefactoringSession(Runnable runnable)(Code)(Java Doc) abstract public String expandHtmlEntities(String html, boolean warn, Node node)(Code)(Java Doc) abstract public String fromURL(String url)(Code)(Java Doc) abstract public String getBeanNameForJsp(FileObject fileObject)(Code)(Java Doc) abstract public ClassLoader getContextClassLoader(DesignContext designContext)(Code)(Java Doc) abstract public ClassLoader getContextClassLoader(DesignBean designBean)(Code)(Java Doc) abstract public ClassLoader getContextClassLoader(DesignProperty designProperty)(Code)(Java Doc) abstract public ClassLoader getContextClassLoader(DesignEvent designEvent)(Code)(Java Doc) abstract public URL getDocumentUrl(Document doc)(Code)(Java Doc) abstract public int getExpandedOffset(String unexpanded, int unexpandedOffset)(Code)(Java Doc) abstract public FileObject getFileObject(Document doc)(Code)(Java Doc) abstract public Element getHtmlBodyForMarkupFile(FileObject markupFile)(Code)(Java Doc) abstract public DocumentFragment getHtmlDomFragmentForDocument(Document document)(Code)(Java Doc) abstract public String getHtmlStream(Node node)(Code)(Java Doc) abstract public String getHtmlStream(Element element)(Code)(Java Doc) abstract public String getHtmlStream(Document document)(Code)(Java Doc) abstract public String getHtmlStream(DocumentFragment df)(Code)(Java Doc) abstract public MarkupDesignBean getMarkupDesignBeanForElement(Element element)(Code)(Java Doc) abstract public FileObject getMarkupFileObjectForDesignContext(DesignContext designContext)(Code)(Java Doc) abstract public MarkupMouseRegion getMarkupMouseRegionForElement(Element element)(Code)(Java Doc) abstract public Project getProjectForDesignProject(DesignProject designProject)(Code)(Java Doc) public static InSyncService getProvider()(Code)(Java Doc) abstract public RaveErrorHandler getRaveErrorHandler()(Code)(Java Doc) abstract public int getUnexpandedOffset(String unexpanded, int expandedOffset)(Code)(Java Doc) abstract public URL getUrl(Document doc)(Code)(Java Doc) abstract public List getWebPages(Project project, boolean includePages, boolean includeFragments)(Code)(Java Doc) abstract public void initModelsForWebformFile(Project project, FileObject webformFile)(Code)(Java Doc) abstract public void jspDataObjectTopComponentActivated(DataObject dobj)(Code)(Java Doc) abstract public void jspDataObjectTopComponentHidden(DataObject dobj)(Code)(Java Doc) abstract public void jspDataObjectTopComponentShown(DataObject dobj)(Code)(Java Doc) abstract public void removeLocalStyleValueForElement(Element element, int style)(Code)(Java Doc) abstract public URL resolveUrl(URL base, Document document, String url)(Code)(Java Doc) abstract public void setMarkupDesignBeanForElement(Element element, MarkupDesignBean markupDesignBean)(Code)(Java Doc) abstract public void setUrl(Document doc, URL url)(Code)(Java Doc) abstract public WriteLock writeLockContext(DesignContext designContext, String message)(Code)(Java Doc) abstract public void writeUnlockContext(DesignContext designContext, WriteLock lock)(Code)(Java Doc)
|
|
|