com.intellij.lang.refactoringSupport
and the isSafeDeleteAvailable () method, which checks the availability of refactoring for this PSI element;fileTypeIndentOptionsProvider
extension fileTypeIndentOptionsProvider
. The interface's createIndentOptions () method defines the default value for indents.com.intellij.applicationConfigurable
implementation of the Configurable interface, which is a Java Swing form displayed in the Settings dialog.plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory .
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
plugin.xml.
: Intention Groovy.
. StructureView, . Structure View .
PsiStructureViewFactory com.intellij.lang.psiStructureViewFactory
.
: PsiStructureViewFactory .properties.
, TreeBasedStructureViewBuilder PsiStructureViewFactory.getStructureViewBuilder(). TextEditorBasedStructureViewModel , , .
: StructureViewModel .properties.
getRoot() StructureViewTreeElement . IDEA , .
Structure View PSI-. StructureViewTreeElement.getChildren() , . – getPresentation(), , , .., Structure View.
StructureViewTreeElement.getChildren() TextEditorBasedStructureViewModel.getSuitableClasses(). PsiElement, , "Autoscroll from source".
: StructureViewElement Property.
"Surround With"
"Code | Surround With...", SurroundDescriptor com.intellij.lang.surroundDescriptor
. , - , , - . Surrounder , , (, "Surround With if", "Surround With for").
"Surround With...", IDEA , getElementsToSurround(). Surrounder.isApplicable() , . Surrounder , surroundElements().
, , IDEA, "Go to | Class..." "Go to | Symbol...".
, ChooseByNameContributor com.intellij.gotoSymbolContributor
com.intellij.gotoClassContributor
.
, IDEA . , NavigationItem , , .
( Ctrl-hover, Ctrl-Q), DocumentationProvider lang.documentationProvider
. IDEA 10.5, AbstractDocumentationProvider .
getQuickNavigateInfo() Ctrl.
: DocumentationProvider Properties.
, - PairedBraceMatcher ( BracePair ). ( , , begin/end, ).
. , : , , .
FoldingBuilder . buildFoldRegions() , ( FoldingDescriptor ), getPlaceholderText(), - – isCollapsedByDefault(). : . FoldingGroup.newGroup(). lang.foldingBuilder
.
– IDEA, . Commenter , , , . lang.commenter
.
: Properties.
"To Do" - , ParserDefinition.getCommentTokens(). « // Todo
», «To Do View» (Alt+6).
"View | Context Info" IDEA 10.5. Structure view, TreeBasedStructureViewBuilder DeclarationRangeHandler , declarationRangeHandler
.
. Psi-. IntelliJ IDEA RelatedItemLineMarkerProvider .
codeInsight.lineMarkerProvider
.
, . , ( : /, , / ..). , «Settings | File Templates». , IntelliJ IDEA API . FileTemplateGroupDescriptorFactory com.intellij.fileTemplateGroup
.
: UI-.
: 1 , 2 , 3 , 4 , 5 , 6 , 7 .
Source: https://habr.com/ru/post/187474/
All Articles