|
|
|
|
|
Re: Making jsf libraries location relative to eclipse_home? [message #473470 is a reply to message #473466] |
Tue, 03 October 2006 08:53 |
kiril mitov Messages: 128 Registered: July 2009 |
Senior Member |
|
|
Thanks Justin Chen.
I have found the jsflibraries extension point and I have extended it.
I have some problems with the ArchiveFile attributes.
Is this the right way to create an Archive file?
public Collection getArchiveFiles() {
org.eclipse.jst.jsf.core.internal.jsflibraryregistry.Archive File file1
= JSFLibraryRegistryFactory.eINSTANCE.createArchiveFile();
file1.setRelativeToWorkspace(false);
file1 .setSourceLocation(" file://D:\\work\\workspace_jsf\\org.eclipse.jst.tld.editor\\ lib\\commons-logging-1.0.4.jar");
return Collections.singleton(file1);
}
If this is the right way, than way do
ArchiveFileImpl.getResolvedSourceLocation returns null for fileURL when
this call is made:
URL fileURL = Platform.find(bundle, srcPath);
with a srcPath equal to
file://D:\\work\\workspace_jsf\\org.eclipse.jst.tld.editor\\ lib\\commons-logging-1.0.4.jar
I have also tried to remove the "file://" segment but this did not help.
Could you please give me some basic guidlines on how to properly create
the ArchiveFile.
And another question that arised. The ArchiveFile is in internal package.
Both the interface and the implementation. Is it plan for this class to be
made a public api?
Thanks again.
Justin Chen wrote:
> kiril,
> That was what I meant. There is an extension point that you can extend.
> Once your extension is installed, your JSF library should be seen in JSF
> library registry.
> BTW, you won't be able to modify the JAR collection from preference
> page.
> On top of that, you *cannot* distribute your extension as a JAR. This is
> a limitation that we plan to address in next JSF 1.0.
> Hope that you have already found the information on jsfLibraries
> extension
> point already.
> If not, you should be able to find the following from Help Contents
> assuming that you are using WTP 1.5 + JSF 0.5 SDK.
> A tutorial, Creating Plugin-Provided JSF Libraries, in the programmer's
> guide under JavaServer Faces Tooling Develop Guide.
> You should also find the jsfLibraries document under Reference of the
> same developer guide.
> Thanks,
> Justin
|
|
|
|
|
|
|
|
|
|
|
Re: Making jsf libraries location relative to eclipse_home? [message #608012 is a reply to message #473466] |
Tue, 03 October 2006 08:53 |
kiril mitov Messages: 128 Registered: July 2009 |
Senior Member |
|
|
Thanks Justin Chen.
I have found the jsflibraries extension point and I have extended it.
I have some problems with the ArchiveFile attributes.
Is this the right way to create an Archive file?
public Collection getArchiveFiles() {
org.eclipse.jst.jsf.core.internal.jsflibraryregistry.Archive File file1
= JSFLibraryRegistryFactory.eINSTANCE.createArchiveFile();
file1.setRelativeToWorkspace(false);
file1 .setSourceLocation(" file://D:\\work\\workspace_jsf\\org.eclipse.jst.tld.editor\\ lib\\commons-logging-1.0.4.jar");
return Collections.singleton(file1);
}
If this is the right way, than way do
ArchiveFileImpl.getResolvedSourceLocation returns null for fileURL when
this call is made:
URL fileURL = Platform.find(bundle, srcPath);
with a srcPath equal to
file://D:\\work\\workspace_jsf\\org.eclipse.jst.tld.editor\\ lib\\commons-logging-1.0.4.jar
I have also tried to remove the "file://" segment but this did not help.
Could you please give me some basic guidlines on how to properly create
the ArchiveFile.
And another question that arised. The ArchiveFile is in internal package.
Both the interface and the implementation. Is it plan for this class to be
made a public api?
Thanks again.
Justin Chen wrote:
> kiril,
> That was what I meant. There is an extension point that you can extend.
> Once your extension is installed, your JSF library should be seen in JSF
> library registry.
> BTW, you won't be able to modify the JAR collection from preference
> page.
> On top of that, you *cannot* distribute your extension as a JAR. This is
> a limitation that we plan to address in next JSF 1.0.
> Hope that you have already found the information on jsfLibraries
> extension
> point already.
> If not, you should be able to find the following from Help Contents
> assuming that you are using WTP 1.5 + JSF 0.5 SDK.
> A tutorial, Creating Plugin-Provided JSF Libraries, in the programmer's
> guide under JavaServer Faces Tooling Develop Guide.
> You should also find the jsfLibraries document under Reference of the
> same developer guide.
> Thanks,
> Justin
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05234 seconds