Skip to content

Commit

Permalink
fix: Rename 'fast' run configurations to 'Fast Run' and 'Fast Debug' …
Browse files Browse the repository at this point in the history
…back (#5743)
  • Loading branch information
tpasternak authored Nov 21, 2023
1 parent 7014cec commit d2f4c10
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import com.intellij.ui.LayeredIcon;
import icons.BlazeIcons;
import javax.swing.Icon;

import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;

/** An executor for debugging fast builds. */
Expand All @@ -30,7 +32,16 @@ final class FastBuildDebugExecutor extends DefaultDebugExecutor {
public static final String ID = "BlazeFastDebug";

@Override
public String getStartActionText() {
@Nls(capitalization = Nls.Capitalization.Title)
public @NotNull String getStartActionText(@NotNull String configurationName) {
if(configurationName.isEmpty()){
return getStartActionText();
}
return String.format("%s: '%s'", getStartActionText(), shortenNameIfNeeded(configurationName));
}

@Override
public @NotNull String getStartActionText() {
return "Fast Debug";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,27 @@
import com.intellij.openapi.project.Project;
import com.intellij.ui.LayeredIcon;
import icons.BlazeIcons;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;

import javax.annotation.Nullable;
import javax.swing.Icon;

/** An executor for debugging fast builds. */
public final class FastBuildRunExecutor extends DefaultRunExecutor {

public static final String ID = "BlazeFastRun";
@Override
@Nls(capitalization = Nls.Capitalization.Title)
public @NotNull String getStartActionText(@NotNull String configurationName) {
if(configurationName.isEmpty()){
return getStartActionText();
}
return String.format("%s: '%s'", getStartActionText(), shortenNameIfNeeded(configurationName));
}

@Override
public String getStartActionText() {
public @NotNull String getStartActionText() {
return "Fast Run";
}

Expand Down

0 comments on commit d2f4c10

Please sign in to comment.