Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Flexible Project
Flexible Project [message #201950] Thu, 11 October 2007 17:25 Go to next message
fchen is currently offline fchen
Messages: 22
Registered: July 2009
Junior Member
Does anyone know if Flexible Project concept is still valid for WTP2.0? I
was reading some online document and it refers to IFlexibleProject.
However I can't find this interface anywhere in the WTP 2.0 source.
Similar things happen to ModuleCore, ModuleStructuralModel and a few
others. It seems that they were replaced by ArtifactEdit and
ArtifactEditModel etc. But some of them still exist in the source with
minimum references to them. Developer guide doesn't talk anything about
these either. Any clarification appreciated.
Re: Flexible Project [message #201973 is a reply to message #201950] Fri, 12 October 2007 11:37 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1304
Registered: July 2009
Senior Member
I'm not aware of much new documentation yet, but here are some classes
I've made use of in my programming which previously involved some of the
classes you mention:

org.eclipse.wst.common.componentcore.ComponentCore
org.eclipse.jst.j2ee.model.ModelProviderManager
org.eclipse.jst.j2ee.model.IModelProvider
org.eclipse.wst.common.project.facet.core.ProjectFacetsManag er
org.eclipse.wst.common.project.facet.core.FacetedProjectFram ework
org.eclipse.wst.common.project.facet.core.I*

I think IFacetedProject has replaced IFlexibleProject. If you can
elaborate on what you are looking to do, I can try to provide more detail.

Larry

Feng wrote:
> Does anyone know if Flexible Project concept is still valid for WTP2.0?
> I was reading some online document and it refers to IFlexibleProject.
> However I can't find this interface anywhere in the WTP 2.0 source.
> Similar things happen to ModuleCore, ModuleStructuralModel and a few
> others. It seems that they were replaced by ArtifactEdit and
> ArtifactEditModel etc. But some of them still exist in the source with
> minimum references to them. Developer guide doesn't talk anything about
> these either. Any clarification appreciated.
>
Re: Flexible Project [message #201982 is a reply to message #201973] Fri, 12 October 2007 12:23 Go to previous messageGo to next message
fchen is currently offline fchen
Messages: 22
Registered: July 2009
Junior Member
I was trying to get some meta information about the project. More
specifically I was looking at the info stored in
settings/org.eclipse.wst.common.component for the module URI, the
wb-resources and the properties. I was able to get the properties using
ArtifactEdit.getComponent().getMetaProperties(). However, I couldn't get
the other two without going into the internal implementation classes such
as ModuleStructuralModel. Any ideas? Thanks for your help.
Re: Flexible Project [message #201988 is a reply to message #201982] Fri, 12 October 2007 13:46 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1304
Registered: July 2009
Senior Member
Would IVirtualComponent.getReferences() and
ref[i].getReferencedComponent() give you an IVirtualComponent that can
access the what you want for wb-resource? It can access some
wb-resource info but not everything. I'm not sure what corresponds to
module URI. Are you referring to the deploy-name or something else?

Cheers,
Larry

Feng wrote:
> I was trying to get some meta information about the project. More
> specifically I was looking at the info stored in
> settings/org.eclipse.wst.common.component for the module URI, the
> wb-resources and the properties. I was able to get the properties using
> ArtifactEdit.getComponent().getMetaProperties(). However, I couldn't get
> the other two without going into the internal implementation classes
> such as ModuleStructuralModel. Any ideas? Thanks for your help.
>
>
Re: Flexible Project [message #202094 is a reply to message #201988] Sun, 14 October 2007 22:33 Go to previous message
fchen is currently offline fchen
Messages: 22
Registered: July 2009
Junior Member
Unfortunately these don't provide the values for wb-resource etc. It looks
like the IVirtualComponent is not fully populated for some reason. I am
going to look at IFacedProject as you suggested. Thanks.
Previous Topic:creating a new key combination for a WTP command
Next Topic:There are no projects that can be added or removed from the server.
Goto Forum:
  


Current Time: Fri Aug 01 07:56:35 EDT 2014

Powered by FUDForum. Page generated in 0.01857 seconds