Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-02-28 04:23:27 -0500
committerUwe Stieber2012-02-28 04:23:27 -0500
commitf7516341dac4f8d0dbbef730c9d633a4287ce1b3 (patch)
tree0386fb91879f9c8ad57c6ba8c22d723692d457f6
parent42747f6e1465faf79c0814a54b123db1501448c2 (diff)
downloadorg.eclipse.tcf-f7516341dac4f8d0dbbef730c9d633a4287ce1b3.tar.gz
org.eclipse.tcf-f7516341dac4f8d0dbbef730c9d633a4287ce1b3.tar.xz
org.eclipse.tcf-f7516341dac4f8d0dbbef730c9d633a4287ce1b3.zip
Target Explorer: Rename "Home" category to "My Targets"
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.properties2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml6
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/schema/categories.exsd8
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/MyTargets.java (renamed from target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/Home.java)4
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/expressions/PropertyTester.java4
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/interfaces/IUIConstants.java4
7 files changed, 15 insertions, 15 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java
index e70da1798..be9182a33 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/navigator/ContentProviderDelegate.java
@@ -91,7 +91,7 @@ public class ContentProviderDelegate implements ICommonContentProvider {
}
}
}
- else if (IUIConstants.ID_CAT_HOME.equals(catID)) {
+ else if (IUIConstants.ID_CAT_MY_TARGETS.equals(catID)) {
for (IPeerModel peer : peers) {
String value = peer.getPeer().getAttributes().get("static.transient"); //$NON-NLS-1$
boolean isStatic = value != null && Boolean.parseBoolean(value.trim());
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.properties b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.properties
index b667bb6ee..7dfbc4e97 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.properties
@@ -37,7 +37,7 @@ navigatorContent.name = Categories
# ***** Categories *****
category.favorites.name=Favorites
-category.home.name=Home
+category.mytargets.name=My Targets
category.neighborhood.name=Neighborhood
# ***** Command and menu contributions *****
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
index a47a2f026..2bd21f29d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
@@ -150,10 +150,10 @@
</category>
<category
- class="org.eclipse.tcf.te.ui.views.categories.Home"
+ class="org.eclipse.tcf.te.ui.views.categories.MyTargets"
icon="icons/obj16/home_nav.gif"
- id="org.eclipse.tcf.te.ui.views.category.home"
- label="%category.home.name">
+ id="org.eclipse.tcf.te.ui.views.category.mytargets"
+ label="%category.mytargets.name">
</category>
<category
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/schema/categories.exsd b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/schema/categories.exsd
index 664c372ff..646337a22 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/schema/categories.exsd
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/schema/categories.exsd
@@ -173,11 +173,11 @@ The categroy implementation class must be specified either by the class attribut
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.tcf.te.ui.views.categories&quot;&gt;
&lt;category
- id=&quot;org.eclipse.tcf.te.ui.views.category.home&quot;
- class=&quot;org.eclipse.tcf.te.ui.views.categories.Home&quot;
- label=&quot;Home&quot;&gt;
+ id=&quot;org.eclipse.tcf.te.ui.views.category.mytargets&quot;
+ class=&quot;org.eclipse.tcf.te.ui.views.categories.MyTargets&quot;
+ label=&quot;My Targets&quot;&gt;
&lt;description&gt;
- The home category.
+ The &quot;My Targets&quot; category.
&lt;/description&gt;
&lt;/category&gt;
&lt;/extension&gt;
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/Home.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/MyTargets.java
index 65bd24e21..deb701a44 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/Home.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/categories/MyTargets.java
@@ -10,8 +10,8 @@
package org.eclipse.tcf.te.ui.views.categories;
/**
- * Favorites category implementation.
+ * "My Targets" category implementation.
*/
-public class Home extends AbstractCategory {
+public class MyTargets extends AbstractCategory {
}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/expressions/PropertyTester.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/expressions/PropertyTester.java
index 46e81ddb5..3ffd81a65 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/expressions/PropertyTester.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/expressions/PropertyTester.java
@@ -94,9 +94,9 @@ public class PropertyTester extends org.eclipse.core.expressions.PropertyTester
return id.equals(expectedValue);
}
- if ("isHome".equals(property) && receiver instanceof ICategory) { //$NON-NLS-1$
+ if ("isMyTargets".equals(property) && receiver instanceof ICategory) { //$NON-NLS-1$
String id = ((ICategory)receiver).getId();
- return expectedValue.equals(Boolean.valueOf(id.equals(IUIConstants.ID_CAT_HOME)));
+ return expectedValue.equals(Boolean.valueOf(id.equals(IUIConstants.ID_CAT_MY_TARGETS)));
}
if ("isFavorites".equals(property) && receiver instanceof ICategory) { //$NON-NLS-1$
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/interfaces/IUIConstants.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/interfaces/IUIConstants.java
index 9916c4de8..dda11bdf0 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/interfaces/IUIConstants.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/interfaces/IUIConstants.java
@@ -49,9 +49,9 @@ public interface IUIConstants {
public static final String ID_CAT_FAVORITES = "org.eclipse.tcf.te.ui.views.category.favorites"; //$NON-NLS-1$
/**
- * Category: Home
+ * Category: My Targets
*/
- public static final String ID_CAT_HOME = "org.eclipse.tcf.te.ui.views.category.home"; //$NON-NLS-1$
+ public static final String ID_CAT_MY_TARGETS = "org.eclipse.tcf.te.ui.views.category.mytargets"; //$NON-NLS-1$
/**
* Category: Neighborhood

Back to the top