How to add wizard shortcut in a view? - eclipse

I'd like to put wizard shortcuts in my view for my product as seen in screenshot below. How can I do this?

Project Explorer, Package Explorer and the old Resource navigator all use org.eclipse.ui.internal.views.helpers.EmptyWorkspaceHelper to display this.
Since that is an internal class it is not part of the official API so should not be used directly, but you could study the source code to see what it does.

Related

difference between MultiSourceEditor and MultiPageEditorPart

I found the source code for the Plugin Manifest Editor, from Eclipse, and noticed that it uses another class as model. The MultiSourceEditor.
In my editor I´m using MultiPageEditorPart. And I need to open 2 source files here with it.
Basically, what are the differences between them? Maybe I should switch to this one?
Thanks a lot.
org.eclipse.pde.internal.ui.editor.MultiSourceEditor is an internal editor used by the Plugin Development Environment. It extends FormEditor which itself is based on MultiPageEditorPart. The editor is just a specialized multi-page editor for PDE.
You must not use any internal classes, they are subject to change without notice - Eclipse API Rules of Engagement. You can, of course, look at the source code to see what it does.

How to add Jasmine autocomplete to WebStorm 7.0

I search around the net but did't find a concrete answer. Please help - How to add Jasmine autocomplete to WebStorm?
Here's the step-by-step process for adding library definitions, which are provided courtesy of borisyankov/DefinitelyTyped at GitHub.
In WebStorm, open the Settings dialog (File > Settings).
Under the Project Settings category, navigate to JavaScript > Libraries.
Click the Download button on the right side. This opens the Download Library dialog.
Select "TypeScript community stubs" from the combo box.
Find the library you're looking for, select it and click Download and Install.
To restrict usage of a library definition to specific files/folders, use the Manage Scopes dialog. In your case, you might consider it appropriate to only show Jasmine autocomplete in your test spec folder.
NOTE: Even though the dialog is named Download Library, this process is only for downloading the definition of the library (method signatures, types, etc). You still need to download the actual library yourself to use it.
You have to download jasmine.js and configure it as a library (Settings/javaScript/Libraries, Add...)

Eclipse How To Import External Library's Documentation

When we import the external library to eclipse Java project, we can use the auto-correction feature of eclipse for the imported methods from new libraries but we can't see what the methods specifically do. We have to import library's documentation.
Question1: How can I import documentation into eclipse project?
Question2: What does Java Documentation look like?
Question3: Which file format does Java documentation use?
Right click on your project->properties->java build path
select the libraries (its generally .jar file)
click on the dropdown of the libraries to expand the settings-> select source attachment none and click on edit
select the source to the doc ( java documents generally represented by JavaDoc)
click okay.
Question1: How can I import documentation into eclipse project?
In the project explorer, right-click on the library and select Properties. In the resulting dialog, choose "Javadoc Location" and complete the information.
Question2: What is Java Documentation looks like?
A set of directories with HTML files for each class. There is typically an index.hml at the root, plus often a package-list file too. Eclipse searches for these when you "validate" the location.
Question3: Which file format java documentation using?
Eclipse accepts a URL (to a file or a web page), a ZIP or a JAR.
In your package explorer (and most likely on other places as well) you can see your jar file (the external library). Right click on that and choose 'properties'. There you've got the options to attach the sources and the javadoc. After you've done that you can view their javadoc as you view your own (i.e. hover, 'javadoc-view', F3 ...)
Formatted text
Javadoc http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html
as far as i know for your Question1: How can i import documentation into eclipse project?
suppose you are using AXIS.jar and u want to get its doc properties then :
In the Package Explorer view expand your project and its library folder for the Axis library.
Right-click the Axis jar and select Properties.
In the Properties dialog, select Javadoc Location in the tree on the left.
With the Javadoc URL option selected, click Browse.
Navigate to the appropriate folder (see table that follows) and click OK twice to exit the Properties dialog.
Question2: What is Java Documentation looks like? and Question3:Which file format java documentation using?
HTML,zip or jar i guess :))
and
COvayurt, you cannot see what methods do specifically because you have added libraries for those methods not the java docoumentation for those libraries, so in order to add java doc for libraries simply provide the path of your docs location(if you have got docs for those libraries).
right click on your project then under properties set the javadoc path.
java documentation are html files created from the standard classes.you can create java doc for your own project too. see this link
and if you want to see standard java api documentation here-it-is

Can I add JavaDoc to a package easily with Eclipse?

I use javadoc to document my classes and methods. I would like to add some overview information to my packages, too. I like how Eclipse creates a stub of a matching Doc Comment for each class or method once I type /**<Enter>. Does Eclipse have an easy way to generate a package.html file, too?
Update 4 years later (Oct. 2013)
javabeangrinder's answer (upvoted) mentions the following trick:
To create a package-info.java file in an existing package:
Right click on the package where you want a package-info.java.
Select new->package.
Check the Create package.info.java check box.
Click on Finish
Original answer (May 2009)
There is no template or wizard to easily create a package.html file.
As mmyers said in his comment, since Java1.5, the correct file to create would be package-info.java.
That file can be used not only for javadocs, but also for package-level annotations (as illustrated here).
There is an opened Bug (#86168) for demanding a wizard for the creation of package-info.java (since the class wizard does not allow the package-info name).
The reflections on that topic are on since... 2005! The problem is that any solution should
be implemented in a way that it also helps with 1.4 code.
The current workaround is to create a package-info.java as a text file.
From that point forward, package-info.java behaves as a normal Java class, and Eclipse places a package-info.class file in the output folder.
The Javadocs are correctly built using package-info.java, and not the package.html file.
(source: developpez.com)
Note (in response to Strawberry's comment):
bug 77451 (2004!, for package.html)
bug 163633 and bug 163926 (2006, for package-info.java)
both wish a preview of the package overview in package-info.java in the Javadoc
view.
So far, no patch has been proposed/implemented.
There is simply not enough demands for that feature to be added.
In eclipse
Since package-info.java isn't a valid identifier for a class it cannot be created as a class in Eclipse.
I found that when you create a new package there is a check box to check if you want a package-info.java.
To create a package-info.java file in an existing package:
Right click on the package where you want a package-info.java.
Select new->package.
Check the Create package.info.java check box.
Click on Finish
The JAutodoc plugin does a great job of this, as well as all your other documentation needs. Install and configure the plugin and right click the package and click JAutodoc > Add Package Javadoc
There are configurations and templates available for the .java or .html package documentation.
This plugin also does a great job of standardizing all your Javadoc needs, with a great deal of customization.
http://jautodoc.sourceforge.net/
There's a plugin that seems to create package.html files. I haven't used it but someone landing here might find it useful.
http://sourceforge.net/projects/package-javadoc/

Easy way to add a context action to Eclipse

I'm trying to add a very simple action to the context menu of Eclipse: clicking with right button over a folder object, this action should call an external tool (configured in the "External Tools") using the path of the folder as the only parameter.
I've found a tutorial on how to add a context menu, but it's more complex than what I need -- I don't really want to create a plugin, I don't even want to create classes to do what I want. My only purpose is to call an external tool.
How can I do it?
If you want to extend Eclipse with functionality such as editing context menu's, the only way to go is by writing a plug-in. However, this can be very light-weight and targeted to your needs, so the tutorial you found might be a good way to do it.
Check out StartExplorer. It's very handy. It's the equivalent of the IntelliJ "Neighborhood" plugin.
It comes with the basics of explore, command shell, open, and copy path for Windows, Mac and Linux. It also supports custom commands. And can be installed through a normal Eclipse repository.