Skip to content

Commit 7553863

Browse files
authored
Merge branch 'master' into dnd-tests
2 parents f94c1fc + b4ce63d commit 7553863

File tree

238 files changed

+2097
-3524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+2097
-3524
lines changed

bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,8 @@ public void hookControllerLogic(MUIElement me) {
534534
@Override
535535
public void controlResized(ControlEvent e) {
536536
// Don't store the maximized size in the model
537-
// But set the maximized tag so that the user can access the current state
538537
if (shell.getMaximized()) {
539-
me.getTags().add(ShellMaximizedTag);
540-
} else {
541-
me.getTags().remove(ShellMaximizedTag);
538+
return;
542539
}
543540

544541
try {

bundles/org.eclipse.e4.ui.workbench/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-SymbolicName: org.eclipse.e4.ui.workbench;singleton:=true
4-
Bundle-Version: 1.18.0.qualifier
4+
Bundle-Version: 1.18.100.qualifier
55
Bundle-Name: %pluginName
66
Bundle-Vendor: %providerName
77
Bundle-Localization: plugin

bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/ModelServiceImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ public void bringToTop(MUIElement element) {
615615
}
616616

617617
MWindow window = getTopLevelWindowFor(element);
618+
if (window == null) {
619+
return;
620+
}
618621
if (window == element) {
619622
if (!element.isToBeRendered()) {
620623
element.setToBeRendered(true);

bundles/org.eclipse.ui.ide/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %Plugin.name
44
Bundle-SymbolicName: org.eclipse.ui.ide; singleton:=true
5-
Bundle-Version: 3.22.700.qualifier
5+
Bundle-Version: 3.22.800.qualifier
66
Bundle-Activator: org.eclipse.ui.internal.ide.IDEWorkbenchPlugin
77
Bundle-ActivationPolicy: lazy
88
Bundle-Vendor: %Plugin.providerName

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ConfigurationLogUpdateSection.java

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
import org.eclipse.equinox.p2.engine.IProfileRegistry;
2525
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
2626
import org.eclipse.equinox.p2.query.QueryUtil;
27-
import org.eclipse.osgi.service.resolver.BundleDescription;
28-
import org.eclipse.osgi.service.resolver.PlatformAdmin;
29-
import org.eclipse.osgi.service.resolver.State;
3027
import org.eclipse.osgi.util.NLS;
3128
import org.eclipse.ui.about.ISystemSummarySection;
3229
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
30+
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
31+
import org.osgi.framework.Bundle;
32+
import org.osgi.framework.BundleContext;
3333

3434
/**
3535
* Writes information about the update configurer into the system summary.
@@ -73,26 +73,24 @@ private void writeInstalledIUs(PrintWriter writer) {
7373
* Query OSGi and print out the list of known bundles.
7474
*/
7575
private void writeBundles(PrintWriter writer) {
76-
ServiceCaller.callOnce(getClass(), PlatformAdmin.class, (admin) -> {
77-
State state = admin.getState(false);
78-
// Since this code is only called in the Help -> About -> Configuration Details case we
79-
// won't worry too much about performance here and we will sort the query results
80-
// afterwards, but before printing them out.
81-
SortedSet<String> sorted = new TreeSet<>();
82-
for (BundleDescription bundle : state.getBundles()) {
83-
String name = bundle.getName();
84-
if (name == null)
85-
name = bundle.getLocation();
86-
String message = NLS.bind(IDEWorkbenchMessages.ConfigurationLogUpdateSection_bundle, new Object[] {name, bundle.getVersion(), bundle.getLocation()});
87-
sorted.add(message);
88-
}
89-
if (!sorted.isEmpty()) {
90-
writer.println(IDEWorkbenchMessages.ConfigurationLogUpdateSection_bundleHeader);
91-
writer.println();
92-
for (String string : sorted)
93-
writer.println(string);
94-
}
95-
});
76+
BundleContext bundleContext = IDEWorkbenchPlugin.getDefault().getBundle().getBundleContext();
77+
// Since this code is only called in the Help -> About -> Configuration Details case we
78+
// won't worry too much about performance here and we will sort the query results
79+
// afterwards, but before printing them out.
80+
SortedSet<String> sorted = new TreeSet<>();
81+
for (Bundle bundle : bundleContext.getBundles()) {
82+
String name = bundle.getSymbolicName();
83+
if (name == null)
84+
name = bundle.getLocation();
85+
String message = NLS.bind(IDEWorkbenchMessages.ConfigurationLogUpdateSection_bundle, new Object[] {name, bundle.getVersion(), bundle.getLocation()});
86+
sorted.add(message);
87+
}
88+
if (!sorted.isEmpty()) {
89+
writer.println(IDEWorkbenchMessages.ConfigurationLogUpdateSection_bundleHeader);
90+
writer.println();
91+
for (String string : sorted)
92+
writer.println(string);
93+
}
9694
}
9795

9896
@Override

bundles/org.eclipse.ui.workbench/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.ui.workbench; singleton:=true
5-
Bundle-Version: 3.136.0.qualifier
5+
Bundle-Version: 3.136.100.qualifier
66
Bundle-Activator: org.eclipse.ui.internal.WorkbenchPlugin
77
Bundle-ActivationPolicy: lazy
88
Bundle-Vendor: %providerName

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/part/EditorPart.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,12 @@ protected final void checkSite(IWorkbenchPartSite site) {
291291
Assert.isTrue(site instanceof IEditorSite, "The site for an editor must be an IEditorSite"); //$NON-NLS-1$
292292
}
293293

294+
@Override
295+
public void dispose() {
296+
if (compatibilityTitleListener != null) {
297+
removePropertyListener(compatibilityTitleListener);
298+
compatibilityTitleListener = null;
299+
}
300+
super.dispose();
301+
}
294302
}

bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/part/MultiPageEditorPart.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,21 @@ public abstract class MultiPageEditorPart extends EditorPart implements IPageCha
153153

154154
private ListenerList<IPageChangedListener> pageChangeListeners = new ListenerList<>(ListenerList.IDENTITY);
155155

156+
private org.eclipse.jface.util.IPropertyChangeListener propertyChangeListenerToUpdateContainer;
157+
156158
/**
157159
* Creates an empty multi-page editor with no pages and registers a
158160
* {@link PropertyChangeListener} to listen for changes to the editor's
159161
* preference..
160162
*/
161163
protected MultiPageEditorPart() {
162164
super();
163-
getAPIPreferenceStore().addPropertyChangeListener(event -> {
165+
propertyChangeListenerToUpdateContainer = event -> {
164166
if (isUpdateRequired(event)) {
165167
updateContainer();
166168
}
167-
});
169+
};
170+
getAPIPreferenceStore().addPropertyChangeListener(propertyChangeListenerToUpdateContainer);
168171
}
169172

170173
/**
@@ -526,6 +529,11 @@ protected IEditorSite createSite(IEditorPart editor) {
526529
*/
527530
@Override
528531
public void dispose() {
532+
IPreferenceStore store = getAPIPreferenceStore();
533+
if (propertyChangeListenerToUpdateContainer != null) {
534+
store.removePropertyChangeListener(propertyChangeListenerToUpdateContainer);
535+
propertyChangeListenerToUpdateContainer = null;
536+
}
529537
if (getSite() != null) {
530538
deactivateSite(true, false);
531539
}

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.eclipse.platform</groupId>
1616
<artifactId>eclipse.platform.ui</artifactId>
17-
<version>4.37.0-SNAPSHOT</version>
17+
<version>4.38.0-SNAPSHOT</version>
1818
</parent>
1919
<artifactId>eclipse.platform.ui.examples</artifactId>
2020
<packaging>pom</packaging>

features/org.eclipse.e4.rcp/feature.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<feature
33
id="org.eclipse.e4.rcp"
44
label="%featureName"
5-
version="4.37.0.qualifier"
5+
version="4.38.0.qualifier"
66
provider-name="%providerName"
77
license-feature="org.eclipse.license"
88
license-feature-version="0.0.0">

0 commit comments

Comments
 (0)