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

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
>
>


Back to the top