[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-debug-dev] #initializeFrom( ) is not called when switching tabs
|
Joe,
I did a bit of digging and here is what I found that seems a bit odd:
The handleTabSelected() method gets invoked as for any tab selection event.
protected void handleTabSelected() {
if (isDisposingTabs()) {
return;
}
ILaunchConfigurationTab[] tabs = getTabs();
if (fCurrentTabIndex == getTabFolder().getSelectionIndex() || tabs ==
null || tabs.length == 0 || fCurrentTabIndex > (tabs.length - 1)) {
return;
}
....
}
However, it seems that the fCurrentTabIndex == getTabFolder
().getSelectionIndex() check returns true and hence this method returns
without calling initializeFrom( ). The value of fCurrentTabIndex is 1
(which sound about right as I am swtiching from the first tab to the second
tab).
When I open a defect, should I specify release 2.0.2?
Thanks,
Vadim.
|---------+------------------------------------>
| | Joseph |
| | Szurszewski/Minneapolis/I|
| | BM@IBMUS |
| | Sent by: |
| | platform-debug-dev-admin@|
| | eclipse.org |
| | |
| | |
| | 01/15/2003 04:44 PM |
| | Please respond to |
| | platform-debug-dev |
| | |
|---------+------------------------------------>
>-----------------------------------------------------------------------------------------------------------|
| |
| To: platform-debug-dev@xxxxxxxxxxx |
| cc: |
| Subject: Re: [platform-debug-dev] #initializeFrom( ) is not called when switching tabs |
| |
| |
>-----------------------------------------------------------------------------------------------------------|
Vadim,
This sounds like a bug. The only way initializeFrom() doesn't get called
appears to be if there's no working copy, which shouldn't be the case, so
yes, open a defect.
Thanks,
Joe
berestet@xxxxxxxxxx
Sent by: To:
platform-debug-dev-admin@ platform-debug-dev@xxxxxxxxxxx,
eclipse.org jdt-debug-dev@xxxxxxxxxxx
cc:
Subject: [platform-debug-dev]
01/15/2003 03:13 PM #initializeFrom( ) is not called when
Please respond to switching tabs
platform-debug-dev
I am using ECLIPSE 2.0.2 and came across the following problem:
My tab group contains two tabs: tabA and tabB. Each one implements
initializeFrom(ILaunchConfiguration) method.
There are some cases when user switches from tabA to tabB, but
initializeFrom(ILaunchConfiguration) method for tabB does not get called.
This seem to happen when tab group has just been constructed and user
switches to the tabB for the very first time. If user switches back to the
tabA and then again to the tabB, initializeFrom(ILaunchConfiguration)
method for tabB gets called just fine.
I wonder if this sounds like a bug. If so, can I open a defect?
Thanks,
Vadim.
Internet: berestet@xxxxxxxxxx
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-debug-dev