Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Create Menu for Outline View and Select Word in the File(Create a menu for outline view to select words in the file (given the line and initial/final column).)
Create Menu for Outline View and Select Word in the File [message #1112407] Thu, 19 September 2013 16:48 Go to next message
Guilherme MoraesFriend
Messages: 4
Registered: September 2013
Junior Member

I created an Outline View using the class TreeViewer and I have 2 tasks to solve:

1. I need to include a menu that is activated (appears) with the click of the right mouse button. Equal to the Java Outline View (attached image).

2. When I click on a menuItem, this should select a word in the file.
The data/parameter that I have: line of file, initial column and final column of the line.

Anyone Can help me with one of these problems?

Re: Create Menu for Outline View and Select Word in the File [message #1140092 is a reply to message #1112407] Wed, 16 October 2013 06:03 Go to previous message
Chandrayya Kumarswamimath is currently offline Chandrayya KumarswamimathFriend
Messages: 26
Registered: August 2010
Location: Bangalore
Junior Member
1. Register context menu for your view. See org.eclipse.ui.menus and org.eclipse.ui.popupMenus extension.
2.Open the File in TextEditor and use IBlockTextSelection
Previous Topic:switch workspace changes JavaVM version
Next Topic:Is there plan to remove warnings in Eclipse source code?
Goto Forum:

Current Time: Thu Apr 26 23:14:57 GMT 2018

Powered by FUDForum. Page generated in 0.01860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software