9 Replies Latest reply on Mar 13, 2011 10:17 PM by laurent-d

    Access restriction to com.adobe.flexbuilder.codemodel library


      I have Flash Builder 4 Standard installed in Eclipse 3.6.

      I am writing an Eclipse plugin where I need to access the Flex project properties so I do something like this:


          import com.adobe.flexbuilder.codemodel.common.CMFactory;

          import com.adobe.flexbuilder.codemodel.project.*;


          IProject flexProject = CMFactory.getManager().getProjectFor(myEclipseProject);

      I get this compilation error:
      Access restriction: The method getProjectFor(IProject) from the type IEclipseProjectManager is not accessible due to restriction on required library C:\Program Files\Adobe \Adobe Flash Builder 4 Plug-in\eclipse\plugins\com.adobe.flexbuilder.codemodel_4.0.0.272416\codemodel.jar
      - If I turned it into a Warning I get a runtime exception: java.lang.NoClassDefFoundError: com/adobe/flexbuilder/codemodel/project/IEclipseProjectManager
      - The plugin com.adobe.flexbuilder.codemodel_4.0.0.272416 is correctly imported in my project.
      What does this Access restriction mean?
      Why can't I access the Flex SDK for my licensed version of Flash Builder?