Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Changing buildArguments

Ok, got it working now. Prize question: can I also access non-active
build targets from getResDesc(). The background is that i would to
change buildArguments for all build targets simultaneousl from one
tab..

2011/7/6 Sten Gruener <sten.gruener@xxxxxxxxx>:
> I am on the right track now, have to go home now. Will continue
> working on the tab tomorrow.
>
> Just one more question: can I add a custom field into the
> configuration data? If yes, how?
>
> Regards and спасибо, Андрей!
>
> On 6 July 2011 17:46, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
>> Uninformed does not equal stupid. There is extension
>> point="org.eclipse.cdt.ui.cPropertyTab" and by some reasons they are
>> implemented in org.eclipse.cdt.managedbuilder.ui rather than in cdt.ui.
>> Andrew
>>
>> On Wed, Jul 6, 2011 at 11:35 AM, Sten Gruener <sten.gruener@xxxxxxxxx>
>> wrote:
>>>
>>> Yea, but I do need to include this tab into PropertyPage class
>>> extension somehow ( Sorry for being that stupid.
>>>
>>> On 6 July 2011 17:29, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
>>> > It's in org.eclipse.cdt.ui, package org.eclipse.cdt.ui.newui.
>>> > Andrew
>>> >
>>> > On Wed, Jul 6, 2011 at 11:16 AM, Sten Gruener <sten.gruener@xxxxxxxxx>
>>> > wrote:
>>> >>
>>> >> That's a hot clue!
>>> >>
>>> >> I can not locate AbstractCPropertyTab....
>>> >>
>>> >> Currently I just have a normal PropertyPage a la
>>> >>
>>> >> "public class MyPropertyPage extends PropertyPage {"
>>> >>
>>> >> Could you give me a further clue on it?
>>> >>
>>> >> Regards
>>> >> Sten
>>> >>
>>> >> On 6 July 2011 17:03, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
>>> >> > How do you retrieve configuration for your property page? For CDT
>>> >> > pages
>>> >> > I
>>> >> > believe you are supposed to extend  AbstractCPropertyTab and
>>> >> > use getResDesc().getConfiguration() to get configuration shared by
>>> >> > all
>>> >> > CDT
>>> >> > pages.
>>> >> > Andrew
>>> >> >
>>> >> >
>>> >> > On Wed, Jul 6, 2011 at 10:45 AM, Sten Gruener
>>> >> > <sten.gruener@xxxxxxxxx>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi Andrew,
>>> >> >>
>>> >> >> The problem is that if the page "C/C++ Build" was clicked before or
>>> >> >> after mine page, so it is loaded in the properties dialogue, then it
>>> >> >> reverts my changes and changes everything back (to a pre-cached
>>> >> >> copy,
>>> >> >> I guess). On the other hand, if "C/C++ Build" was not clicked, then
>>> >> >> my
>>> >> >> code works perfectly. Can I somehow influence the mentioned page?
>>> >> >>
>>> >> >> The code I am calling is executed in performOK(); or did I
>>> >> >> misunderstand
>>> >> >> you?
>>> >> >>
>>> >> >> Regards
>>> >> >> -Sten
>>> >> >>
>>> >> >> On 6 July 2011 16:34, Andrew Gvozdev <angvoz.dev@xxxxxxxxx> wrote:
>>> >> >> > Hi Sten,
>>> >> >> > Keep in mind that properties page gets a copy of configuration
>>> >> >> > description
>>> >> >> > and the changes get applied to the real one only with OK or Apply
>>> >> >> > button. As
>>> >> >> > far as I remember there are some things you need to do in
>>> >> >> > performApply(),
>>> >> >> > performOK() and performDefault() for that to happen.
>>> >> >> > Andrew
>>> >> >> >
>>> >> >> > On Wed, Jul 6, 2011 at 10:05 AM, Sten Gruener
>>> >> >> > <sten.gruener@xxxxxxxxx>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> Hello,
>>> >> >> >>
>>> >> >> >> I would like to change buildArguments of my project configuration
>>> >> >> >> from
>>> >> >> >> own pagePreferences plugin (an own page from Project->Properties
>>> >> >> >> dialogue).
>>> >> >> >>
>>> >> >> >> I am trying both ways described here:
>>> >> >> >> http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg11166.html
>>> >> >> >>
>>> >> >> >> However none of them seems to work, or works just from time to
>>> >> >> >> time?
>>> >> >> >>
>>> >> >> >> Is it some kind of a raise condition? Do I need to call it from a
>>> >> >> >> different thread?
>>> >> >> >>
>>> >> >> >> Regards
>>> >> >> >> Sten
>>> >> >> >> _______________________________________________
>>> >> >> >> 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
>>> >> >
>>> >> >
>>> >> > _______________________________________________
>>> >> > 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
>>> >
>>> >
>>> _______________________________________________
>>> 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