Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,8 @@ void onPageTraversal(Event event) {
if (e.doit && !isDisposed()) {
showList(chevronRect);
}
} else {
index = visible [(current + offset + idx) % idx];
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/org.eclipse.swt.examples/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin.SWTStandaloneExampleSet.name
Bundle-SymbolicName: org.eclipse.swt.examples; singleton:=true
Bundle-Version: 3.109.100.qualifier
Bundle-Version: 3.109.200.qualifier
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ Set_Min_Visible = Minimize
Set_Max_Visible = Maximize
Set_Unselected_Close_Visible = Close on Unselected Tabs
Set_Unselected_Image_Visible = Image on Unselected Tabs
Set_MRU_Active = Activate MRU
Selection_Foreground_Color = Selection Foreground Color
Selection_Background_Color = Selection Background Color
Item_Foreground_Color = Item Foreground Color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CTabFolderTab extends Tab {

/* Other widgets added to the "Other" group */
Button singleTabButton, imageButton, showMinButton, showMaxButton,
topRightButton, unselectedCloseButton, unselectedImageButton;
topRightButton, unselectedCloseButton, unselectedImageButton, activateMRUButton;

ToolBar topRightControl;

Expand Down Expand Up @@ -233,6 +233,12 @@ void createOtherGroup () {
unselectedCloseButton.setText (ControlExample.getResourceString("Set_Unselected_Close_Visible"));
unselectedCloseButton.setSelection(true);
unselectedCloseButton.addSelectionListener (widgetSelectedAdapter(event -> setUnselectedCloseVisible()));

activateMRUButton = new Button (otherGroup, SWT.CHECK);
activateMRUButton.setText (ControlExample.getResourceString("Set_MRU_Active"));
activateMRUButton.setSelection(false);
activateMRUButton.addSelectionListener (widgetSelectedAdapter(event -> setMRUActive()));

}

/**
Expand Down Expand Up @@ -412,6 +418,7 @@ void setExampleWidgetState () {
setImages();
setMinimizeVisible();
setMaximizeVisible();
setMRUActive();
setUnselectedCloseVisible();
setUnselectedImageVisible();
setSelectionBackground ();
Expand Down Expand Up @@ -458,6 +465,13 @@ void setMaximizeVisible () {
tabFolder1.setMaximizeVisible(showMaxButton.getSelection ());
setExampleWidgetSize();
}
/**
* Activates/deactivates the MRU setting
*/
void setMRUActive () {
tabFolder1.setMRUVisible(activateMRUButton.getSelection ());
setExampleWidgetSize();
}
/**
* Sets the top right control to a toolbar
*/
Expand Down
Loading