Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-04-21 13:16:51 -0400
committerUwe Stieber2014-04-21 13:16:51 -0400
commit79b5d65007b4be4998e140487a0d7b5756fb5568 (patch)
treeae55c7662e7da50ac973a99938de15d801506a9c
parent94d23125c09d4f3125c9a2b5623baf54771fbdae (diff)
downloadorg.eclipse.tcf-79b5d65007b4be4998e140487a0d7b5756fb5568.tar.gz
org.eclipse.tcf-79b5d65007b4be4998e140487a0d7b5756fb5568.tar.xz
org.eclipse.tcf-79b5d65007b4be4998e140487a0d7b5756fb5568.zip
Target Explorer: Fix labeling of "Browse Target" dialog
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties7
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/SimulatorTypeSelectionSection.java15
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java15
4 files changed, 34 insertions, 6 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
index b8a0bd6a2..b744f0b84 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.java
@@ -89,6 +89,9 @@ public class Messages extends NLS {
public static String NewTargetWizardPage_section_transportType;
public static String NewTargetWizardPage_section_attributes;
public static String NewTargetWizardPage_error_nameInUse;
+ public static String NewTargetWizardPage_PeerSelectionDialog_dialogTitle;
+ public static String NewTargetWizardPage_PeerSelectionDialog_title;
+ public static String NewTargetWizardPage_PeerSelectionDialog_message;
public static String RemotePeerDiscoveryRootNode_label;
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
index 19c615ab4..d15f53c26 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/nls/Messages.properties
@@ -48,6 +48,9 @@ NewTargetWizardPage_description=Specify a name and attributes of the target to c
NewTargetWizardPage_section_transportType=Specify the transport type and properties:
NewTargetWizardPage_section_attributes=Specify additional target attributes:
NewTargetWizardPage_error_nameInUse=This connection name is already used. Please choose a unique name.
+NewTargetWizardPage_PeerSelectionDialog_dialogTitle=Browse
+NewTargetWizardPage_PeerSelectionDialog_title=Select Target
+NewTargetWizardPage_PeerSelectionDialog_message=Select the discovered target to create a connection for.
RemotePeerDiscoveryRootNode_label=Neighborhood
@@ -100,8 +103,8 @@ DeleteHandlerDelegate_MsgDeleteMultiplePeers=Are you sure you want to delete the
DeleteHandlerDelegate_MsgDeleteOnePeer=Are you sure you want to delete connection ''{0}''?
PeerSelectionDialog_dialogTitle=Select
-PeerSelectionDialog_title=Select Peer
-PeerSelectionDialog_message=Select the discovered peer for the operation to perform.
+PeerSelectionDialog_title=Select Connection
+PeerSelectionDialog_message=Select the discovered connection for the operation to perform.
PeerNodeSelectionDialog_dialogTitle=Select
PeerNodeSelectionDialog_title=Select Connection
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/SimulatorTypeSelectionSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/SimulatorTypeSelectionSection.java
index cee7273fe..f3451f4f3 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/SimulatorTypeSelectionSection.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/sections/SimulatorTypeSelectionSection.java
@@ -157,9 +157,18 @@ public class SimulatorTypeSelectionSection extends AbstractSection implements ID
@Override
protected void onButtonControlSelected() {
PeerSelectionDialog dialog = new PeerSelectionDialog(null) {
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.tcf.ui.dialogs.AbstractArraySelectionDialog#configureTableViewer(org.eclipse.jface.viewers.TableViewer)
- */
+ @Override
+ protected String getDialogTitle() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_dialogTitle;
+ }
+ @Override
+ protected String getTitle() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_title;
+ }
+ @Override
+ protected String getDefaultMessage() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_message;
+ }
@Override
protected void configureTableViewer(TableViewer viewer) {
super.configureTableViewer(viewer);
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
index fcbc9d8a5..7c4ec784c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/wizards/pages/NewTargetWizardPage.java
@@ -261,7 +261,20 @@ public class NewTargetWizardPage extends AbstractValidatingWizardPage implements
}
@Override
protected void onButtonControlSelected() {
- PeerSelectionDialog dialog = new PeerSelectionDialog(null);
+ PeerSelectionDialog dialog = new PeerSelectionDialog(null) {
+ @Override
+ protected String getDialogTitle() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_dialogTitle;
+ }
+ @Override
+ protected String getTitle() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_title;
+ }
+ @Override
+ protected String getDefaultMessage() {
+ return Messages.NewTargetWizardPage_PeerSelectionDialog_message;
+ }
+ };
// Open the dialog
if (dialog.open() == Window.OK) {

Back to the top