Skip to content

Commit e6641d7

Browse files
author
soheil_h_y
committed
1. Minimal SelectionEvent firing.
1 parent b238d99 commit e6641d7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/TabFolder.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ public int getSelectionIndex () {
734734
//return handle.selectedIndex;
735735
}
736736

737+
738+
737739
/*
738740
int imageIndex (Image image) {
739741
if (image == null) return OS.I_IMAGENONE;
@@ -753,6 +755,9 @@ int imageIndex (Image image) {
753755
}
754756
*/
755757

758+
void hookSelection() {
759+
}
760+
756761
/**
757762
* Searches the receiver's list starting at the first item
758763
* (index 0) until an item is found that is equal to the
@@ -1342,4 +1347,5 @@ LRESULT wmNotifyChild (int wParam, int lParam) {
13421347
return super.wmNotifyChild (wParam, lParam);
13431348
}
13441349
*/
1350+
13451351
}

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/TabItem.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ protected void checkSubclass () {
123123
if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);
124124
}
125125

126-
private void configure(final int index) {
127-
handle.onclick = new RunnableCompatibility() {
126+
private void configure(final int index) {
127+
textEl.onclick = new RunnableCompatibility() {
128128
public void run() {
129+
System.out.println("hoy hoy ");
129130
parent.setSelection(index, true);
130131
}
131132
};
@@ -335,7 +336,7 @@ public void setText (String string) {
335336
// if (index == -1) return;
336337
// super.setText (string);
337338
this.text = string;
338-
339+
configure(index);
339340
/*
340341
/*
341342
* Bug in Windows. In version 6.00 of COMCTL32.DLL, tab

0 commit comments

Comments
 (0)