DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Frameworks
  4. Eclipse Extension Point Information Search and Java Source Search

Eclipse Extension Point Information Search and Java Source Search

Jim Liu user avatar by
Jim Liu
·
Apr. 21, 11 · Interview
Like (0)
Save
Tweet
Share
7.73K Views

Join the DZone community and get the full member experience.

Join For Free

Eclipse Resource Search

Summary

You may need an example since you encounter some problems with writing the code of eclipse. It's easier for you to follow the example. The source code of eclipse itself is one of the best example, The problem is how to find these examples quickly.

By Jim Liu
Copyright © 2011 Jim Liu.
January 28, 2011

Introduction

Quick Search the information of Plug-in.

Bundle Search
ExtensionPoint Search
Extension Attribute Search
Source Code Search
Search class by class name

Bundle Search

find Bundles with ExtensionPoint name,subPath,attribute name,attribute value. see example below.
search Eclipse Bundles which implements ExtensionPoint "org.eclipse.ui.viewActions" and with sub path "/viewContribution/action"

search Eclipse Bundles which implements ExtensionPoint "org.eclipse.ui.menus" and with sub path "/menuContribution/command@commandId"

try

ExtensionPoint Search

The names of ExtensionPoint and Bundle are related,for example org.eclipse.ui.Actions is defined in org.eclipse.ui of bundle. but not all of the extension point have this kind of matchup,such as org.eclipse.core.runtime.adapters is defined in org.eclipse.equinox.registry of Bundle. Search the plugin where the Extensionpoint defined
Input org.eclipse.core.runtime.contentTypes in the search box

try

Extension Attribute Search

org.eclipse.ui.bindings used to define the keyboard bind

<extension
         point="org.eclipse.ui.bindings">
      <key
            sequence="M2+M3+D E"
            commandId="org.eclipse.pde.ui.runtimeWorkbenchShortcut.debug"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </key>
</extension>

If you want to know which keys were binded,you can input the keyword of searching like org.eclipse.ui.bindings,/key,sequence,as following picture:

For some attributes,you may not know what keywords you suppose to input,such as the path value of org.eclipse.ui.popupMenus /objectContribution/menu.
You can also search what other people typed in the search box,input the searching keywords, and click the search button,you can get the result as following picture. You will get there are additions in other plugins,so it’s okay if you do so.

Click the value to enter the page of Bundle list,fill out all of the value of path which equals additions in these bundle pages.You can refer to the content of plugin.xml.

try

Source Code Search

If you find a class of Java without source code while you developing code,for example:org.eclipse.swt.widgets.Button, you know the qualified name of this class, but your development environment have no source code,you could input org.eclipse.swt.widgets.Button, in the search result,click the link,you will view the source code.

try

Search class by class name

Many java developers maybe have used Eclipse Package Explorer.

If you want to implement your resource view just like package view , you may reference the source code of Eclipse,but you probably don't know the qualified class name which implements Package Explorer, just input Package Explorer,click search button and you will find the class name "PackageExplorerPart" soon from the result. this is the class what you need.click the link,you can view the source code,see image below.

try

What's coming up?

We think the site is useful for eclipse and java programmer,and we will add more opensource eclipse plugin projects and search functions.

Community

If you like what you saw and have feedback or suggestions, let us know via Twitter (@goneeded)
Eclipse Java (programming language)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How To Best Use Java Records as DTOs in Spring Boot 3
  • When Should We Move to Microservices?
  • 4 Best dApp Frameworks for First-Time Ethereum Developers
  • Java REST API Frameworks

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: