Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » reload property pages if property changes
reload property pages if property changes [message #228811] Fri, 16 January 2009 14:02 Go to next message
Nadine K is currently offline Nadine KFriend
Messages: 27
Registered: July 2009
Junior Member
hello,
I've written a new property page which changes the include paths of a
configuration. The problem is that when I switch to the PathAndSymbol page
and look at the IncludeTab there, I do not see the change.
If I cancel the property dialog and reopen it, the IncludeTab shows the
includes correctly. But if I close the property dialog by pressing 'ok',
my values get lost and the IncludeTab shows the old values.
Is it possible to tell all the property pages or (even better) just one
property page to reload their property values?
thx
sth_Weird
Re: reload property pages if property changes [message #228870 is a reply to message #228811] Sat, 17 January 2009 13:25 Go to previous messageGo to next message
James Blackburn is currently offline James BlackburnFriend
Messages: 36
Registered: July 2009
Member
sth_Weird wrote:
> I've written a new property page which changes the include paths of a
> configuration. The problem is that when I switch to the PathAndSymbol
> page and look at the IncludeTab there, I do not see the change.
> If I cancel the property dialog and reopen it, the IncludeTab shows the
> includes correctly. But if I close the property dialog by pressing 'ok',
> my values get lost and the IncludeTab shows the old values.

It sounds like you're updating the settings on your own project
description rather than the project description handed to your property
page by the AbstractCPropertyTab interface.

Is your page extending AbstractCPropertyTab? If so you should be hooked
into:
protected abstract void performApply(ICResourceDescription src,
ICResourceDescription dst);
protected abstract void performDefaults();
protected abstract void updateData(ICResourceDescription cfg);
protected abstract void updateButtons();


> Is it possible to tell all the property pages or (even better) just one
> property page to reload their property values?

If you're using the right resource description you shouldn't need to do
this. The act of changing property pages causes the settings to be
updated from the shared UI project description.

Cheers,

James
Re: reload property pages if property changes [message #228925 is a reply to message #228870] Mon, 19 January 2009 09:33 Go to previous messageGo to next message
Nadine K is currently offline Nadine KFriend
Messages: 27
Registered: July 2009
Junior Member
thank you very much for your answer, I haven't finished my tab yet, but it
seems to work (my include list updates when I update the include list on
the include tab)!
maybe you can also answer me another question:
since my tab actually does the same as the include tab and a bit more (all
I did was copy the sources and add a button in the button field on the
right which calls a function that automatically fills the include list),
is it possible to set the include tab invisible? And since I don't think
there is, alternatively: is it possible to influence the position of the
newly created tab? Right now it gets inserted after the last cdt tab. It
would be less confusing for the user if it was inserted right after the
include tab.
But well those are just some extra features that would be handy but not
vital for the plugin, the functional part works now and that is the most
important part :-)...
so thank you again!

sth_Weird
Re: reload property pages if property changes [message #229084 is a reply to message #228925] Tue, 20 January 2009 21:27 Go to previous messageGo to next message
James Blackburn is currently offline James BlackburnFriend
Messages: 36
Registered: July 2009
Member
sth_Weird wrote:
> maybe you can also answer me another question:
> since my tab actually does the same as the include tab and a bit more
> (all I did was copy the sources and add a button in the button field on
> the right which calls a function that automatically fills the include
> list), is it possible to set the include tab invisible? And since I
> don't think there is, alternatively: is it possible to influence the
> position of the newly created tab? Right now it gets inserted after the
> last cdt tab. It would be less confusing for the user if it was inserted
> right after the include tab.

Have a look at the patch on this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=242004

> But well those are just some extra features that would be handy but not
> vital for the plugin, the functional part works now and that is the most
> important part :-)...
> so thank you again!

Cool!

James
Re: reload property pages if property changes [message #989991 is a reply to message #228925] Mon, 10 December 2012 11:14 Go to previous message
anil kumar is currently offline anil kumarFriend
Messages: 17
Registered: January 2012
Junior Member
i have one doubt in eclipse CDT plug in development for Managed Build System, how to override the IncludeTab of Paths and Symbol page of C/C++ project Properties page; so i have added following code in the plug-in.xml file

<extension
point="org.eclipse.cdt.ui.cPropertyTab">
<!-- exported from CORE -->
<tab
class="com.test.cdt.remote.make.IncludeTabLatest"
icon="icons/obj16/hfolder_obj.gif"
name="Includes"
weight="010"
helpId="cdt_u_prop_pns_inc"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
tooltip="testanil"/>
and try to override the "org.eclipse.cdt.ui.newui.IncludeTab" class using "com.test.cdt.remote.make.IncludeTabLatest"; all the functionalites are working but in Paths and Symbol page still i can see IncludeTab of org.eclipse.cdt.ui plug in and newly added IncludeTabLatest both;please find the png file for your reference; i need to show only one Tab of my latest IncludeTab; any idea please suggest me ;
please find the attachment;
Previous Topic:Definition of __STDC_HOSTED__ in Eclipse?
Next Topic:if the area below #ifdef is gray what does it mean ?
Goto Forum:
  


Current Time: Fri Apr 26 10:06:39 GMT 2024

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

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

Back to the top