Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] WTP integration in the IAM project proposal

After the solution of,
our users report a new problem:

org.eclipse.jst.common.project.facet.core.JavaFacetInstallConfig cannot be
cast to

This is caused by:

IProjectFacet javaFacet = ProjectFacetsManager.getProjectFacet( ""
IProjectFacetVersion javaFacetVersion = javaFacet.getVersion( "5.0" );
Build buildModel = mavenProject.getModel().getBuild();
for ( IActionDefinition def : javaFacetVersion.getActionDefinitions(
Action.Type.INSTALL ) )
  IDataModel model =
    (IDataModel) def.createConfigObject( javaFacetVersion,
mavenProject.getProject().getName() );
  // ^^ The above line causes the exception ^^
    makeRelative( mavenProject, buildModel.getSourceDirectory() ) );
    makeRelative( mavenProject, buildModel.getOutputDirectory() ) );
  facetActions.add( new Action( Action.Type.INSTALL, javaFacetVersion, null
) );

Is this an API change? If it is not, what's the right form of adding the
java (or any other) nature using the 3.0 API? (We also need to
programatically add any other nature, so if there's an online reference,
that would be great).

Abel Muiño wrote:
> Carl Anderson-4 wrote:
>> Can you please open a Bugzilla for this problem,
>> marking it as appropiate (it appears that you want this treated as a
>> blocking problem), and we will get this resolved as soon as possible.
> Although I replied privately (I don't know why I'm not receiving mail from
> the list), just wanted to copy here the link to the bug report:

----- Abel Muiño Vizcaino  - 
View this message in context:
Sent from the Eclipse WTP - general mailing list archive at

Back to the top