-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified PR with just UI changes and Unit-Tests
- Loading branch information
Showing
18 changed files
with
583 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
org.eclipse.m2e.core.tests/resources/settings/empty_settings/settings_empty.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings/> |
2 changes: 2 additions & 0 deletions
2
org.eclipse.m2e.core.tests/resources/settings/empty_settings/settings_other.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings/> |
2 changes: 2 additions & 0 deletions
2
org.eclipse.m2e.core.tests/resources/settings/empty_settings/toolchains_empty.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<toolchains/> |
2 changes: 2 additions & 0 deletions
2
org.eclipse.m2e.core.tests/resources/settings/empty_settings/toolchains_other.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<toolchains/> |
44 changes: 44 additions & 0 deletions
44
org.eclipse.m2e.core.tests/src/org/eclipse/m2e/core/CoreBiConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Georg Tsakumagos and others | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Georg Tsakumagos - initial declaration | ||
*******************************************************************************/ | ||
package org.eclipse.m2e.core; | ||
|
||
import java.util.function.Consumer; | ||
|
||
import org.eclipse.core.runtime.CoreException; | ||
|
||
/** | ||
* Represents an operation that accepts two input arguments, returns no | ||
* result and throws a {@link CoreException}. | ||
* This is the two-arity specialization of {@link Consumer}. | ||
* Unlike most other functional interfaces, {@code BiConsumer} is expected | ||
* to operate via side-effects. | ||
* | ||
* | ||
* @param <T> the type of the first argument to the operation | ||
* @param <U> the type of the second argument to the operation | ||
* | ||
* @see Consumer | ||
* @author Georg Tsakumagos | ||
*/ | ||
@FunctionalInterface | ||
public interface CoreBiConsumer<T, U> { | ||
|
||
/** | ||
* Performs this operation on the given arguments. | ||
* | ||
* @param t the first input argument | ||
* @param u the second input argument | ||
* @throws CoreException If something went wrong. | ||
*/ | ||
void accept(T t, U u) throws CoreException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.