mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
GO-15973 Customize platform lessons for IFT (Declaration and Usages)
GitOrigin-RevId: 8ec9c26474b05d95716f0895f72d3003f46fc60b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8c7b1924c2
commit
d82700abcc
@@ -258,9 +258,8 @@ declaration.and.usages.jump.to.declaration=Press {0} to jump to the declaration
|
||||
declaration.and.usages.show.usages=Now the caret is at the method''s declaration. \
|
||||
Use the same shortcut {0} to see all of its usages, then select one of them.
|
||||
declaration.and.usages.find.usages=Press {0} to see a more detailed view of usages. You can invoke {0} on either a declaration or a usage.
|
||||
declaration.and.usages.pin.motivation=From the {0} view you can navigate both to usages and declarations. \
|
||||
The next search will override these results in the {0} view. To prevent it, pin the results:
|
||||
declaration.and.usages.right.click.tab=Right-click the tab title, {0}.
|
||||
declaration.and.usages.pin.motivation=From the {0} view you can navigate both to usages and declarations. The next search will override these results in the {0} view. To prevent it, pin the results.
|
||||
declaration.and.usages.right.click.tab=To pin the tab, right-click the highlighted tab title.
|
||||
declaration.and.usages.select.pin.item=Select {0}.
|
||||
declaration.and.usages.hide.view=When you have finished browsing usages, press {0} to hide the view.
|
||||
declaration.and.usages.open.find.view=Press {0} to open the {1} view again.
|
||||
|
||||
@@ -29,6 +29,8 @@ abstract class DeclarationAndUsagesLesson
|
||||
get() = {
|
||||
sdkConfigurationTasks()
|
||||
|
||||
configurationTasks()
|
||||
|
||||
setInitialPosition()
|
||||
|
||||
prepareRuntimeTask {
|
||||
@@ -57,7 +59,7 @@ abstract class DeclarationAndUsagesLesson
|
||||
val parentExpr = getParentExpression(element) ?: return@l false
|
||||
parentExpr.text.endsWith(entityName)
|
||||
}
|
||||
restoreIfModifiedOrMoved()
|
||||
//restoreIfModifiedOrMoved()
|
||||
test {
|
||||
actions(actionId)
|
||||
ideFrame {
|
||||
@@ -122,6 +124,8 @@ abstract class DeclarationAndUsagesLesson
|
||||
}
|
||||
}
|
||||
|
||||
protected open fun LessonContext.configurationTasks() {}
|
||||
|
||||
protected abstract fun getParentExpression(element: PsiElement): PsiElement?
|
||||
|
||||
private fun TaskRuntimeContext.state(): MyInfo? {
|
||||
|
||||
Reference in New Issue
Block a user