Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to new Compilation Participant API in Eclipse 4.28 #2636

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

cdietrich
Copy link
Member

No description provided.

@cdietrich cdietrich added this to the Release_2.31 milestone Apr 26, 2023
@cdietrich
Copy link
Member Author

@szarnekow would also be nice if you can give this a try locally

*
* @author dietrich - Initial contribution and API
*/
public interface CompilationParticipantExtension {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any other idea how to fix "missing override annotations" issues?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really nice backward compatibility mode.

private static final Version VERSION_3_34_0 = new Version(3, 34, 0);

private static Version installedJdtCoreVersion;
private Set<BuildContext> files;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this or is set ok?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BuildContext does not implement equals or hashCode. Should be fine.

@cdietrich
Copy link
Member Author

cdietrich commented Apr 26, 2023

unfortunately we dont seem to have any tests at all for this
do i overlook something?

Copy link
Contributor

@szarnekow szarnekow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll try locally a bit later

*
* @author dietrich - Initial contribution and API
*/
public interface CompilationParticipantExtension {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really nice backward compatibility mode.

private static final Version VERSION_3_34_0 = new Version(3, 34, 0);

private static Version installedJdtCoreVersion;
private Set<BuildContext> files;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BuildContext does not implement equals or hashCode. Should be fine.

@cdietrich cdietrich force-pushed the cd_testCompilationParticipant2 branch 3 times, most recently from 92f5bd9 to fe62b1e Compare April 27, 2023 09:32
workbenchTestHelper.tearDown
}

@Test def void testIfThereIsAnyStatum() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szarnekow what do you think?

/**
* @author Christian Dietrich - Initial contribution and API
*/
class QuickDebugSourceInstallingCompilationParticipantTest extends AbstractXtendUITestCase {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick - that's the spirit :)

Fixes #2613
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
@cdietrich cdietrich force-pushed the cd_testCompilationParticipant2 branch from fe62b1e to 743b024 Compare April 27, 2023 09:55
@cdietrich cdietrich merged commit ab9fee2 into main Apr 27, 2023
@cdietrich cdietrich deleted the cd_testCompilationParticipant2 branch April 27, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants