mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[IFT] Do not say about profiler in Java onboarding if there is no profiler in IDE
IJ-CR-26578 GitOrigin-RevId: 25e0b1443b92c8153d6b8772e78926da95df99b1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
326ca85654
commit
ae5e597e0b
@@ -23,7 +23,9 @@ java.onboarding.indexing.description=When you open a project for the first time,
|
||||
to collect details required for coding assistance. To continue, wait until indexing completes.
|
||||
java.onboarding.wait.indexing=Please wait while the IDE indexes JDK files
|
||||
java.onboarding.temporary.configuration.description=You have opened the demo sample. Now, let''s run it! In the highlighted area of the toolbar, \
|
||||
you can see popular running actions for the selected configuration. For example, you can run your code {0}, debug it {1}, profile {2}, and run with coverage {3}.
|
||||
you can see popular running actions for the selected configuration.
|
||||
java.onboarding.run.options.community=For example, you can run your code {0}, debug it {1}, and run with coverage {2}.
|
||||
java.onboarding.run.options.ultimate=For example, you can run your code {0}, debug it {1}, profile {2}, and run with coverage {3}.
|
||||
java.onboarding.run.sample=For now, let''s run the current file, click {0} or press {1}.
|
||||
java.onboarding.balloon.click.here=Click here to set a breakpoint
|
||||
java.onboarding.toggle.breakpoint.1=You may notice that instead of the expected value of {0}, the {1} method returns {2}. \
|
||||
|
||||
+15
-5
@@ -45,6 +45,7 @@ import com.intellij.ui.components.fields.ExtendableTextField
|
||||
import com.intellij.ui.components.panels.NonOpaquePanel
|
||||
import com.intellij.ui.dsl.builder.Panel
|
||||
import com.intellij.ui.tree.TreeVisitor
|
||||
import com.intellij.util.PlatformUtils
|
||||
import com.intellij.util.ui.UIUtil
|
||||
import com.intellij.util.ui.tree.TreeUtil
|
||||
import com.intellij.xdebugger.XDebuggerManager
|
||||
@@ -385,11 +386,20 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
|
||||
highlightRunToolbar()
|
||||
|
||||
task {
|
||||
text(JavaLessonsBundle.message("java.onboarding.temporary.configuration.description",
|
||||
icon(AllIcons.Actions.Execute),
|
||||
icon(AllIcons.Actions.StartDebugger),
|
||||
icon(AllIcons.Actions.Profile),
|
||||
icon(AllIcons.General.RunWithCoverage)))
|
||||
val runOptionsText = if (PlatformUtils.isIdeaUltimate()) {
|
||||
JavaLessonsBundle.message("java.onboarding.run.options.ultimate",
|
||||
icon(AllIcons.Actions.Execute),
|
||||
icon(AllIcons.Actions.StartDebugger),
|
||||
icon(AllIcons.Actions.Profile),
|
||||
icon(AllIcons.General.RunWithCoverage))
|
||||
}
|
||||
else {
|
||||
JavaLessonsBundle.message("java.onboarding.run.options.community",
|
||||
icon(AllIcons.Actions.Execute),
|
||||
icon(AllIcons.Actions.StartDebugger),
|
||||
icon(AllIcons.General.RunWithCoverage))
|
||||
}
|
||||
text(JavaLessonsBundle.message("java.onboarding.temporary.configuration.description") + " $runOptionsText")
|
||||
text(JavaLessonsBundle.message("java.onboarding.run.sample", icon(AllIcons.Actions.Execute), action("Run")))
|
||||
checkToolWindowState("Run", true)
|
||||
restoreIfModified(sample)
|
||||
|
||||
Reference in New Issue
Block a user