рдЗрд╕ рднрд╛рдЧ рдореЗрдВ: рд░рд┐рдлреИрдХреНрдЯрд░рд┐рдВрдЧ, рдкреНрд░рд╛рд░реВрдкрдг, рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдФрд░ рдЕрдиреНрдп рдЙрдкрдпреЛрдЧреА рдХрд╛рд░реНрдпред рдкрд┐рдЫрд▓рд╛ рд╣рд┐рд╕реНрд╕рд╛ред
"рдирд╛рдо рдмрджрд▓реЗрдВ"
IntelliJ IDEA рдореЗрдВ рдирд╛рдо рдмрджрд▓рдиреЗ рдХрд╛ рд╕рдВрдЪрд╛рд▓рди "Usages рдХрд╛ рдкрддрд╛ рд▓рдЧрд╛рдПрдВ" рдХреЗ рд╕рдорд╛рди рд╣реИ, IDEA рдирд╛рдо рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП рддрддреНрд╡реЛрдВ рдХреЛ рдЦреЛрдЬрдиреЗ рдХреЗ рд▓рд┐рдП рд╕рдорд╛рди рдирд┐рдпрдореЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ рдФрд░ рдлрд╝рд╛рдЗрд▓реЛрдВ рдХреЛ рдЦреЛрдЬрдиреЗ рдХреЗ рд▓рд┐рдП рд╢рдмреНрджреЛрдВ рдХреЗ рдПрдХ рд╣реА рд╕реВрдЪрдХрд╛рдВрдХ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддрд╛ рд╣реИ рдЬрд┐рд╕рдореЗрдВ рддрддреНрд╡ рдХрд╛ рдирд╛рдо рдмрджрд▓рд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред
рдЬрдм рдпрд╣ рд░реАрдлреИрдХреНрдЯрд░рд┐рдВрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рддреЛ PsiNamedElement.setName () рд╡рд┐рдзрд┐ рдХреЛ рд▓рдХреНрд╖реНрдп рддрддреНрд╡ рдкрд░ рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИ, рдФрд░ PsiReference.handleElementRename () рд╡рд┐рдзрд┐ рдХреЛ рдЗрд╕рдХреЗ рд╕рднреА рд╕рдВрджрд░реНрднреЛрдВ рдХреЗ рд▓рд┐рдП рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИред рджреЛрдиреЛрдВ рд╡рд┐рдзрд┐рдпрд╛рдБ рдПрдХ рдореБрдЦреНрдп рдХреНрд░рд┐рдпрд╛ рдХрд░рддреА рд╣реИрдВ - рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рдПрдПрд╕рдЯреА рдиреЛрдб рдХреЛ рдПрдХ рдирдП рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛-рдкрд╛рда рд╡рд╛рд▓реЗ рдкрд╛рда рдХреЗ рд╕рд╛рде рдмрджрд▓рдирд╛ред рдкреВрд░реА рддрд░рд╣ рд╕реЗ рд╕рд╣реА рдПрдПрд╕рдЯреА рдХрд╛ рдирд┐рд░реНрдорд╛рдг рдХрд░рдирд╛ рдХрд╛рдлреА рдореБрд╢реНрдХрд┐рд▓ рд╣реЛ рд╕рдХрддрд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдЖрдк рдирд┐рдореНрди рд╡рд┐рдзрд┐ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ: рдЖрд╡рд╢реНрдпрдХ рдиреЛрдб рдпреБрдХреНрдд рдПрдХ рдбрдореА рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рднрд╛рд╖рд╛ рдлрд╝рд╛рдЗрд▓ рдмрдирд╛рдПрдВ, рдФрд░ рдлрд┐рд░ рдЗрд╕реЗ рдХреЙрдкреА рдХрд░реЗрдВред
рдЙрджрд╛рд╣рд░рдг: рдЧреБрдг рдкреНрд▓рдЧрдЗрди рдореЗрдВ рд╕реЗрдЯрдирд╛рдо () рд╡рд┐рдзрд┐ рдХреЛ
рд▓рд╛рдЧреВ рдХрд░рдирд╛ред
рдирд╛рдо рдмрджрд▓рдиреЗ рд╕реЗ рд╕рдВрдмрдВрдзрд┐рдд рдПрдХ рдЕрдиреНрдп рдЗрдВрдЯрд░рдлрд╝реЗрд╕
рдиреЗрдореЗрд╡рд┐рд▓реЗрдбрд┐рдПрдЯрд░ рд╣реИ ред рдпрд╣ рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдкреНрд▓рдЧрдЗрди рдХреЛ рдпрд╣ рдЬрд╛рдВрдЪрдиреЗ рдХреА рдЕрдиреБрдорддрд┐ рджреЗрддрд╛ рд╣реИ рдХрд┐ рдХреНрдпрд╛ рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдиреЗ рдкрд╣рдЪрд╛рдирдХрд░реНрддрд╛ рдирд╛рдо рд╕рд╣реА рддрд░реАрдХреЗ рд╕реЗ рджрд░реНрдЬ рдХрд┐рдпрд╛ рд╣реИ, рдЕрд░реНрдерд╛рдд рдПрдХ рдХрд╕реНрдЯрдо рднрд╛рд╖рд╛ рдореЗрдВ рдирд╛рдордХрд░рдг рд╕рдореНрдореЗрд▓рдиреЛрдВ рдХреЗ рд╕рд╛рде рд╢рд┐рдХрд╛рдпрдд рдХрд░рддрд╛ рд╣реИ рдФрд░ рдПрдХ рдХреАрд╡рд░реНрдб рд╕реЗ рдореЗрд▓ рдирд╣реАрдВ рдЦрд╛рддрд╛ рд╣реИред рдпрджрд┐ рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдкреНрд▓рдЧрдЗрди рджреНрд╡рд╛рд░рд╛ рдкреНрд░рджрд╛рди рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рддреЛ рдЬрд╛рд╡рд╛ рдирд╛рдордХрд░рдг рдирд┐рдпрдореЛрдВ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдХреЛ рд╡рд┐рд╕реНрддрд╛рд░ рдмрд┐рдВрджреБ com.intellij.lang.namesValidator рдкрд░ рдкрдВрдЬреАрдХреГрдд рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдПред
рдЙрджрд╛рд╣рд░рдг:
рдЧреБрдгреЛрдВ рдХреЗ рд▓рд┐рдП
NamesValidator ред
рдирд╛рдо рдмрджрд▓рдиреЗ рдХреА рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХрд╛ рдЖрдЧреЗ рдХрд╛ рдЕрдиреБрдХреВрд▓рди рдХрдИ рд╕реНрддрд░реЛрдВ рдкрд░ рд╕рдВрднрд╡ рд╣реИред
RenameHandler рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдкреНрд░рджрд╛рди рдХрд░рдХреЗ, рдкреНрд▓рдЧрдЗрди рдкреВрд░реА рддрд░рд╣ рд╕реЗ рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдФрд░
рд░реАрдиреЗрдорд┐рдВрдЧ рд░реАрдлреИрдХреНрдЯрд░рд┐рдВрдЧ рддрд░реНрдХ рдХреЛ рдмрджрд▓рдиреЗ рдореЗрдВ рд╕рдХреНрд╖рдо рд╣реИ, рдЬреЛ рдХрд┐ PsiElement рдХреЗ рдЕрд▓рд╛рд╡рд╛ рдХрд┐рд╕реА рдЕрдиреНрдп рдЪреАрдЬрд╝ рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░рдиреЗ рдХреА рдХреНрд╖рдорддрд╛ рдХрд╛ рднреА рдЕрд░реНрде рд╣реИред
рдЙрджрд╛рд╣рд░рдг: рдПрдХ рд╕рдВрд╕рд╛рдзрди рдмрдВрдбрд▓ рдХрд╛ рдирд╛рдо рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП рдирд╛рдо рдмрджрд▓реЗрдВред
рдпрджрд┐ рдЖрдкрдХреЛ рдорд╛рдирдХ UI рдХреЛ рдУрд╡рд░рд░рд╛рдЗрдб рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рдирд╣реАрдВ рд╣реИ, рд▓реЗрдХрд┐рди рдЖрдкрдХреЛ рдирд╛рдо рдмрджрд▓рдиреЗ рдХреЗ рддрд░реНрдХ рдХрд╛ рд╡рд┐рд╕реНрддрд╛рд░ рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ, рддреЛ рдЖрдк
RenamePsiElementProcessor рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХрд╛ рдЕрдкрдирд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдкреНрд░рджрд╛рди рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рдХреНрдпрд╛ рдЕрдиреБрдорддрд┐ рджреЗрддрд╛ рд╣реИ:
- рдЬрд┐рд╕ рддрддреНрд╡ рдкрд░ рдХрд╛рд░реНрд░рд╡рд╛рдИ рдХреА рдЧрдИ рдереА, рдЙрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛ рдПрдХ рддрддреНрд╡ рдХрд╛ рдирд╛рдо рдмрджрд▓реЗрдВ (рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдПрдХ рдЖрдзрд╛рд░ рд╡рд░реНрдЧ рд╡рд┐рдзрд┐);
- рдПрдХ рд╣реА рд╕рдордп рдореЗрдВ рдХрдИ рддрддреНрд╡реЛрдВ рдХрд╛ рдирд╛рдо рдмрджрд▓реЗрдВ (рдпрджрд┐ рдЙрдирдХреЗ рдирд╛рдо рддрд╛рд░реНрдХрд┐рдХ рд░реВрдк рд╕реЗ рдЬреБрдбрд╝реЗ рд╣реБрдП рд╣реИрдВ, рд▓реЗрдХрд┐рди рдЖрдкрдХреЛ рд╕реНрд╡рддрдВрддреНрд░ рд░реВрдк рд╕реЗ рдЯрдХрд░рд╛рд╡ рдХреА рдирд┐рдЧрд░рд╛рдиреА рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ);
- рдкрд╛рда рдореЗрдВ рд▓рд┐рдВрдХ рдЦреЛрдЬрдиреЗ рдХреЗ рд▓рд┐рдП рддрд░реНрдХ рдХреЛ рдУрд╡рд░рд░рд╛рдЗрдб рдХрд░реЗрдВ;
- рдФрд░ рдкрд╕рдВрдж рд╣реИред
рдЙрджрд╛рд╣рд░рдг: рд╕рдВрдкрддреНрддрд┐ рдХрд╛ рдирд╛рдо рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП
RenamePsiElementProcesssor ред
рд╕реБрд░рдХреНрд╖рд┐рдд рд╣рдЯрд╛рдирд╛
рдлрд╛рдЗрдВрдб рдпреВрдЬреЗрдЬ рдлреНрд░реЗрдорд╡рд░реНрдХ рдХреЗ рд╢реАрд░реНрд╖ рдкрд░ рд╕реБрд░рдХреНрд╖рд┐рдд рдирд┐рд╖реНрдХрд╛рд╕рди рд░реАрдлреИрдХреНрдЯрд░рд┐рдВрдЧ рднреА рдмрдирд╛рдпрд╛ рдЧрдпрд╛ рд╣реИред рд╕реБрд░рдХреНрд╖рд┐рдд рд╡рд┐рд▓реЛрдкрди рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рджреЛ рдЪреАрдЬреЛрдВ рдХреЛ рд▓рд╛рдЧреВ рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП:
- RefactoringSupportProvider рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рд╡рд┐рд╕реНрддрд╛рд░ рдмрд┐рдВрджреБ
com.intellij.lang.refactoringSupport
рдФрд░ isSafeDeleteAvailable () рд╡рд┐рдзрд┐ рдореЗрдВ рдкрдВрдЬреАрдХреГрдд рд╣реИ, рдЬреЛ рдЗрд╕ PSI рддрддреНрд╡ рдХреЗ рд▓рд┐рдП рд░рд┐рдлреИрдХреНрдЯрд░рд┐рдВрдЧ рдХреА рдЙрдкрд▓рдмреНрдзрддрд╛ рдХреА рдЬрд╛рдВрдЪ рдХрд░рддрд╛ рд╣реИ; - рдкрд┐рдЫрд▓реЗ рдкреИрд░рд╛рдЧреНрд░рд╛рдл рдореЗрдВ рдЕрдиреБрдордд рддрддреНрд╡реЛрдВ рдХреЗ рд▓рд┐рдП PsiElement.delete () рд╡рд┐рдзрд┐рдпрд╛рдБред рдПрдХ PSI рддрддреНрд╡ рдХреЛ рдирд┐рдХрд╛рд▓рдирд╛ рдПрдХ рд╕рд╛рд░ рд╡рд╛рдХреНрдпрд╡рд┐рдиреНрдпрд╛рд╕ рдЯреНрд░реА ( рдЙрджрд╛рд╣рд░рдг ) рдХреЗ рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рдиреЛрдб рдХреЛ рд╣рдЯрд╛рдиреЗ рдХреЗ рд░реВрдк рдореЗрдВ рд▓рд╛рдЧреВ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред
рдпрджрд┐ рдЖрдк рдХреБрдЫ рд╡рд┐рд╢реЗрд╖ рдкреНрд░рдХрд╛рд░ рдХреЗ рддрддреНрд╡реЛрдВ рдХреЗ рд▓рд┐рдП рд░реАрдлреИрдХреНрдЯрд░рд┐рдВрдЧ рд╡реНрдпрд╡рд╣рд╛рд░ рдХреЛ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рд╣реИрдВ, рддреЛ
SafeDeleteProcessorDelegate рдЗрдВрдЯрд░рдлрд╝реЗрд╕
рдЗрд╕рдореЗрдВ рдорджрдж рдХрд░ рд╕рдХрддрд╛ рд╣реИред
рдЙрджрд╛рд╣рд░рдг: * .properties рдлрд╝рд╛рдЗрд▓реЛрдВ рдХреЗ рд▓рд┐рдП SafeDeleteProcessorDelegate
рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди ред
рдСрдЯреЛ рдХреЛрдб рд╕реНрд╡рд░реВрдкрдг
IntelliJ IDEA рдореЗрдВ рдХрд╕реНрдЯрдо рдлрд╝реЙрд░реНрдореЗрдЯрд░реНрд╕ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдПрдХ рд╢рдХреНрддрд┐рд╢рд╛рд▓реА рд░реВрдкрд░реЗрдЦрд╛ рд╢рд╛рдорд┐рд▓ рд╣реИред рдЗрд╕ рдврд╛рдВрдЪреЗ рдореЗрдВ, рдкреНрд▓рдЧрдЗрди рд╡рд┐рднрд┐рдиреНрди рд╕рд┐рдВрдЯреИрдХреНрд╕ рддрддреНрд╡реЛрдВ рдХреЗ рдмреАрдЪ рд╕рдлреЗрдж рд╕реНрдерд╛рди рдкрд░
рдкреНрд░рддрд┐рдмрдВрдзреЛрдВ рдХреЛ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдХрд░рддрд╛ рд╣реИ, рдлрд┐рд░ IDEA рджреНрд╡рд╛рд░рд╛ рдкреНрд░рджрд╛рди рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╕реНрд╡рд░реВрдкрдг рдЗрдВрдЬрди рдкреНрд░рддрд┐рдмрдВрдзреЛрдВ рдХреЛ рд╕рдВрддреБрд╖реНрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрдо рд╕реЗ рдХрдо рдЕрдВрддрд░рд┐рдХреНрд╖ рд╕рдВрд╢реЛрдзрдиреЛрдВ рдХреА рдЧрдгрдирд╛ рдХрд░рддрд╛ рд╣реИред
рдХрд┐рд╕реА рдлрд╝рд╛рдЗрд▓ рдпрд╛ рдЯреБрдХрдбрд╝реЗ рдХреЛ рд╕реНрд╡рд░реВрдкрд┐рдд рдХрд░рдиреЗ рдХреА рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдореЗрдВ рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореВрд▓ рдЪрд░рдг рд╣реЛрддреЗ рд╣реИрдВ:
- FormatMMelelBuilder рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди, рдЬреЛ рд╕рдВрд╕рд╛рдзрд┐рдд рджрд╕реНрддрд╛рд╡реЗрдЬрд╝ рдХреЗ рд▓рд┐рдП рдПрдХ рдкреНрд░рд╛рд░реВрдкрдг рдореЙрдбрд▓ рдкреНрд░рджрд╛рди рдХрд░рддрд╛ рд╣реИ ;
- рдкреНрд░рд╛рд░реВрдкрдг рдореЙрдбрд▓ рдлрд╝рд╛рдЗрд▓ рд╕рдВрд░рдЪрдирд╛ рдХреЛ рд╕рдВрдмрдВрдзрд┐рдд рдЗрдВрдбреЗрдВрдЯреЗрд╢рди, рд╣рд╛рдЗрдлрд╝рдиреЗрд╢рди, рд╕рдВрд░реЗрдЦрдг рдХреЗ рд╕рд╛рде рдмреНрд▓реЙрдХ ( рдмреНрд▓реЙрдХ рдСрдмреНрдЬреЗрдХреНрдЯреНрд╕) рдХреЗ рдкреЗрдбрд╝ рдХреЗ рд░реВрдк рдореЗрдВ рдмрдирд╛рддрд╛ рд╣реИ;
- рд╕реНрд╡рд░реВрдкрдг рдЗрдВрдЬрди рд╡реНрд╣реЙрдЯреНрд╕рдПрдк рд╡рд░реНрдгреЛрдВ (рд░рд┐рдХреНрдд рд╕реНрдерд╛рди, рдЯреИрдм, рд▓рд╛рдЗрди рдмреНрд░реЗрдХ) рдХреЗ рдЕрдиреБрдХреНрд░рдо рдХреА рдЧрдгрдирд╛ рдХрд░рддрд╛ рд╣реИ, рдЬрд┐рд╕реЗ рдкреНрд░рддреНрдпреЗрдХ рдмреНрд▓реЙрдХ рдХреА рд╕реАрдорд╛ рдкрд░ рд░рдЦрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдП;
- рд╕реНрд╡рд░реВрдкрдг рдореЙрдбрд▓ рдлрд╝рд╛рдЗрд▓ рдореЗрдВ рдЖрд╡рд╢реНрдпрдХ рдкрджреЛрдВ рдореЗрдВ рд╡реНрд╣рд╛рдЯреНрд╕рдПрдк рдХреЗ рд╕рдореНрдорд┐рд▓рди рдХреЗ рд▓рд┐рдП рдХрд╣рддрд╛ рд╣реИред
рдмреНрд▓реЙрдХ рд╕рдВрд░рдЪрдирд╛ рдЖрдорддреМрд░ рдкрд░ PSI рдлрд╝рд╛рдЗрд▓ рд╕рдВрд░рдЪрдирд╛ рдХрд╛ рдЕрдиреБрд╕рд░рдг рдХрд░рддреА рд╣реИред рдлрд╝реЙрд░реНрдореЗрдЯрд░ рдХреЗрд╡рд▓ рдмреНрд▓реЙрдХреЛрдВ рдХреЗ рдмреАрдЪ рд╕реНрдерд┐рдд рд╡рд░реНрдгреЛрдВ рдХреЛ рд╕рдВрд╢реЛрдзрд┐рдд рдХрд░рддрд╛ рд╣реИ, рдЗрд╕рд▓рд┐рдП рдмреНрд▓реЙрдХ рдЯреНрд░реА рдХреЛ рдлрд╝рд╛рдЗрд▓ рдХреЗ рд╕рднреА рдЧреИрд░-рд╡реНрд╣рд╛рдЯреНрд╕рдПрдк рд╡рд░реНрдгреЛрдВ рдХреЛ рдХрд╡рд░ рдХрд░рдирд╛ рдЪрд╛рд╣рд┐рдП, рдЕрдиреНрдпрдерд╛ рдмреНрд▓реЙрдХ рдХреЗ рдмреАрдЪ рдЬреЛ рдХреБрдЫ рднреА рд╣реИ рдЙрд╕реЗ рд╣рдЯрд╛рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред
рдпрджрд┐ рдлрд╝реЙрд░реНрдореЗрдЯрд┐рдВрдЧ рдСрдкрд░реЗрд╢рди рдкреВрд░реА рдлрд╝рд╛рдЗрд▓ рдкрд░ рд▓рд╛рдЧреВ рдирд╣реАрдВ рд╣реЛрддрд╛ рд╣реИ (рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдЬрдм рдлреЙрд░реНрдореЗрдЯрд░ рдХреЛ рдЯреЗрдХреНрд╕реНрдЯ рдХреЗ рд╕рдореНрдорд┐рд▓рд┐рдд рдмреНрд▓реЙрдХ рдХреЗ рд▓рд┐рдП рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИ), рддреЛ рдмреНрд▓реЙрдХ рдХрд╛ рдкреВрд░рд╛ рдкреЗрдбрд╝ рдирд╣реАрдВ рдмрдирд╛рдпрд╛ рдЧрдпрд╛ рд╣реИ - рдЗрд╕рдХреЗ рдмрдЬрд╛рдп, рдмреНрд▓реЙрдХрд┐рдВрдЧ рдХрд╛ рдЙрдкрдпреЛрдЧ рд╕реНрд╡рд░реВрдкрдг рдФрд░ рдЗрд╕рдХреЗ рдкреНрд░рддреНрдпрдХреНрд╖ рдкреВрд░реНрд╡рдЬ рдХреЗ рд▓рд┐рдП рдкрд╛рд░рд┐рдд рдЯреЗрдХреНрд╕реНрдЯ рд░реЗрдВрдЬ рдХреЛ рдХрд╡рд░ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред
рдкреНрд░рддреНрдпреЗрдХ рдмреНрд▓реЙрдХ рдХреЗ рд▓рд┐рдП, рдкреНрд▓рдЧрдЗрди рдХреЛ рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдЧреБрдгреЛрдВ рдХреЛ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдХрд░рдирд╛ рдЪрд╛рд╣рд┐рдП:
- рдПрдХ рдЕрдВрддрд░рд┐рдХреНрд╖ рдЕрдВрддрд░рд╛рд▓ рдЬреЛ рдпрд╣ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рдХрд┐ рдХрд┐рддрдиреЗ рд░рд┐рдХреНрдд рд╕реНрдерд╛рди (рдиреНрдпреВрдирддрдо рдФрд░ рдЕрдзрд┐рдХрддрдо рд╕рдВрдЦреНрдпрд╛) рдФрд░ рд▓рд╛рдЗрди рдлреАрдб (рдиреНрдпреВрдирддрдо рдФрд░ рдЕрдзрд┐рдХрддрдо рд╕рдВрдЦреНрдпрд╛) рдмрд╛рд▓ рдмреНрд▓реЙрдХреЛрдВ рдХреЗ рдмреАрдЪ рд╣реЛрдиреА рдЪрд╛рд╣рд┐рдП, рдФрд░ рдпрд╣ рднреА рдХрд┐ рдХреНрдпрд╛ рдореМрдЬреВрджрд╛ рдЦрд╛рд▓реА рд▓рд╛рдЗрдиреЛрдВ рдХреЛ рд╕рдВрд░рдХреНрд╖рд┐рдд рдХрд░рдирд╛ рд╣реИ;
- рдЗрдВрдбреЗрдВрдЯреЗрд╢рди - рдореВрд▓ рдмреНрд▓реЙрдХ рдХреЗ рд╕рд╛рдкреЗрдХреНрд╖ рд╕реНрдерд┐рддрд┐ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИред рдХрдИ рдкреНрд░рдХрд╛рд░ рдХреЗ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди рд╣реИрдВ: "рдиреЛ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди", "рд░реЗрдЧреБрд▓рд░ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди", "рд▓реЙрдиреНрдЧ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди"ред рдпрджрд┐ рдореЙрдбрд▓ рдПрдХ рд╡рд┐рд╢рд┐рд╖реНрдЯ рдкреНрд░рдХрд╛рд░ рдХреЗ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди рдХреЛ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИ, рддреЛ рдбрд┐рдлрд╝реЙрд▓реНрдЯ "рдкрд╣рд▓реЗ рддрддреНрд╡ рдХреЛ рдЫреЛрдбрд╝рдХрд░" рдирд┐рд░рдВрддрд░ рд╣реИ, рдЕрд░реНрдерд╛рдд рдЕрдиреБрдХреНрд░рдо рдореЗрдВ рдкрд╣рд▓рд╛ рдмреНрд▓реЙрдХ рдЗрдВрдбреЗрдВрдЯ рдирд╣реАрдВ рд╣реИ, рдФрд░ рдмрд╛рдХреА рдХреЛ рдПрдХ рд▓рдВрдмрд╛ рдорд┐рд▓рддрд╛ рд╣реИ;
- рд▓рд╛рдЗрди рдмреНрд░реЗрдХ - рдпрд╣ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рдХрд┐ рд▓рдВрдмреА рд▓рд╛рдЗрди рдХреЛ рдЕрдЧрд▓реЗ рдореЗрдВ рдХрдм рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рдирд╛ рд╣реИред рдпрд╣ рдмреНрд▓реЙрдХ рдХреА рд╕рд╛рдордЧреНрд░реА рд╕реЗ рдкрд╣рд▓реЗ рдПрдХ рд▓рд╛рдЗрди рдмреНрд░реЗрдХ рд╕рдореНрдорд┐рд▓рд┐рдд рдХрд░рдХреЗ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ;
- рд╕рдВрд░реЗрдЦрдг - рдпрд╣ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рдХрд┐ рдмреНрд▓реЙрдХ рдПрдХ рджреВрд╕рд░реЗ рдХреЗ рд╕рд╛рдкреЗрдХреНрд╖ рдХреИрд╕реЗ рд╕рдВрд░реЗрдЦрд┐рдд рд╣реЛрдВрдЧреЗред рдпрджрд┐ рд╕рдорд╛рди рдЕрд▓рд╛рдЗрдирдореЗрдВрдЯ рдСрдмреНрдЬреЗрдХреНрдЯ рдХрд╛ рдЙрдкрдпреЛрдЧ рджреЛ рдмреНрд▓реЙрдХреЛрдВ рдХреЛ рд╕рдВрд░реЗрдЦрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ рдФрд░ рджреВрд╕рд░реЗ рдмреНрд▓реЙрдХ рд╕реЗ рдкрд╣рд▓реЗ рд▓рд╛рдЗрди рдореЗрдВ рдХреЗрд╡рд▓ рд░рд┐рдХреНрдд рд╕реНрдерд╛рди рд╣реЛрддреЗ рд╣реИрдВ, рддреЛ рдлреЙрд░реНрдореЗрдЯрд░ рдЗрд╕реЗ рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рддрд╛ рд╣реИ рддрд╛рдХрд┐ рдпрд╣ рдкрд╣рд▓реЗ рдХреЗ рд╕рдорд╛рди рдХреЙрд▓рдо рд╕реЗ рд╢реБрд░реВ рд╣реЛред
рдлреЙрд░реНрдореЗрдЯрд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХрд╛ рдПрдХ рд╡рд┐рд╢реЗрд╖ рдорд╛рдорд▓рд╛ рддрдм рд╣реЛрддрд╛ рд╣реИ рдЬрдм рдПрдХ рдкреНрд▓рдЧрдЗрди рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рд╕реНрд░реЛрдд рдХреЛрдб рдХреЛ рд╕рдВрдкрд╛рджрд┐рдд рдХрд░рддреЗ рд╕рдордп рдПрдВрдЯрд░ рджрдмрд╛рддрд╛ рд╣реИред рдЗрдВрдбреЗрдВрдЯ рд╡реИрд▓реНрдпреВ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдлреЙрд░реНрдореЗрдЯрд┐рдВрдЧ рдЗрдВрдЬрди getChildAttributes () рдореЗрдердб рдХреЛ рдХрд░реНрд╕рд░ рдХреЗ рдареАрдХ рдкрд╣рд▓реЗ рдпрд╛ рдкреЗрд░реЗрдВрдЯ рдкрд░ рдмреНрд▓реЙрдХ рдкрд░, isIncomplete () рдореЗрдердб рдХреЗ рдкрд╣рд▓реЗ рдХреЗ рддрд░реАрдХреЗ рдкрд░ рдирд┐рд░реНрднрд░ рдХрд░рддрд╛ рд╣реИред рдпрджрд┐ рдмреНрд▓реЙрдХ рдкреВрд░рд╛ рд╣реЛ рдЧрдпрд╛ рд╣реИ, рддреЛ getChildAttributes () рдХреЛ рдЙрд╕ рдкрд░ рдХреЙрд▓ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ; рдЕрдиреНрдпрдерд╛, рдХреЙрд▓ рдкреИрд░реЗрдВрдЯ рдмреНрд▓реЙрдХ рдкрд░ рд╣реЛрддреА рд╣реИред
рдХреЛрдб рд╢реИрд▓реА рд╕реЗрдЯрд┐рдВрдЧреНрд╕
рдбрд┐рдлрд╝реЙрд▓реНрдЯ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди рдорд╛рди рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдФрд░, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдХреЛ рдЯреИрдм рдЖрдХрд╛рд░ рдФрд░ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди рдХреЛ рд╕рдорд╛рдпреЛрдЬрд┐рдд рдХрд░рдиреЗ рдХреА рдЕрдиреБрдорддрд┐ рджреЗрдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдк
FileTypeIndentOptionsProvider рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХреЛ рд▓рд╛рдЧреВ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ, рдЬрд┐рд╕реЗ
fileTypeIndentOptionsProvider
рдкрдВрдЬреАрдХреГрдд рдХрд┐рдпрд╛ рдЬрд╛рдирд╛ рдЪрд╛рд╣рд┐рдПред CreateIndentOptions () рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рд╡рд┐рдзрд┐ рдЗрдВрдбреЗрдВрдЯреЗрд╢рди рдХреЗ рд▓рд┐рдП рдбрд┐рдлрд╝реЙрд▓реНрдЯ рдорд╛рди рдХреЛ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдХрд░рддрд╛ рд╣реИред
рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдХреЗ рдЕрдзрд┐рдХ рд▓рдЪреАрд▓реЗ рдкреНрд░рдмрдВрдзрди рдХреЗ рд▓рд┐рдП, рд╡рд┐рд╕реНрддрд╛рд░ рдмрд┐рдВрджреБ
com.intellij.applicationConfigurable
рдореЗрдВ
рдХреЙрдиреНрдлрд┐рдЧрд░реЗрдмрд▓ рдЗрдВрдЯрд░рдлреЗрд╕ рдХреЗ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдХреЛ рдкрдВрдЬреАрдХреГрдд рдХрд░рдирд╛ рд╕рдВрднрд╡ рд╣реИ, рдЬреЛ рд╕реЗрдЯрд┐рдВрдЧ рдбрд╛рдпрд▓реЙрдЧ рдореЗрдВ рдкреНрд░рджрд░реНрд╢рд┐рдд рдЬрд╛рд╡рд╛ рд╕реНрд╡рд┐рдВрдЧ рдлреЙрд░реНрдо рд╣реИред
рдирд┐рд░реАрдХреНрд╖рдг
рдХрд╕реНрдЯрдо рднрд╛рд╖рд╛рдУрдВ рдХреЗ рд▓рд┐рдП рд╕реНрд░реЛрдд рдХреЛрдб рдирд┐рд░реАрдХреНрд╖рдг рдЕрдиреНрдп рдирд┐рд░реАрдХреНрд╖рдгреЛрдВ рдХреА рддрд░рд╣ рд╣реА API рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддреЗ рд╣реИрдВ рдФрд░ LocalInspectionTool рд╡рд░реНрдЧ рдкрд░ рдЖрдзрд╛рд░рд┐рдд рд╣реЛрддреЗ рд╣реИрдВред
LocalInspectionTool рдХреА рдХрд╛рд░реНрдпрдХреНрд╖рдорддрд╛ рдЖрдВрд╢рд┐рдХ рд░реВрдк рд╕реЗ
рдПрдиреЛрдЯреЗрдЯрд░ рдХреЛ рдбреБрдкреНрд▓рд┐рдХреЗрдЯ рдХрд░рддреА рд╣реИ, рдореБрдЦреНрдп рдЕрдВрддрд░ рдмреИрдЪ рдХреЛрдб рдкреНрд░рд╕рдВрд╕реНрдХрд░рдг ("рд╡рд┐рд╢реНрд▓реЗрд╖рдг | рдирд┐рд░реАрдХреНрд╖рдг рдХреЛрдб ..." рдХрд╛рд░реНрд░рд╡рд╛рдИ рджреНрд╡рд╛рд░рд╛ рдЯреНрд░рд┐рдЧрд░) рдХреЗ рд▓рд┐рдП рд╕рдорд░реНрдерди рд╣реИ, рдирд┐рд░реАрдХреНрд╖рдгреЛрдВ рдХреЛ рдЕрдХреНрд╖рдо рдХрд░рдиреЗ рдФрд░ рдЙрдирдХреЗ рд╡рд┐рдХрд▓реНрдкреЛрдВ рдХреЛ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдиреЗ рдХреА рдХреНрд╖рдорддрд╛ред рдпрджрд┐ рдЙрдкрд░реЛрдХреНрдд рдореЗрдВ рд╕реЗ рдХреЛрдИ рднреА рдЖрд╡рд╢реНрдпрдХ рдирд╣реАрдВ рд╣реИ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рд╡рд┐рд╢реНрд▓реЗрд╖рдг рдХреЛ рдХреЗрд╡рд▓ рд╕рдХреНрд░рд┐рдп рд╕рдВрдкрд╛рджрдХ рдореЗрдВ рдЪрд▓рд╛рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ, рддреЛ рдПрдиреЛрдЯреЗрдЯрд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдирд╛ рдмрд╣реБрдд рдлрд╛рдпрджреЗрдордВрдж рд╣реИ, рдХреНрдпреЛрдВрдХрд┐ рдЗрд╕рдореЗрдВ рдмреЗрд╣рддрд░ рдкреНрд░рджрд░реНрд╢рди (рд╡реГрджреНрдзрд┐рд╢реАрд▓ рд╡рд┐рд╢реНрд▓реЗрд╖рдг рдХреЗ рд╕рдорд░реНрдерди рдХреЗ рд▓рд┐рдП рдзрдиреНрдпрд╡рд╛рдж) рдФрд░ рддреНрд░реБрдЯрд┐рдпреЛрдВ рдХреЛ рдЙрдЬрд╛рдЧрд░ рдХрд░рдиреЗ рдХреЗ рд╕рдВрджрд░реНрдн рдореЗрдВ рдЕрдзрд┐рдХ рд▓рдЪреАрд▓рд╛рдкрди рд╣реИред
рдЙрджрд╛рд╣рд░рдг: .properties рдлрд╝рд╛рдЗрд▓реЛрдВ рдХреЗ рд▓рд┐рдП рдПрдХ рд╕рд░рд▓
рдирд┐рд░реАрдХреНрд╖рдг ред
рдЙрдкрдпреЛрдЧрдХрд░реНрддрд╛ рдЗрд░рд╛рджреЗ (рдХреНрд╡рд┐рдХрдлрд╝рд┐рдХреНрд╕) рднреА рдорд╛рдирдХ рдПрдкреАрдЖрдИ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддреЗ рд╣реИрдВ, рдЙрдиреНрд╣реЗрдВ рд╡рд┐рд╕реНрддрд╛рд░ рдмрд┐рдВрджреБ рдореЗрдВ рджрд░реНрдЬ рдЗрдВрдЯреЗрд╢рдирд╢рди рдЗрдВрдЯрд░рдлрд╝реЗрд╕ рдХрд╛ рдХрд╛рд░реНрдпрд╛рдиреНрд╡рдпрди рдкреНрд░рджрд╛рди рдХрд░рдирд╛ рд╣реЛрдЧрд╛
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 .