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

Refactor CamelDebuggerSession: Simplify breakpoint handling and improve clarity in path modification logic #1076

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

NirbhayMeghpara
Copy link

@NirbhayMeghpara NirbhayMeghpara commented Nov 28, 2024

This pull request includes several important changes to the Camel plugin codebase, focusing on refactoring and improving the structure of language handling and completion providers. The most significant changes include the introduction of abstract completion providers, the extraction of language classes into separate files, and the addition of a file type handler registry for breakpoints.

Refactoring and Code Structure Improvements:

Language Handling:

Breakpoint Handling:

These changes collectively improve the maintainability and extensibility of the codebase by modularizing language definitions, abstracting common functionalities, and centralizing file type handling logic.

NirbhayMeghpara and others added 5 commits November 28, 2024 01:07
… run configuration by introducing explaining variable and extracting method for improved clarity
…s and decompose conditions in CamelDebuggerSession
refactor: replace conditional logic in breakpoint handling with polymorphism
import java.util.Map;

public final class FileTypeHandlerRegistry {
private static final Map<String, FileTypeHandler> HANDLERS = new HashMap<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use Map.of instead

Copy link
Author

Choose a reason for hiding this comment

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

The project mainly uses HashMap for consistency. So I just stick with that to maintain uniformity

@davsclaus davsclaus marked this pull request as draft November 29, 2024 11:33
@davsclaus
Copy link
Collaborator

What is your reason for sending this PR?

This is a IDE plugin for users of Apache Camel. Are you using Apache Camel?
I am asking as we do not want PRs from users that want to cleanup code in projects they dont use or understand.

We are looking for actual end users of Apache Camel that wants to improve this plugin with new features and improvements that make this plugin better for every Camel end users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants