Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Questions regarding Language Settings Provider

Look at LanguageSettingsGenericProvider. This class is final though because implementations of clone() and cloneShallow() cannot be used from superclass. If you need your own implementation, implement ILanguageSettingsEditableProvider and copy/paste clone() and cloneShallow() in your class.

Andrew


On Sun, Mar 31, 2013 at 7:45 AM, Sebastian Wagner <se.wagner@xxxxxxxxxxx> wrote:
Hello Andrew,

yes I used the build definitions extension point to assign the provider to a configuration.
In the plugin.xml I set prefer-non-shared="true", but nevertheless it is created as shared (its says the option is only valid for implementations of ILanguageSettingsEditableProvider). I think this may be because I am using LanguageSettingsBaseProvider. It doesn't implement ILanguageSettingsEditableProvider, does it? Is there an implementation of ILanguageSettingsEditableProvider I could use?



Date: Sun, 31 Mar 2013 07:18:26 -0400
From: angvoz.dev@xxxxxxxxx
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] Questions regarding Language Settings Provider


Hi Sebastian,
How do you activate your provider when creating new project? Did you define your provider in your toolchain via BuildDefinitions extension point? If so, MBS should add providers with specified properties from associations to configurations while creating a new project.

Thanks,
Andrew



On Sun, Mar 31, 2013 at 6:45 AM, Sebastian Wagner <se.wagner@xxxxxx> wrote:
Hello Andrew,

thanks for your reply in the forum. I found how to activate my LanguageSettingsProvider by default when creating a new project.

I still would like to make my provider non- shared. I tried the LanguageSettingsProviderAssociation you mentioned, but the provider is still not editable nor I found how to make it non-shared.

Here the extract from the plugin.xml:

<extension
         point="org.eclipse.cdt.core.LanguageSettingsProvider">
      <provider
            id="com.valeo.vws.cdt.iartoolchain.iarclanguage.langsettingsprovider"
            name="IAR C Builtin Compiler Settings"
            prefer-non-shared="true">
         <entry
               kind="macro"
               name="__IAR_SYSTEMS_ICC__">
            <flag
                  value="BUILTIN">
            </flag>
         </entry>
         <language-scope
               id="com.valeo.vws.cdt.iartoolchain.iarclanguage">
         </language-scope>
      </provider>
   </extension>
   <extension
         point="org.eclipse.cdt.ui.LanguageSettingsProviderAssociation">
      <id-association
            id="com.valeo.vws.cdt.iartoolchain.iarclanguage.langsettingsprovider"
            ui-clear-entries="true"
            ui-edit-entries="true">
      </id-association>
   </extension>

I didn't put an own implementation class for the provider, so it uses the LanguageSettingsBaseProvider. Does this class provide the possibility to make the provider non- shared?

What needs to be done to make the provider non-shared directly after creating the project?

Thanks for your help!

Sebastian

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top