Skip to content

Commit 8e6df41

Browse files
committed
fix conflict
2 parents 01be721 + 85cda09 commit 8e6df41

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/actions/PastebinAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ private void submitPaste(final TmcProjectInfo projectInfo, final Exercise exerci
111111
final String errorMsgLocale = settings.getErrorMsgLocale().toString();
112112
try {
113113
Path path = Paths.get(projectInfo.getProjectDirAbsPath());
114-
ListenableFuture<URI> result = TmcCoreSingleton.getInstance().pasteWithComment(path, messageForReviewer);
114+
ListenableFuture<URI> result = TmcCoreSingleton.getInstance()
115+
.pasteWithComment(path, messageForReviewer);
115116
Futures.addCallback(result, new PasteResult());
116117
} catch (TmcCoreException ex) {
117118
Exceptions.printStackTrace(ex);

tmc-plugin/src/fi/helsinki/cs/tmc/model/TmcProjectInfo.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import fi.helsinki.cs.tmc.utilities.zip.RecursiveZipper;
44
import java.io.File;
5+
import java.nio.file.Path;
6+
import java.nio.file.Paths;
57
import java.util.regex.Pattern;
68
import org.netbeans.api.project.Project;
79
import org.netbeans.api.project.ProjectUtils;
@@ -35,7 +37,11 @@ public FileObject getProjectDir() {
3537
public File getProjectDirAsFile() {
3638
return FileUtil.toFile(getProjectDir());
3739
}
38-
40+
41+
public Path getProjectDirAsPath() {
42+
return Paths.get(getProjectDirAbsPath());
43+
}
44+
3945
public String getProjectDirAbsPath() {
4046
return FileUtil.toFile(getProjectDir()).getAbsolutePath();
4147
}

tmc-plugin/src/fi/helsinki/cs/tmc/runners/TestRunHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public void performAction(final ResultCollector resultCollector, Project... proj
7373
"Running tests.");
7474
runningTestsLocally.start();
7575
try {
76-
ListenableFuture<RunResult> result = TmcCoreSingleton.getInstance().test(Paths.get(projectInfo.getProjectDirAbsPath()));
76+
ListenableFuture<RunResult> result = TmcCoreSingleton.getInstance()
77+
.test(Paths.get(projectInfo.getProjectDirAbsPath()));
7778
Futures.addCallback(result, new FutureCallback<RunResult>() {
7879
@Override
7980
public void onSuccess(final RunResult result) {

0 commit comments

Comments
 (0)