How to make easily use of XSDs located in a library? - eclipse

We decided to go for an plugin mechanism which brings some services / logic etc., we use XML as a model approach, so the plugin has to bring it's own XSD to be integrated into the XML of the main application. This is done like the Spring approach (e.g. util:, jee: and other namespaces).
We can't upload every plugins XSD to a server. The XSD is located in the JAR of our plugin. Is it possible without adding this JAR to an XML Catalog to directly access this XSD and be able to reference it? So Eclipse can find this XSD and perform the auto-completion, validation, etc.?
Short: We have an XSD in our library and want to make use of it, how can we achieve this?

Look at the org.eclipse.wst.standard.schemas for examples of how to add schemas to the catalog from an Eclipse plug-in.

Related

Extend or configure Eclipse compare files functionality

Eclipse has built in functionality for comparing files, but how can I configure that functionality? Say I create a new file type and want an external program do perform the diff. How do I set that up?
Can I create an Eclipse plugin to add my own plugin for handling file comparisons? Or perhaps that is the answer to the first question...
You may want to look at the EMF Compare Project which helps build compare editors for EMF models. If you don't have an EMF model for your file type, you can either create one or look through the source code of EMF Compare to see how it works.
The developer guide explains how to use the code to write your custom viewers.
There is a plugin integrating Beyond Compare into Eclipse. As it is open source, you might get a clue by looking at its sources.

Is there a way to load plugin.xml as an object?

I have a plug-in project opened in the workspace. Is there an API which could help to change the plugin.xml? I don't want to parse it as an xml file.
There is no "good" way to do this as the PDE guys did not open their APIs to modify manifest files (MANIFEST.MF, plugin.xml, etc). You can only access those information in read only with their APIs. That being said, if you are not afraid of using internal code, you can have a look at PDEModelUtility and ModelModification. These classes are used in the OrganizeManifestProcessor.

Auto upload files in included path using Netbeans

I have a NetBeans javascript project with several included paths for plugins. I do not want to include the plugins in my core repository, so I have created separate, external folders for each and am including them via an include path. Because I test across many devices, I need my changes to upload on save and this works fine for the main code base, however, I would like to be able to edit a plugin via the include path and see those changes auto uploaded as well. Is this possible?
As of right now, the only alternative I see is to create separate projects for each plugin, which I am willing to do if this is the only option. The single project workflow is very preferable to me and I might be willing to switch IDE's if this is possible in another environment.
I would be happy to elaborate if my intentions are unclear.
I don't think it's possible. What about creating one single "umbrella" project for all plugins and simply manage it the same way you do the main project?
Personal note: What you have is basically several projects and the uploading is focused always on single project. So what you want is like "I want to treat them as projects but not to at the same time" :) Btw, how do you edit a plugin? I guess open it as a project in NetBeans or use some text editor. So again you basically treat it as a project.

JSF Managed Bean Code Assist Eclipse

Is there a way within Eclipse (MyEclipse specifically) to have code assist functionality within a JSF (or XHTML, or JSP, etc) file where I am attempting to access managed bean properties?
See section 8.1.2.1.2.2. Content Assist Based on Project Data # http://docs.jboss.org/tools/2.0.0.GA/jsf/en/html/jbds_editors.html for clarification.
The docs you referenced are a perfect way to achieve way you need. Contrary to what its name may suggest, JBossTools is universally useable without the need to deploy to JBoss or otherwise have any JBoss specific things in your code.
The only thing is that MyEclipse, being a massively modified Eclipse, will probably not work together with JBossTools (but actually it is supposed to offer exactly this kind of functionality already).

Enterprise library Validation block

I have a web application project. I want to add Configuration Source and keep Validation block, Caching and Logging config files separate. But as soon as I go to the UI of enterprise Lib and add a configuration Source, it combines everything in a single file. Is there a way to separate all these ?.
Yes you can separate the configuration files. This article gives some directions.