mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-115240 Tags from scheme helptopic.xsd are not recognized
WEB-7228 fix rolled back
This commit is contained in:
@@ -2001,6 +2001,18 @@ public class XmlHighlightingTest extends DaemonAnalyzerTestCase {
|
||||
}, true, true);
|
||||
}
|
||||
|
||||
public void testDtdWithXsd() throws Exception {
|
||||
doTest(
|
||||
new VirtualFile[] {
|
||||
getVirtualFile(BASE_PATH + "DtdWithXsd/help.xml"),
|
||||
getVirtualFile(BASE_PATH + "DtdWithXsd/helptopic.xsd"),
|
||||
getVirtualFile(BASE_PATH + "DtdWithXsd/html-entities.dtd")
|
||||
},
|
||||
true,
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE topic SYSTEM "html-entities.dtd">
|
||||
<topic id="Directories_Used_by_product_to_Store_Settings_Caches_Plugins_and_Logs" xsi:noNamespaceSchemaLocation="helptopic.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<header >
|
||||
|
||||
<intro>
|
||||
|
||||
<p>Location of the IDE files depends on the operating system, and %product% version.</p>
|
||||
<p>In this section:</p>
|
||||
<tag-list of="chapter" title-source="title"/>
|
||||
</intro>
|
||||
</header>
|
||||
<content>
|
||||
<chapter title="Windows">
|
||||
<p>All the files are located under this directory by default:</p>
|
||||
<p>Windows Vista, 7, 8</p>
|
||||
<code style="block">
|
||||
<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
|
||||
</code>
|
||||
<p>Windows XP</p>
|
||||
<code style="block">
|
||||
<SYSTEM DRIVE>\Documents and Settings\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>
|
||||
</code>
|
||||
<h3>Example</h3>
|
||||
<list>
|
||||
<li for="ij">IntelliJ IDEA 13 Ultimate Edition:<br/>
|
||||
<code style="block">
|
||||
c:\Users\John\.IntelliJIdea13\
|
||||
</code>
|
||||
</li>
|
||||
<li for="ij">IntelliJ IDEA 13 Community Edition
|
||||
<code style="block">
|
||||
c:\Users\John\.IdeaIC13\
|
||||
</code>
|
||||
</li>
|
||||
<li for="ps,ws">WebStorm 7.0, PhpStorm 7.0
|
||||
<code style="block">
|
||||
c:\Users\John\.WebIde70\
|
||||
</code>
|
||||
</li>
|
||||
<li for="rm">RubyMine 6.0
|
||||
<code style="block">
|
||||
c:\Users\John\.RubyMine60\
|
||||
</code>
|
||||
</li>
|
||||
<li for="py">PyCharm 3.0
|
||||
<code style="block">
|
||||
c:\Users\John\.PyCharm30\
|
||||
</code>
|
||||
</li>
|
||||
</list>
|
||||
<!--
|
||||
<h3>Sub-directories</h3>
|
||||
<p>Under this directory you'll find the following sub-directories:</p>
|
||||
<list>
|
||||
<li><b>config</b>: configuration (idea.config.path)</li>
|
||||
<li><b>config\plugins</b>: plugins (idea.plugins.path)</li>
|
||||
<li><b>system</b>: caches, local history, etc (idea.system.path)</li>
|
||||
<li><b>system\log</b>: logs and thread dumps (idea.log.path)</li>
|
||||
</list>
|
||||
-->
|
||||
<p>Refer to the page <a href="topicId47">Project and IDE Settings</a>.</p>
|
||||
</chapter>
|
||||
<chapter title="Linux and the Other UNIX Systems" caps="aswritten">
|
||||
<p>Product directory starting with dot can be found in the user home directory. The pattern is:</p>
|
||||
<code style="block">
|
||||
~/.<PRODUCT><VERSION>
|
||||
</code>
|
||||
<p>~ is an alias for the home directory, for example <code style="inline">/home/john</code>.</p>
|
||||
</chapter>
|
||||
<chapter title="MacOS" caps="aswritten">
|
||||
<list>
|
||||
<li>
|
||||
<b>Configuration</b><br/>
|
||||
<code style="block">
|
||||
~/Library/Preferences/<PRODUCT><VERSION>
|
||||
</code>
|
||||
</li>
|
||||
<li>
|
||||
<b>Caches</b><br/>
|
||||
<code style="block">
|
||||
~/Library/Caches/<PRODUCT><VERSION>
|
||||
</code>
|
||||
</li>
|
||||
<li>
|
||||
<b>Plugins</b><br/>
|
||||
<code style="block">
|
||||
~/Library/Application Support/<PRODUCT><VERSION>
|
||||
</code>
|
||||
</li>
|
||||
<li>
|
||||
<b>Logs</b><br/>
|
||||
<code style="block">
|
||||
~/Library/Logs/<PRODUCT><VERSION>
|
||||
</code>
|
||||
</li>
|
||||
</list>
|
||||
<p>where <PRODUCT> is <for id="rm,py,ij">%product%</for><for id="ij">(%product% Ultimate Edition),
|
||||
IdeaIC (%product% Community Edition)</for><for id="ps,ws">WebIde (WebStrom and PhpStorm use this common directory)</for>. </p>
|
||||
</chapter>
|
||||
</content>
|
||||
<seealso>
|
||||
<category id="2">
|
||||
<link>topicId47</link><!--project and ide settings-->
|
||||
</category>
|
||||
</seealso>
|
||||
</topic>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!ENTITY Command "⌘">
|
||||
<!ENTITY Option "⌥">
|
||||
<!ENTITY Control "⌃">
|
||||
<!ENTITY Shift "⇧">
|
||||
<!ENTITY CapsLock "⇪">
|
||||
<!ENTITY Return "↩">
|
||||
<!ENTITY Enter "⌤">
|
||||
<!ENTITY Delete "⌫">
|
||||
<!ENTITY ForwardDelete "⌦">
|
||||
<!ENTITY Escape "⎋">
|
||||
<!ENTITY MenuItem "▸">
|
||||
<!ENTITY Eject "⏏">
|
||||
<!ENTITY Power "⌽">
|
||||
<!ENTITY Tab "⇥">
|
||||
<!ENTITY PageUp "⇞">
|
||||
<!ENTITY PageDown "⇟">
|
||||
<!ENTITY Home "↖">
|
||||
<!ENTITY End "↘">
|
||||
<!ENTITY LeftArrow "←">
|
||||
<!ENTITY RightArrow "→">
|
||||
<!ENTITY UpArrow "↑">
|
||||
<!ENTITY DownArrow "↓">
|
||||
<!ENTITY pcnt "%">
|
||||
<!ENTITY quot """>
|
||||
<!ENTITY apos "'">
|
||||
<!ENTITY amp "&">
|
||||
<!ENTITY lt "<">
|
||||
<!ENTITY gt ">">
|
||||
<!ENTITY nbsp " ">
|
||||
<!ENTITY iexcl "¡">
|
||||
<!ENTITY cent "¢">
|
||||
<!ENTITY pound "£">
|
||||
<!ENTITY curren "¤">
|
||||
<!ENTITY yen "¥">
|
||||
<!ENTITY brvbar "¦">
|
||||
<!ENTITY sect "§">
|
||||
<!ENTITY uml "¨">
|
||||
<!ENTITY copy "©">
|
||||
<!ENTITY ordf "ª">
|
||||
<!ENTITY laquo "«">
|
||||
<!ENTITY not "¬">
|
||||
<!ENTITY shy "­">
|
||||
<!ENTITY reg "®">
|
||||
<!ENTITY macr "¯">
|
||||
<!ENTITY deg "°">
|
||||
<!ENTITY plusmn "±">
|
||||
<!ENTITY sup2 "²">
|
||||
<!ENTITY sup3 "³">
|
||||
<!ENTITY acute "´">
|
||||
<!ENTITY micro "µ">
|
||||
<!ENTITY para "¶">
|
||||
<!ENTITY middot "·">
|
||||
<!ENTITY cedil "¸">
|
||||
<!ENTITY sup "¹">
|
||||
<!ENTITY ordm "º">
|
||||
<!ENTITY raquo "»">
|
||||
<!ENTITY frac14 "¼">
|
||||
<!ENTITY frac12 "½">
|
||||
<!ENTITY frac34 "¾">
|
||||
<!ENTITY iquest "¿">
|
||||
<!ENTITY times "×">
|
||||
<!ENTITY divide "÷">
|
||||
<!ENTITY Agrave "À">
|
||||
<!ENTITY Aacute "Á">
|
||||
<!ENTITY Acirc "Â">
|
||||
<!ENTITY Atilde "Ã">
|
||||
<!ENTITY Auml "Ä">
|
||||
<!ENTITY Aring "Å">
|
||||
<!ENTITY AElig "Æ">
|
||||
<!ENTITY Ccedil "Ç">
|
||||
<!ENTITY Egrave "È">
|
||||
<!ENTITY Eacute "É">
|
||||
<!ENTITY Ecirc "Ê">
|
||||
<!ENTITY Euml "Ë">
|
||||
<!ENTITY Igrave "Ì">
|
||||
<!ENTITY Iacute "Í">
|
||||
<!ENTITY Icirc "Î">
|
||||
<!ENTITY Iuml "Ï">
|
||||
<!ENTITY ETH "Ð">
|
||||
<!ENTITY Ntilde "Ñ">
|
||||
<!ENTITY Ograve "Ò">
|
||||
<!ENTITY Oacute "Ó">
|
||||
<!ENTITY Ocirc "Ô">
|
||||
<!ENTITY Otilde "Õ">
|
||||
<!ENTITY Ouml "Ö">
|
||||
<!ENTITY Oslash "Ø">
|
||||
<!ENTITY Ugrave "Ù">
|
||||
<!ENTITY Uacute "Ú">
|
||||
<!ENTITY Ucirc "Û">
|
||||
<!ENTITY Uuml "Ü">
|
||||
<!ENTITY Yacute "Ý">
|
||||
<!ENTITY THORN "Þ">
|
||||
<!ENTITY szlig "ß">
|
||||
<!ENTITY agrave "à">
|
||||
<!ENTITY aacute "á">
|
||||
<!ENTITY acirc "â">
|
||||
<!ENTITY atilde "ã">
|
||||
<!ENTITY auml "ä">
|
||||
<!ENTITY aring "å">
|
||||
<!ENTITY aelig "æ">
|
||||
<!ENTITY ccedil "ç">
|
||||
<!ENTITY egrave "è">
|
||||
<!ENTITY eacute "é">
|
||||
<!ENTITY ecirc "ê">
|
||||
<!ENTITY euml "ë">
|
||||
<!ENTITY igrave "ì">
|
||||
<!ENTITY iacute "í">
|
||||
<!ENTITY icirc "î">
|
||||
<!ENTITY iuml "ï">
|
||||
<!ENTITY eth "ð">
|
||||
<!ENTITY ntilde "ñ">
|
||||
<!ENTITY ograve "ò">
|
||||
<!ENTITY oacute "ó">
|
||||
<!ENTITY ocirc "ô">
|
||||
<!ENTITY otilde "õ">
|
||||
<!ENTITY ouml "ö">
|
||||
<!ENTITY oslash "ø">
|
||||
<!ENTITY ugrave "ù">
|
||||
<!ENTITY uacute "ú">
|
||||
<!ENTITY ucirc "û">
|
||||
<!ENTITY uuml "ü">
|
||||
<!ENTITY yacute "ý">
|
||||
<!ENTITY thorn "þ">
|
||||
<!ENTITY yuml "ÿ">
|
||||
<!ENTITY mdash "—">
|
||||
@@ -891,16 +891,13 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag {
|
||||
if (parent instanceof XmlDocument) {
|
||||
final XmlExtension extension = XmlExtension.getExtensionByElement(parent);
|
||||
if (extension != null) {
|
||||
final String[][] defaultNamespace = extension.getNamespacesFromDocument((XmlDocument)parent);
|
||||
final String[][] defaultNamespace = extension.getNamespacesFromDocument((XmlDocument)parent, map != null);
|
||||
if (defaultNamespace != null) {
|
||||
if (map == null) {
|
||||
map = new BidirectionalMap<String, String>();
|
||||
}
|
||||
for (final String[] prefix2ns : defaultNamespace) {
|
||||
final String prefix = prefix2ns[0];
|
||||
if (!map.containsKey(prefix) || extension.canOverrideNamespace(prefix)) {
|
||||
map.put(prefix, getRealNs(prefix2ns[1]));
|
||||
}
|
||||
map.put(prefix2ns[0], getRealNs(prefix2ns[1]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,22 +87,9 @@ public abstract class XmlExtension {
|
||||
return new TagNameReference(nameElement, startTagFlag);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link com.intellij.xml.XmlExtension#getNamespacesFromDocument(XmlDocument parent)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Nullable
|
||||
public String[][] getNamespacesFromDocument(final XmlDocument parent, boolean declarationsExist) {
|
||||
return XmlUtil.getDefaultNamespaces(parent);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public String[][] getNamespacesFromDocument(final XmlDocument parent) {
|
||||
return getNamespacesFromDocument(parent, false);
|
||||
}
|
||||
|
||||
public boolean canOverrideNamespace(final String prefix) {
|
||||
return false;
|
||||
return declarationsExist ? null : XmlUtil.getDefaultNamespaces(parent);
|
||||
}
|
||||
|
||||
public boolean canBeDuplicated(XmlAttribute attribute) {
|
||||
|
||||
Reference in New Issue
Block a user