[
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 https://bugs.eclipse.org/bugs/show_bug.cgi?id=228452,
our users report a new problem:
java.lang.ClassCastException:
org.eclipse.jst.common.project.facet.core.JavaFacetInstallConfig cannot be
cast to
org.eclipse.wst.common.frameworks.datamodel.IDataModel
This is caused by:
IProjectFacet javaFacet = ProjectFacetsManager.getProjectFacet( "jst.java"
);
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 ^^
model.setStringProperty(
"IJavaFacetInstallDataModelProperties.SOURCE_FOLDER_NAME",
makeRelative( mavenProject, buildModel.getSourceDirectory() ) );
model.setStringProperty(
"IJavaFacetInstallDataModelProperties.DEFAULT_OUTPUT_FOLDER_NAME",
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:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=228452
>
>
-----
http://www.linkedin.com/in/amuino Abel Muiño Vizcaino -
http://ramblingabout.wordpress.com http://ramblingabout.wordpress.com
--
View this message in context: http://www.nabble.com/WTP-integration-in-the-IAM-project-proposal-tp16785078p17037577.html
Sent from the Eclipse WTP - general mailing list archive at Nabble.com.