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 8054801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:13:48+00:00 2026-06-05T08:13:48+00:00

I have written an Eclipse View that displays a tree of elements. How can

  • 0

I have written an Eclipse View that displays a tree of elements.

How can I hook into the standard Eclipse “Rename – Refactoring” keyboard shortcut so that when I press Shift+Alt+R with an element of my tree selected I can handle renaming that element?

I think I might need to use one of the LTK extension points.

  • 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-06-05T08:13:49+00:00Added an answer on June 5, 2026 at 8:13 am

    I found the correct code:

    IActionBars actionBars = getViewSite().getActionBars();
    actionBars.setGlobalActionHandler(ActionFactory.RENAME.getId(), new Action()
    {
      @Override
      public void run()
      {
        ISelection viewSelection = viewer.getSelection();
        if (viewSelection instanceof IStructuredSelection)
        {
          IStructuredSelection selection = (IStructuredSelection)viewSelection;
          Object o = selection.getFirstElement();
    
          ....
        }
      }
    });
    

    http://wiki.eclipse.org/FAQ_How_do_I_hook_into_global_actions,_such_as_Copy_and_Delete%3F

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

Sidebar

Related Questions

I have written a custom launcher in Eclipse which I can access via the
I have written a program that is compiled and run in Netbeans and Eclipse
Hi Suppose I have written a litter program in Eclipse, how can I export
I have web application written in java using Eclipse. It has just one servlet
I have written a generic CSV file reader that I'm trying to use to
I have written a code that draws grids and a triangle inside one grid
I have written a Eclipse plugin project and successful export the .jar files. But
I have written an application that use a third party library. I have then
I have written an Android app (target 3.2) using Eclipse 3.7, I tried to
i have a batch(backup.bat)file.in that i have written a command to create a backup

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.