Facets???

Can someone tell me what facets are? How do they work? How they make my work easier? I searched for some documentation, but could not find any.

12 comments
Comment actions Permalink

Hi Norris,

Facets are a new way to configure 'sub-module' project structure. Currently available are GWT, Hibernate, JPA, JSF, Struts and Spring.

You can add this in your Settings | Project Settings dialog from the context menu on a module node.

HTH, Ruben

0
Comment actions Permalink

Exactly!

And also in 7.0 all our J2EE module types will be replaced by
corresponding facets. This change is important to be able to define
several technologies in one module. It also makes it easy to add web (or
any other) support later to the module.

0
Comment actions Permalink

Facets are how IDEA acknowledges the cleverness of Eclipse's project natures]]>

0
Comment actions Permalink

OK, i create a module and add a facet for say Struts. Is there any plan to allow it to use my existing declared libraries?

0
Comment actions Permalink

Yes, certainly.


0
Comment actions Permalink

OK, let's say I add a facet and I have a library defined that I want it to use (because I have multiple versions of Struts that I use), will it add all of the artifacts that are needed? Such as a struts-config.xml file a messageResources.properties, validation-rules.xml, validation.xml?

Basically, it would be great if it understand what goes into something like a struts-blank project and checked to see if those files were already there. If not, ask me if I want to add the.

Is there an ETA for facets to take advantage of declared libraries?

0
Comment actions Permalink

Hello Marcus,

Actually, there is nothing flameworthy about that. There are many good features
in Eclipse (many of them borrowed from us), so we do not hesitate to borrow
too :)

Vladislav Kaznacheev
Project Manager, IntelliJ IDEA
http://www.jetbrains.com
"Develop with Pleasure!"

<flamebait>Facets are how IDEA acknowledges the cleverness of
Eclipse's project natures</flamebait>



0
Comment actions Permalink

April is a good estimation i hope :)


0
Comment actions Permalink

OK. It seems like a pretty idea. I tried to use it a little, but it doesn't seem like it is ready. One issue I had was when I let it pull down a version of Struts, it grabbed v1.3. Then I wanted to use 1.2.9, but it still insisted on using the previously downloaded v1.3 libraries. I had no way to force it to reload. Maybe that will be fixed when it can use the existing libraries.

Is there a plan for it to be able to add missing config files, such as when starting a new project?

0
Comment actions Permalink

Yes. A bit of patience, please...
But I'm not sure that libraries removing/reinstalling will be available.
IMHO it is not a common use case.


0
Comment actions Permalink

Really? What about when a newer version of a library comes out? How would that be handled?

0

Please sign in to leave a comment.