Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import consulo.execution.coverage.CoverageEnabledConfiguration;
import consulo.execution.coverage.CoverageRunner;
import consulo.execution.localize.ExecutionLocalize;
import consulo.java.coverage.localize.JavaCoverageLocalize;
import consulo.language.editor.localize.CodeInsightLocalize;
import consulo.localize.LocalizeValue;
import consulo.logging.Logger;
Expand Down Expand Up @@ -216,7 +217,7 @@ public void customize(JList list, CoverageRunnerItem value, int index, boolean s
myRunnerPanel = new JPanel(new GridBagLayout());
myRunnerPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
myRunnerPanel.add(
new JLabel(LocalizeValue.localizeTODO("Choose coverage runner:").get()),
new JLabel(JavaCoverageLocalize.runConfigurationChooseCoverageRunner().get()),
new GridBagConstraints(
0, 0, 1, 1, 0, 1, GridBagConstraints.WEST, GridBagConstraints.NONE,
JBUI.insetsRight(10), 0, 0
Expand Down Expand Up @@ -250,7 +251,7 @@ public void customize(JList list, CoverageRunnerItem value, int index, boolean s
mySamplingRb.addActionListener(samplingListener);
myTracingRb.addActionListener(samplingListener);

myTrackPerTestCoverageCb = new JCheckBox(LocalizeValue.localizeTODO("Track per test coverage").get());
myTrackPerTestCoverageCb = new JCheckBox(JavaCoverageLocalize.runConfigurationTrackPerTestCoverage().get());
JPanel tracingPanel = new JPanel(new BorderLayout());
tracingPanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 0, 0));
tracingPanel.add(myTrackPerTestCoverageCb, BorderLayout.CENTER);
Expand Down Expand Up @@ -279,7 +280,7 @@ public void customize(JList list, CoverageRunnerItem value, int index, boolean s
panel.add(myClassFilterEditor, bagConstraints);

bagConstraints.weighty = 0;
myTrackTestSourcesCb = new JCheckBox(LocalizeValue.localizeTODO("Enable coverage in test folders").get());
myTrackTestSourcesCb = new JCheckBox(JavaCoverageLocalize.runConfigurationEnableCoverageInTestFolders().get());
panel.add(myTrackTestSourcesCb, bagConstraints);

result.add(panel, gc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import consulo.execution.coverage.*;
import consulo.execution.coverage.view.CoverageViewExtension;
import consulo.execution.test.AbstractTestProxy;
import consulo.java.coverage.localize.JavaCoverageLocalize;
import consulo.language.content.ProductionContentFolderTypeProvider;
import consulo.language.content.TestContentFolderTypeProvider;
import consulo.language.psi.PsiElement;
Expand Down Expand Up @@ -208,9 +209,8 @@ && isModuleOutputNeeded(module, TestContentFolderTypeProvider.getInstance()))) {
suite.checkModule(module);
Runnable runnable = () -> {
if (Messages.showOkCancelDialog(
"Project class files are out of date. Would you like to recompile?" +
" The refusal to do it will result in incomplete coverage information",
"Project is out of date",
JavaCoverageLocalize.projectClassFilesAreOutOfDate().get(),
JavaCoverageLocalize.projectIsOutOfDate().get(),
UIUtil.getWarningIcon()
) == Messages.OK) {
CompilerManager compilerManager = CompilerManager.getInstance(project);
Expand Down Expand Up @@ -612,7 +612,7 @@ protected static String getPackageName(PsiFile sourceFile) {

@Override
public String getPresentableText() {
return "Java Coverage";
return JavaCoverageLocalize.javaCoverageEnginePresentableText().get();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public boolean isClassFiltered(String classFQName) {
public boolean isPackageFiltered(String packageFQName) {
String[] filteredPackageNames = getFilteredPackageNames();
for (String packName : filteredPackageNames) {
if (packName.equals(packageFQName) || packageFQName.startsWith(packName) && packageFQName.charAt(packName.length()) == '.') {
if (packName.equals(packageFQName)
|| packageFQName.startsWith(packName) && packageFQName.charAt(packName.length()) == '.') {
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ java.coverage.engine.presentable.text:
notification.group.coverage:
text: Error loading or collecting coverage data
project.class.files.are.out.of.date:
text: Project class files are out of date, this may lead to incomplete coverage information
text: Project class files are out of date, this may lead to incomplete coverage information. Would you like to recompile?
project.is.out.of.date:
text: Project Is out of Date
record.coverage.filters.title:
Expand Down
Loading