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: 3
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: 20
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:Proper way to create a Javascript Project and Reference it in another Web Project?
Next Topic:[SOLVED] How to make sure that a plug-in starts running on a headless Eclipse instance?
Goto Forum:

Current Time: Thu Oct 08 18:20:03 GMT 2015

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

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