Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-06-19 18:52:29 -0400
committerslewis2007-06-19 18:52:29 -0400
commit2750d19a82e2fd5f12a36f51b56e0359384bf841 (patch)
tree1934da84075e80b71cde563c62cc1181ddd18d55
parent5638d050be5422548ae4a3a21ed04ee8003b9d80 (diff)
downloadorg.eclipse.ecf-2750d19a82e2fd5f12a36f51b56e0359384bf841.tar.gz
org.eclipse.ecf-2750d19a82e2fd5f12a36f51b56e0359384bf841.tar.xz
org.eclipse.ecf-2750d19a82e2fd5f12a36f51b56e0359384bf841.zip
Added default view icon to "Add Show View Listener" action
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterContributionItem.java5
-rw-r--r--framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterEntryContributionItem.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterContributionItem.java b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterContributionItem.java
index f786b2bde..31bcaeee7 100644
--- a/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterContributionItem.java
+++ b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterContributionItem.java
@@ -21,6 +21,8 @@ import org.eclipse.ecf.presence.roster.IRoster;
import org.eclipse.ecf.presence.ui.roster.AbstractRosterContributionItem;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
public class ViewShareRosterContributionItem extends
AbstractRosterContributionItem {
@@ -60,6 +62,9 @@ public class ViewShareRosterContributionItem extends
};
action
.setText(Messages.ViewShareRosterContributionItem_VIEWSHARE_LISTENER_MENU_ADD_TEXT);
+ action.setImageDescriptor(PlatformUI.getWorkbench()
+ .getSharedImages().getImageDescriptor(
+ ISharedImages.IMG_DEF_VIEW));
return new IAction[] { action };
}
diff --git a/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterEntryContributionItem.java b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterEntryContributionItem.java
index e724c2acb..6ae7a06b7 100644
--- a/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterEntryContributionItem.java
+++ b/framework/bundles/org.eclipse.ecf.presence.collab.ui/src/org/eclipse/ecf/presence/collab/ui/view/ViewShareRosterEntryContributionItem.java
@@ -17,6 +17,8 @@ import org.eclipse.ecf.presence.roster.IRosterEntry;
import org.eclipse.ecf.presence.ui.roster.AbstractRosterEntryContributionItem;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IAction;
+import org.eclipse.ui.ISharedImages;
+import org.eclipse.ui.PlatformUI;
public class ViewShareRosterEntryContributionItem extends
AbstractRosterEntryContributionItem {
@@ -50,6 +52,9 @@ public class ViewShareRosterEntryContributionItem extends
};
action
.setText(Messages.ViewShareRosterEntryContributionItem_VIEWSHARE_MENU_TEXT);
+ action.setImageDescriptor(PlatformUI.getWorkbench()
+ .getSharedImages().getImageDescriptor(
+ ISharedImages.IMG_DEF_VIEW));
return new IAction[] { action };
}
}

Back to the top