mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 08:47:50 +08:00
TPV-5209 http -> https
This commit is contained in:
parent
82bbf5b98b
commit
0a69886c06
@ -10,7 +10,7 @@ import com.intellij.psi.TokenType;
|
||||
|
||||
/**
|
||||
* This class is a scanner generated by
|
||||
* <a href="http://www.jflex.de/">JFlex</a> 1.7.0
|
||||
* <a href="https://www.jflex.de/">JFlex</a> 1.7.0
|
||||
* from the specification file <tt>Simple.flex</tt>
|
||||
*/
|
||||
class SimpleLexer implements FlexLexer {
|
||||
|
@ -35,7 +35,7 @@ public class SimpleColorSettingsPage implements ColorSettingsPage {
|
||||
public String getDemoText() {
|
||||
return "# You are reading the \".properties\" entry.\n" +
|
||||
"! The exclamation mark can also mark text as comments.\n" +
|
||||
"website = http://en.wikipedia.org/\n" +
|
||||
"website = https://en.wikipedia.org/\n" +
|
||||
"language = English\n" +
|
||||
"# The backslash below tells the application to continue reading\n" +
|
||||
"# the value onto the next line.\n" +
|
||||
@ -70,4 +70,4 @@ public class SimpleColorSettingsPage implements ColorSettingsPage {
|
||||
public String getDisplayName() {
|
||||
return "Simple";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ public class SimpleLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSe
|
||||
public String getCodeSample(@NotNull SettingsType settingsType) {
|
||||
return "# You are reading the \".properties\" entry.\n" +
|
||||
"! The exclamation mark can also mark text as comments.\n" +
|
||||
"website = http://en.wikipedia.org/\n" +
|
||||
"website = https://en.wikipedia.org/\n" +
|
||||
"\n" +
|
||||
"language = English\n" +
|
||||
"# The backslash below tells the application to continue reading\n" +
|
||||
|
@ -69,17 +69,17 @@ public class SimpleCodeInsightTest extends LightJavaCodeInsightFixtureTestCase {
|
||||
}
|
||||
|
||||
public void testCommenter() {
|
||||
myFixture.configureByText(SimpleFileType.INSTANCE, "<caret>website = http://en.wikipedia.org/");
|
||||
myFixture.configureByText(SimpleFileType.INSTANCE, "<caret>website = https://en.wikipedia.org/");
|
||||
CommentByLineCommentAction commentAction = new CommentByLineCommentAction();
|
||||
commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
|
||||
myFixture.checkResult("#website = http://en.wikipedia.org/");
|
||||
myFixture.checkResult("#website = https://en.wikipedia.org/");
|
||||
commentAction.actionPerformedImpl(getProject(), myFixture.getEditor());
|
||||
myFixture.checkResult("website = http://en.wikipedia.org/");
|
||||
myFixture.checkResult("website = https://en.wikipedia.org/");
|
||||
}
|
||||
|
||||
public void testReference() {
|
||||
myFixture.configureByFiles("ReferenceTestData.java", "DefaultTestData.simple");
|
||||
PsiElement element = myFixture.getFile().findElementAt(myFixture.getCaretOffset()).getParent();
|
||||
assertEquals("http://en.wikipedia.org/", ((SimpleProperty) element.getReferences()[0].resolve()).getValue());
|
||||
assertEquals("https://en.wikipedia.org/", ((SimpleProperty) element.getReferences()[0].resolve()).getValue());
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
website = https://en.wikipedia.org/
|
||||
|
||||
|
||||
language = English
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
website = https://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
|
@ -1,6 +1,6 @@
|
||||
public class Test {
|
||||
public static void main(String[] args)<fold text=' { '> {
|
||||
</fold>System.out.println("<fold text='http://en.wikipedia.org/'>simple:website</fold>");<fold text=' }'>
|
||||
</fold>System.out.println("<fold text='https://en.wikipedia.org/'>simple:website</fold>");<fold text=' }'>
|
||||
}</fold>
|
||||
public static void main1(String[] args)<fold text=' { '> {
|
||||
</fold>System.out.println("<fold text='This is the value that could be looked up with the key \"key with spaces\".'>simple:key with spaces</fold>");<fold text=' }'>
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website=http://en.wikipedia.org/
|
||||
website=https://en.wikipedia.org/
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
website = https://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
|
@ -8,7 +8,7 @@ Simple File(0,492)
|
||||
PsiWhiteSpace(' ')(105,106)
|
||||
PsiElement(SimpleTokenType.SEPARATOR)('=')(106,107)
|
||||
PsiWhiteSpace(' ')(107,108)
|
||||
PsiElement(SimpleTokenType.VALUE)('http://en.wikipedia.org/')(108,132)
|
||||
PsiElement(SimpleTokenType.VALUE)('https://en.wikipedia.org/')(108,132)
|
||||
PsiWhiteSpace('\n\n')(132,134)
|
||||
SimplePropertyImpl(PROPERTY)(134,152)
|
||||
PsiElement(SimpleTokenType.KEY)('language')(134,142)
|
||||
@ -63,4 +63,4 @@ Simple File(0,492)
|
||||
PsiWhiteSpace(' ')(485,486)
|
||||
PsiElement(SimpleTokenType.SEPARATOR)('=')(486,487)
|
||||
PsiWhiteSpace(' ')(487,488)
|
||||
PsiElement(SimpleTokenType.VALUE)('test')(488,492)
|
||||
PsiElement(SimpleTokenType.VALUE)('test')(488,492)
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
website = http://en.wikipedia.org/
|
||||
website = https://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
@ -10,4 +10,4 @@ message = Welcome to \
|
||||
# Add spaces to the key
|
||||
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
|
||||
# Unicode
|
||||
tab : \u0009
|
||||
tab : \u0009
|
||||
|
@ -1,6 +1,6 @@
|
||||
# You are reading the ".properties" entry.
|
||||
! The exclamation mark can also mark text as comments.
|
||||
websiteUrl = http://en.wikipedia.org/
|
||||
websiteUrl = https://en.wikipedia.org/
|
||||
|
||||
language = English
|
||||
# The backslash below tells the application to continue reading
|
||||
@ -10,4 +10,4 @@ message = Welcome to \
|
||||
# Add spaces to the key
|
||||
key\ with\ spaces = This is the value that could be looked up with the key "key with spaces".
|
||||
# Unicode
|
||||
tab : \u0009
|
||||
tab : \u0009
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.intellij.sdk.toolWindow.MyToolWindow">
|
||||
<form xmlns="httsp://www.intellij.com/uidesigner/form/" version="1" bind-to-class="org.intellij.sdk.toolWindow.MyToolWindow">
|
||||
<grid id="27dc6" binding="myToolWindowContent" layout-manager="GridLayoutManager" row-count="2" column-count="5" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
|
||||
<margin top="0" left="0" bottom="0" right="0"/>
|
||||
<constraints>
|
||||
|
Loading…
x
Reference in New Issue
Block a user