/** * Similar to the call in HTMLContentAssistProcessor. Pass in a node, it * tells you if the document is XML type. * * @param node * */ protected boolean getXML(Node node) { if (node == null) { return false; } Document doc = null; doc = (node.getNodeType() != Node.DOCUMENT_NODE) ? node.getOwnerDocument() : ((Document) node); return (doc instanceof IDOMDocument) && ((IDOMDocument) doc).isXMLType(); }
protected boolean isXMLType(IDOMModel structuredModel) { boolean result = false; if (structuredModel != null && structuredModel != null) { IDOMDocument document = structuredModel.getDocument(); if (document != null) result = document.isXMLType(); } return result; }
private boolean isXMLType(IDOMModel structuredModel) { boolean result = false; if (structuredModel != null && structuredModel != null) { IDOMDocument document = structuredModel.getDocument(); if (document != null) result = document.isXMLType(); } return result; }
if (model.getDocument().isXMLType())
if (! model.getDocument().isXMLType()){
if ((parent != null) && (parent.getNodeType() == Node.DOCUMENT_NODE) && ((IDOMDocument) parent).isXMLType() && !isCursorAfterXMLPI(contentAssistRequest)) { return;
pref.setQuoteAttrValues(true); pref.setFormatSource(false); if (model.getDocument().isXMLType()) { // XHTML pref.setTagNameCase(HTMLCorePreferenceNames.LOWER); pref.setAttrNameCase(HTMLCorePreferenceNames.LOWER);