Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am working on an eclipse plugin that implements a new editor. I would like to implement "Mark Occurences" wherein when the cursor is on one variable, all its occurances in the open editor are highlighted. Is there a way to implement this?
Thanks!
You need to implement your own Annotations and display them using your SourceViewer.
Maybe start reading about this here: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_annotations.htm
I don't know if this is what wou want to implement, but there is already an Eclipse plugin that highlights all occurrences for a given text (not only at editor view but in the currently focused view (search results, console, Navigator, outline, etc.), and does incremental text search too. That includes, but is not limited to, variables.
I'm talking about Eclipse Glance.
I know it's been long but if you still want answers, you can refer this.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am developing a development tool for a new language. I can't say the details of the language because the organization applied for patent. I am new to eclipse and plugin development. how can I create a user interface which is similar to cdt or jdt. The first module I have to complete is UI development. Please help me to find some good source which give the jdt ui code.
now i need to change file -> new . when click on new it should give the option to create any type of file i.e. user defined file also can create
If you're new to plugin development, I'd strongly recommend taking a look at Xtext:
http://www.eclipse.org/Xtext/
It is exactly what you are searching for: you give it the BNF of your language, and it gives you an Eclipse build with an editor, syntax highlight, content assist, validation & quick fixes, outlines, etc. (Of course, this is a bit simplified description but that's the idea behind the project.)
What you are asking for is very complex and quite a big task. I think you should start by creating a custom editor with syntax highlighting for your new language. This question may help you get started.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there a way to show/filter the open tabs by the currently selected working set ?
I mean, when I select a working set the editor view only show the related files.
I've searched around in google, stackoverflow and eclipse market, but found nothing.
No you can't. I believe the reason is that if you try to open another file that is not in the working set (e.g. You want to open the declaration of a class in the source code), then you get into a contradiction. You've said that you only want tabs from the working set, but you're also asking for a tab that's not in the working set.
I suppose it's possible to write a plugin that on request will close any editor that's open on a file not in the working set, but that's about the best you could do.
You can try to use Mylyn task focused interface.
It does not exactly what you are looking for, but it is the closest tool that I can think of.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want do provide the user with a menu in Powershell where he can select entities with the arrow keys just like in GRUB or just the very basic idea of curses to replace the (Y)es or (N)o command line inputs. (Or for folder selection or whatever)
Is there already a framework or something that can help me as a starting point?
I already checked the Out-GridView, but this leaves Powershell to another window.
You need to use the System.Management.Automation.Host.ChoiceDescription .NET Framework class, which is designed for console menus.
For a very good example of use, see this Technet Blog article.
EDIT: I missed the fact that you wanted an arrow keys/enter key driven CLI menu.
I found a blog post from Jakob Bindslet that seems to be just what you wanted, although I confess I can't try it just yet, but I can't wait to!
EDIT: Another excellent option from Micahel Albert can be found on his blog; I found this option to be superior in that it does not clear the console window on arrow navigation.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
i need a complete tutorial about Eclipse plugin.
My plugin has not a graphical interface, but i need to use his function insiede another plugin or java app. I use eclipse ONLY to load this plugin, but must work in eclipse.
It should be easy, but i don't know how to do this.
I often found Lars Vogel's tutorials really useful and simple. This tutorial may be a good start point but be sure to check out the complete list too.
Very well designed wizards are available in eclipse itself. You just say new->plug-in project, and then after going through the wizard steps you can choose from templates like "plugin with popup menu, or "hello world" and so on. So the answer is simply use wizard.
Both of the older answers are good. Eclipse now has a "cheat sheet" that helps with plugin development. In Eclipse, click Help -> Search, and search for “Creating an Eclipse Plug-in". Among the results here is a “Creating an Eclipse Plug-in" cheat sheet.
Clicking this starts a cheat sheet (wizard) in the UI. I found it very easy to use. The little question marks on the right side of the cheat sheet give additional helpful information.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
If it exists, where can I find an Eclipse Cheat Sheet Repository?
I mean, Eclipse has this "Cheat Sheet" feature (Help -> Cheat Sheets), but although being an easy and powerful feature I haven't seen people using it, for example for Tutorials.
As mark mentionned in his answer, if you have installed plugins, chances are they come with their cheat sheet.
As mentionned in this IBM article Building cheat sheets in Eclipse V3.2, you can:
make a Help search for the term "plug-in": it will return cheat sheets -- along with other content -- that match your query.
But refining your search by adding "cheat sheet" to the query might narrow the results too much and exclude useful content.
explicitly show the cheat sheet results if you display the search results in categories, using the category button.
Take a look to the Dzone's one.
Good Luck!
The closer you can get is what VonC answered answered. After researching over the internet I couldn't find a central place where you can download cheat-sheets and use it as tutorials.
Maybe a market niche for those tech-entrepreneurs. :D