Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6742135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:48:27+00:00 2026-05-26T11:48:27+00:00

In a plugin I have defined a command in the plugin.xml file. I would

  • 0

In a plugin I have defined a command in the plugin.xml file. I would like to add the Eclipse default image/icon for the “Open Perspective” button in the toolbar to this command.

In eclipse I have tried to activate the Plugin-in Spy (Shift+Alt+F1) on the icon which gives me the following info:

The contributing plug-in:
org.eclipse.pde.ui (3.6.1.v20110210_r362)

but I cannot find any info on the image used for that specify button in that plugin. I see that other images are specified using:

$nl$/icons/obj16/plugin_javasearch.gif

How to do I:

1) Find the icon used for the “Open Perspective” button?

2) Specify that I want to use that icon for my own command in my own plugin.xml file?

Below is my current definition of my command:

<menuContribution
      allPopups="false"
      locationURI="base.application.menuContribution1">
   <toolbar
         id="base.application.perspective">
      <command
            commandId="openPerspective"
            icon=" IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE"
            style="push">
      </command>
   </toolbar>
</menuContribution>  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:48:27+00:00Added an answer on May 26, 2026 at 11:48 am

    To find the icon you might have to use the brute force approach. Use File>Import...>Plug-ins and Fragments and import some plugins. I wouldn’t have thought Open Perspective was in pde (maybe try org.eclipse.ui or org.eclipse.ui.ide) but you can try PDE as well.

    As for using it, you can use the platform:/plugin protocol to reference an icon in someone else’s plugin. But those filenames are considered “implementation details”. While they probably won’t change, the plugins have no obligation to keep them the same from release to release.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined the following profile in pom.xml: <profiles> <profile> <id>dev</id> <build> <plugins> <plugin>
I would like to add a gap between two buttons on an Eclipse toolbar.
I recently installed the Eclipse Metrics Plugin and have exported the data for one
I am developing an Eclipse plugin and have tests for it. Some are regular
I have findbugs plugin for eclipse which when run on my project will show
I have a property defined like this: <properties> <main.basedir>${project.parent.basedir}</main.basedir> </properties> Since I use Windows
Is it possible to have a plugin defined in the parent POM which is
I have a plugin which defines a callback setter like this: extern C __declspec(dllexport)
I have defined a plugin on the libraries path, using the correct directory structure,
The jQuery validation plugin breaks for elements that have a HTML5 type defined. $(document).ready(function(){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.