Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to change Tab Order of CDT build settings tabs

A hack that has worked in the past is to change the id of the element your extension. I haven't tried this in a long time, but in Eclipse 3.0 the extensions wound up being sorted by id before being returned (by IExtensionRegistry.getConfigurationElementsFor). So if the code that implements the extension-point does not resort the list, it might wind up moving the location of your content.

Its a hack (assuming that it even still works), but might be a workaround until the actual bug is fixed.

-Andrew

James Blackburn wrote:
The problem is that the weight attribute is not being respected by
AbstractPage (AbstractPage also only compares tabs from the same
plugin, so contributors can't position the tab where they wish...).
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=242004 for a patch.

Perhaps one of the UI committers could take a look / comment?

Cheers,

James

On Wed, Oct 1, 2008 at 11:10 AM,  <patrick.schmitt@xxxxxxx> wrote:
Hello guys,
i extended AbstractCPropertyTab for creating an own Tab Page(in those tab i
show all excluded files/folders of the current project). At the moment my
custom tab is the last tab shown in the tab order. Now i want to set it at a
lower position, e.g. after the "Build Artifact" property tab.
I tried following code in my createControls(Composite parent), but it doesnt
help:

TabFolder tabFldr = (TabFolder)parent.getParent();
Control[] tabList = tabFldr.getTabList();
Control tmp = tabList[3];
tabList[3] = tabList[5];
tabList[5] = tmp;
tabFldr.setTabList(tabList);
tabFldr.redraw();

Any ideas how to change the order ?

Greets Patrick

_______________________________________________
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