Comments (15)
And we should use #beanName
style to refer to the bean by its name for the smart completion values, eg ...filter=#myFilter
from camel-idea-plugin.
@davsclaus what would be the search scope of the beans?
For XML I can easily search in the current XML file and all of the XML imports but for Java I have no idea.
Do we need to prevent importing something that will fail to be resolved at runtime or not? I'm thinking about OSGI containers that can complicate the things.
from camel-idea-plugin.
Yeah at first its fine for XML - lets focus on that as its easier as you say, its in both spring and blueprint xml files.
For Java lets create another ticket and discuss there.
from camel-idea-plugin.
In the completion popup it shows all the beans that inherit the wanted class or interface located in the Intellij application context (if the Spring facet is configured). Thus the search scope can be at maximum the IntelliJ module.
@davsclaus is this ok?
from camel-idea-plugin.
@adrianbumbas yeah that looks great. Mind that when the value is inserted, it should use #
syntax in Camel to refer to beans: eg
"cxf:bean:soapMessageEndpoint?bus=#blueprintBus"
Notice how the #
is prefixed before the bean id.
There is a section about referring beans in the docs: http://camel.apache.org/how-do-i-configure-endpoints.html
from camel-idea-plugin.
@davsclaus ok,done that.
Now i'm struggling to fix the existing unit test. The Spring Intellij plugin depends on the java-i18n plugin. That plugin registers his own reference contribuitor which interferes with the PropertyEndpointSmartCompletionTestIT
unit test. I'm currently having fun debugging the paltform.
from camel-idea-plugin.
Figured out the issue:
The com.intellij.lang.properties.PropertiesReferenceContributor
from the com.intellij.java-i18n
plugin is registered in place of CamelPropertiesOrYamlFileReferenceContributor
.
This can be solved in the plugin.xml
file by adding order="FIRST"
to the CamelPropertiesOrYamlFileReferenceContributor
.
from camel-idea-plugin.
I now realize that the Spring plugin works only with the Ultimate version.
The Travis build is using the Community edition.
from camel-idea-plugin.
@adrianbumbas bommer, do you need any specific IDEA spring artifacts or can you depend on the spring artifacts from maven?
from camel-idea-plugin.
I need the Spring plugin to be enabled in IDEA, it would not even run on the Community edition. I develop everything on the Ultimate edition and I never thought that it will not work on the Community. Lesson learned.
from camel-idea-plugin.
Well I guess you need to make it a optional dependency. I'm not sure if it possible but you might be able to install as part of the testing.
I describe an issue with other language support in #285 and testing we to look into.
from camel-idea-plugin.
If I understand this correctly the optional dependency allows some feature to be enabled in your plugin only if a certain plugin is present. This should do the trick, but the Spring IDEA jars must be in classpath so that the unit test passes, for that the Travis build must be changed to use the IDEA Ultimate edition.
Do I have any other alternative?
from camel-idea-plugin.
If you can't find it in the plugins browser I guess there is no way of installing the Spring IDEA jars in the community edition. If we change the Travis build to use the Ultimate version we properly need a license for this, since the Ultimate license is personally
from camel-idea-plugin.
Yeah they have some plugins that are private and only in the ultimate (paid) version - sadly spring is one of them.
from camel-idea-plugin.
Unfortunately this feature cannot be implemented.
from camel-idea-plugin.
Related Issues (20)
- plugin 1.2.5 : is possible to add some type of line for create indent + 1 HOT 2
- Upgrade to 2023.3.5
- Update to Kamelets 4.4.1
- Upgrade to Camel 4.5.0
- Upgrade to IDEA 2024.1 HOT 3
- Upgrade to IDEA 2023.2.5
- Custom Component JSON to Kamelets HOT 1
- Upgrade to Camel 4.3
- The plugin does not support Chinese characters in .log() and .description() HOT 5
- Complains about simple expression in jsonPath despite allowSimple HOT 4
- Upgrade to IDEA 2023.3 HOT 3
- Fix regressions since IDEA 2023.3
- Ensure that the Debugger still works with Camel 4.3 HOT 2
- Update to IDEA 2023.3.3
- Upgrade to Camel 4.4
- Camel 4.5 - Add type completion for data type transformer in YAML HOT 1
- Camel 4.4 - Add support for updating exchange variables in debugger
- Formatter doesn't seem to work when a spicefic formatter like google-java-format is used HOT 6
- Upgrade to IDEA 2023.3.4
- Breakpoint disabled: Camel EIP ID Not Found HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camel-idea-plugin.