Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » cannot cast to org.eclipse.cdt.managedbuilder.core.IToolChain
cannot cast to org.eclipse.cdt.managedbuilder.core.IToolChain [message #212093] Wed, 19 March 2008 10:16
Eclipse UserFriend
Hello guys,
i am working with a custom command line generator.
I used long time following code w/o problem in my code:
IPath projectfolder;
IBuildObject ibo = tool.getParent() ;
IToolChain tc = (IToolChain) ibo ;
IConfiguration config = tc.getParent() ;
IManagedProject mproject = config.getManagedProject() ;
IResource resource = mproject.getOwner() ;

But since cdt 4.x i get following error message, when i open the
properties for a single source file:
org.eclipse.cdt.managedbuilder.internal.core.ResourceConfigu ration cannot
be cast to org.eclipse.cdt.managedbuilder.core.IToolChain

Any ideas how to avoid that error ?

Greetings,
Patrick
Previous Topic:declaration/definition search and the reference search
Next Topic:used program elements reported as unused
Goto Forum:
  


Current Time: Sun Jul 20 05:49:27 EDT 2025

Powered by FUDForum. Page generated in 0.22890 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top