UIEXT-3554: Split legacy API from EffectPredicateProvider#198
Open
PaulBrnrther wants to merge 1 commit intomasterfrom
Open
UIEXT-3554: Split legacy API from EffectPredicateProvider#198PaulBrnrther wants to merge 1 commit intomasterfrom
PaulBrnrther wants to merge 1 commit intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces an extension mechanism to decouple legacy predicate-initializer functionality from EffectPredicateProvider.PredicateInitializer, moving legacy-specific predicate support behind a startup-registered extension point.
Changes:
- Add
PredicateInitializerExtensionmarker type andPredicateInitializer#getRegisteredPredicateInitializer(Class)lookup API. - Introduce
PredicateInitializerExtensionPointregistry and register legacy predicate extensions fromCoreUIPlugin. - Move legacy MultiFileSelection/FileWriter predicate capabilities into dedicated legacy extension interfaces and adapt WebUI predicate translation to the new types.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
org.knime.core.ui/src/eclipse/org/knime/node/parameters/updates/PredicateInitializerExtension.java |
Adds marker interface for predicate initializer extensions. |
org.knime.core.ui/src/eclipse/org/knime/node/parameters/updates/EffectPredicateProvider.java |
Removes embedded legacy reference interfaces; adds extension lookup method to PredicateInitializer. |
org.knime.core.ui/src/eclipse/org/knime/node/parameters/legacy/widget/file/LegacyMultiFileSelectionPredicateInitializer.java |
New legacy extension interface for legacy multi-file selection predicate support. |
org.knime.core.ui/src/eclipse/org/knime/node/parameters/legacy/widget/file/LegacyFileWriterPredicateInitializer.java |
Renames/relocates legacy file-writer predicate support into a legacy extension interface. |
org.knime.core.ui/src/eclipse/org/knime/core/webui/node/dialog/defaultdialog/jsonforms/uischema/DefaultPredicateInitializer.java |
Implements new extension lookup via PredicateInitializerExtensionPoint. |
org.knime.core.ui/src/eclipse/org/knime/core/webui/node/dialog/defaultdialog/impl/predicates/PredicateInitializerExtensionPoint.java |
Adds registry for extension factories, used by the predicate initializer implementation. |
org.knime.core.ui/src/eclipse/org/knime/core/webui/node/dialog/defaultdialog/impl/predicates/ConditionToPredicateTranslator.java |
Updates imports to legacy extension reference types. |
org.knime.core.ui/src/eclipse/org/knime/core/ui/CoreUIPlugin.java |
Registers legacy predicate initializer extensions at bundle startup. |
org.knime.core.ui/META-INF/MANIFEST.MF |
Stops exporting the removed legacy updates package. |
Comments suppressed due to low confidence (1)
org.knime.core.ui/src/eclipse/org/knime/core/ui/CoreUIPlugin.java:95
- The extension registry is static and never cleared. On OSGi bundle stop/start or refresh this can retain stale registrations and classloader references; consider adding a
clear()/unregister(...)API onPredicateInitializerExtensionPointand calling it fromstop(...)to avoid leaks and unexpected state across restarts.
@Override
public void stop(final BundleContext context) throws Exception {
//
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
UIEXT-3554 (Use an extension point for enhancing the EffectPredicateProvider (and rewrite the one for LegacyMultiFileSelection))
1250dca to
211a0f8
Compare
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


UIEXT-3554 (Use an extension point for enhancing the EffectPredicateProvider (and rewrite the one for LegacyMultiFileSelection))