Eclipse Tricks and Tips plugin Extension Point - eclipse

I need to add an entry to a menu section in the Tips and Tricks help dialog in eclipse. For that I am searching which Extension Point from Eclipse to use.
I am using eclipse 2019-06 and if I consult the documentation, I see no extension point for this help entry:
Eclipse 2019 Plugin documentation is here.

This isn't done using that extension point.
The about.ini file in the 'feature plug-in' for an installed feature can contain a tipsAndTricksHref property which gives the help topic href to use. For example the JDT about.ini contains:
tipsAndTricksHref=/org.eclipse.jdt.doc.user/tips/jdt_tips.html
So you must create a feature. You then create a 'feature plugin' - which is a plugin with the same id as the feature. The about.ini goes in the plugin. The feature.xml must list the 'feature plugin' and your other plugins. You must use a feature based build for the RCP build.

Related

Add ttcn3 syntax highlighting to eclipse

I don't work with ttcn3 full-time, what I need is just basic syntax highlighting and commenting on Ctrl+/ added to eclipse.
After some googling I discovered Eclipse Titan, but it seems to be a full-blown IDE for ttcn3 with compiler and stuff, and I need just a plugin to eclipse.
I would like to find something like "Set syntax: ttcn3" from SublimeText, is it possible in eclipse?
if you go to this link:
https://projects.eclipse.org/projects/tools.titan/downloads
you will find that you can download the Titan plugins for Eclipse (today they look like this):
Eclipse plug-ins 6.2.0
You may want to install them in your current Eclipse and find out if that is what you are after.
Gustavo.
After installing the plugin
1.change the nature of your ttcn project for "TITAN Nature" this way:
Project popup>Properties>Project Natures>Add...>TITAN Nature.
(if this is not enough:)
2.Select Window>Preferences>TITAN Preferences>On-the-fly checker>Enable parsing of TTCN-3, ASN.1 and runtime configuration files
(You can also set perspective TITAN Editing/Titan Executing/TITAN Log Viewer)

Adding an 'about' tab to an Eclipse plug-in

At the present stage, I am branding and deploying my plug-in. I would like to add an About section to the plug-in, and a How To Use section as well.
All the tutorials online on branding are for Eclipse RCP applications (or may be I have not researched well). Can someone please help with how to go about implementing this for a plug-in?
To contribute to the About dialog of Eclipse, you need to provide a plug-in that is referenced from your feature as the Brannding plug-in.
For example:
<feature
id="my.feature.id"
plugin="my.branding.plugin"
... >
...
</feature>
The branding plug-in must provide an about.ini file with a
aboutText = This is my plug-in\n\
Visit https://my-page.com for more info
featureImage = my-logo.png
This property file defines the text and image to show in the about dialog and its nested dialogs.
Finally, include the resources in the build.properties file in order for the build to include them in the resulting plug-in:
bin.includes = META-INF/,\
about.ini,\
my-logo.png
Note, that in order to see your contribution to the about dialog, you need to build and install the feature. When launching your plug-in from within the IDE, it will not show up.
The branding plug-in of Extras for Eclipse may serve as a template:
branding plug-in: https://github.com/rherrmann/eclipse-extras/tree/master/com.codeaffine.extras.branding
feature: https://github.com/rherrmann/eclipse-extras/tree/master/com.codeaffine.extras.ide.feature
See here for a brief tutorial: https://ekkescorner.wordpress.com/2010/06/13/brand-your-feature-and-be-part-of-about-eclipse/
A how to use section should be part of the Welcome Page. See here for a short tutorial: https://dzone.com/articles/short-tutorial-introwelcome

How to find the execution steps of an Eclipse plugin project

I am using Eclipse JUNO IDE in which I have imported an eclipse plugin project.
When I execute the project, a new copy of the eclipse window is opened and the plugin is displayed in the File Menu as "New Sample Project" in between the "New" option and "Open File" option. The plugin works normally.
From this project I wanted to know which file executes first and how the execution proceeds.
While this is the way to find the order of execution of a simple java program, is there a way to find the code execution order of a plugin project, which has many packages and each package has many java files?
I am new to eclipse plug-in development. Please help
Eclipse plugin project is different than normal Java project and also its execution.
Before jumping into execution steps, I think you better go through plugin project Manifest file details. It will give you overview of plugins that are contributed into your new eclipse instant and their implementation class in project.
Go through different tab in the manifest file. I will brief some of important things for you:
Overview: General info of you plugin. In general information section you will find Activator, which points your activator of plugin which will load your plugin.(You can say it as starting point as it controls plugin life cycle but not clearly starting point)
Dependencies: Plugins required and on which your projects are depended.
Extension: Here you will add Extension Points required for your plugin like view, editor, action,command. Here you can see overview of things which will be contributed through your plugin project.
Hope this helps.

Eclipse Plugin - XML Editor

I've followed this tutorial:
Eclipse Plugin
This tutorial explain why create a HTML Editor.
I need a Text editor,just for auto-highlight some words, anyway I thought this tuto should be a good one to start with.
The thing is that I created the Plugin project and the only thing that I changed it was the extension "pat" instead "html, htm", just that. After that I created a .pat file, but eclipse doesn't open it with my plugin, and my text editor is not in the editor's list.
Any suggestion??
Let me know if you need more information.
My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.
If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.
To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.

Eclipse - Target Definition Issue

Firstly may I say that I am probably doing something completely wrong.
I have an update site where I am able install plug-ins successfully using Eclipse Indigo using the Help -> Install New Software... feature.
However, I now want to add a dependency on the same update site by using a target definition.
So, I create a new Target Definition file and add a new Software Site, and reference the same site as I did above.
The problem being that I am unable to retrieve any plug-ins. It just gives me the error:
0 plug-ins available.
Missing requirement: Immutify Eclipse Utilities 1.1.1.201105200936 (org.immutify.eclipse.util.1.1.1.201105200936) requires 'bundle.org.eclipse.ui 3.4.0' but it could not be found
Just wondering why it works on the Install New Software option but not on the software site option of the Target Definition.
Any help would be greatly appreciated.
The option "Include required software" must not be checked. Here is an example of target definition that shows the steps to follow.
http://wiki.eclipse.org/EIG:Add_to_Target_Platform