aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Scholz2014-03-28 17:18:56 (EDT)
committerLars Vogel2014-03-28 17:33:22 (EDT)
commit1724325cc2035bcdfc4bf3e50f531cdf1e2f2e30 (patch)
treec432daedf7464b65486019ec5abe0bf5c35583ff
parent733d428ecea1c71a7e88ed809dc4007cd5cbead6 (diff)
downloadeclipse.platform.ui-1724325cc2035bcdfc4bf3e50f531cdf1e2f2e30.zip
eclipse.platform.ui-1724325cc2035bcdfc4bf3e50f531cdf1e2f2e30.tar.gz
eclipse.platform.ui-1724325cc2035bcdfc4bf3e50f531cdf1e2f2e30.tar.bz2
Bug 429729 - [Workbench] Prompt to save Unsaved Part has no titlerefs/changes/19/24119/4
Change-Id: Ic8831eb8f9c5001d3a748572b5039524ef30d7ea Signed-off-by: Simon Scholz <scholzsimon@arcor.de>
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/SWTRenderersMessages.java6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/messages.properties6
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java15
3 files changed, 22 insertions, 5 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/SWTRenderersMessages.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/SWTRenderersMessages.java
index e7c4a26..bcd22bf 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/SWTRenderersMessages.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/SWTRenderersMessages.java
@@ -1,12 +1,13 @@
/*******************************************************************************
- * Copyright (c) 2010, 2012 IBM Corporation and others.
+ * Copyright (c) 2010, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
+ * Simon Scholz <scholzsimon@arcor.de - Bug 429729
*******************************************************************************/
package org.eclipse.e4.ui.internal.workbench.renderers.swt;
@@ -18,6 +19,7 @@ import org.eclipse.osgi.util.NLS;
public class SWTRenderersMessages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.e4.ui.internal.workbench.renderers.swt.messages"; //$NON-NLS-1$
+ public static String choosePartsToSaveTitle;
public static String choosePartsToSave;
public static String menuClose;
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/messages.properties b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/messages.properties
index 7130278..c7112c6 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/messages.properties
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/internal/workbench/renderers/swt/messages.properties
@@ -1,15 +1,17 @@
###############################################################################
-# Copyright (c) 2010, 2012 IBM Corporation and others.
+# Copyright (c) 2010, 2014 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
-#
+#
# Contributors:
# IBM Corporation - initial API and implementation
+# Simon Scholz <scholzsimon@arcor.de - Bug 429729
###############################################################################
### SWT Renderers plugin messages
+choosePartsToSaveTitle=Save Parts
choosePartsToSave=Select the parts to save:
menuClose = &Close
menuCloseOthers = Close &Others
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
index 6116b09..24e2d6c 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/WBWRenderer.java
@@ -4,10 +4,11 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Lars Vogel <Lars.Vogel@gmail.com> - Bug 429728
+ * Simon Scholz <scholzsimon@arcor.de - Bug 429729
*******************************************************************************/
package org.eclipse.e4.ui.workbench.renderers.swt;
@@ -787,6 +788,13 @@ public class WBWRenderer extends SWTPartRenderer {
}
@Override
+ protected void configureShell(Shell newShell) {
+ super.configureShell(newShell);
+ newShell.setText(SWTRenderersMessages.choosePartsToSaveTitle);
+ }
+
+
+ @Override
protected Control createDialogArea(Composite parent) {
parent = (Composite) super.createDialogArea(parent);
@@ -829,6 +837,11 @@ public class WBWRenderer extends SWTPartRenderer {
return checkedElements;
}
+ @Override
+ protected boolean isResizable() {
+ return true;
+ }
+
}
@SuppressWarnings("restriction")