changeset 6:d4f131a310ae

Fixed some resource strings to make LinkTab work
author Frank Benoit <benoit@tionex.de>
date Tue, 12 Feb 2008 02:25:22 +0100
parents 1de00968e454
children 874328b7af55
files dwtexamples/controlexample/ControlExample.d dwtexamples/controlexample/CoolBarTab.d dwtexamples/controlexample/LinkTab.d dwtexamples/controlexample/Tab.d dwtexamples/controlexample/controlexample.properties
diffstat 5 files changed, 16 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/dwtexamples/controlexample/ControlExample.d	Mon Feb 11 23:28:15 2008 +0100
+++ b/dwtexamples/controlexample/ControlExample.d	Tue Feb 12 02:25:22 2008 +0100
@@ -262,7 +262,7 @@
         } catch (NoSuchElementException e) {
             return key;
         }
-        if( res is null ){
+        if( res is null && !resourceBundle.hasString(key)){
             return "!" ~ key ~ "!"; //$NON-NLS-1$ //$NON-NLS-2$
         }
         return res;
--- a/dwtexamples/controlexample/CoolBarTab.d	Mon Feb 11 23:28:15 2008 +0100
+++ b/dwtexamples/controlexample/CoolBarTab.d	Tue Feb 12 02:25:22 2008 +0100
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * Copyright (c) 2000, 2007 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
--- a/dwtexamples/controlexample/LinkTab.d	Mon Feb 11 23:28:15 2008 +0100
+++ b/dwtexamples/controlexample/LinkTab.d	Tue Feb 12 02:25:22 2008 +0100
@@ -1,4 +1,4 @@
-/*******************************************************************************
+/*******************************************************************************
  * Copyright (c) 2000, 2007 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
--- a/dwtexamples/controlexample/Tab.d	Mon Feb 11 23:28:15 2008 +0100
+++ b/dwtexamples/controlexample/Tab.d	Tue Feb 12 02:25:22 2008 +0100
@@ -606,7 +606,7 @@
         backgroundImageButton = new Button(otherGroup, DWT.CHECK);
         backgroundImageButton.setText(ControlExample.getResourceString("BackgroundImage"));
         popupMenuButton = new Button(otherGroup, DWT.CHECK);
-        popupMenuButton.setText(ControlExample.getResourceString("PopupMenu"));
+        popupMenuButton.setText(ControlExample.getResourceString("Popup_Menu"));
 
         /* Add the listeners */
         enabledButton.addSelectionListener (new class() SelectionAdapter {
@@ -656,7 +656,7 @@
         backgroundModeImageButton = new Button(backgroundModeGroup, DWT.CHECK);
         backgroundModeImageButton.setText(ControlExample.getResourceString("BackgroundImage"));
         backgroundModeColorButton = new Button(backgroundModeGroup, DWT.CHECK);
-        backgroundModeColorButton.setText(ControlExample.getResourceString("BackgroundColor"));
+        backgroundModeColorButton.setText(ControlExample.getResourceString("Background_Color"));
 
         /* Add the listeners */
         backgroundModeCombo.addSelectionListener (new class() SelectionAdapter {
--- a/dwtexamples/controlexample/controlexample.properties	Mon Feb 11 23:28:15 2008 +0100
+++ b/dwtexamples/controlexample/controlexample.properties	Tue Feb 12 02:25:22 2008 +0100
@@ -41,7 +41,7 @@
 Listen				= Listen
 Clear				= Clear
 Set_Get				= Set/Get API
-Parameter_Info		= {0}   e.g. {1} 
+Parameter_Info		= {0}   e.g. {1}
 Info_int			= 4
 Info_intA			= 0,1,2
 Info_long			= 4
@@ -241,7 +241,15 @@
 CheckWithMnemonic	= &Check
 CascadeWithMnemonic	= C&ascade
 PopupMenuHere		= Popup Menu Here
-LinkText=Visit the <A HREF=\"www.eclipse.org\">Eclipse.org</A> project and the <A HREF=\"www.eclipse.org\\swt">SWT</A> homepage.
+LinkText=Visit the <A HREF=\"www.eclipse.org\">Eclipse.org</A> project and the <A HREF=\"www.eclipse.org/swt\">SWT</A> homepage.
 Tooltip				= Tooltip:  {0}
 Item1_Text			= "What is your favorite button?"
-Item2_Text			= "What is your favorite icon?"
\ No newline at end of file
+Item2_Text			= "What is your favorite icon?"
+Popup_Menu          = Popup Menu
+No_Icon             = No Icon
+Caret               = Caret
+Image               = Image
+Resizeable_Columns  = Resizeable Columns
+AutoHide            = autohide
+Show_In_Tray        = Show in Tray
+ToolTip_Title       = ToolTip Title