Is there a 'diff' API in Eclipse? - eclipse

I want to get the difference between two files in my eclipse plugin program. Is there such a "diff" API I can use?

The Eclipse Compare editor provides an API that plugins can use - see the section Compare support in the Eclipse help.

Try Using org.eclipse.compare plug-in. Eclipse uses it to compare files inside eclipse.

Related

How to include Swift support in Eclipse

Eclipse is the IDE of my choice so I searched for a solution to write Swift-based apps in Eclipse.
I found the following project: swiftclipse.
It seems very useful but the problem is that I've no idea how to include it in my Eclipse installation.
That project does not contain any useful code. It is just a feature project with two plugins each of which only contains an Activator. It has also not had any activity since last June.

AEM error on real time

Is there a way to configure AEM into an IDE like IntelliJ,Eclipse...
So that the IDE shows the errors on my project before I compile it even if I put it outside the source folder like for example the components created.
If possible both the .java and .jsp
I'm not entirely sure what you mean by outside the source folder, but have you taken a look at adobe's documentation?
They have instructions for IntelliJ + AEM with Maven. It also instruct on jsp support as well. It's for 5.6.1 but it should be valid for 6.x as well.
https://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/howto-develop-aem-projects-with-intellij.html
Here's one for Eclipse
https://helpx.adobe.com/experience-manager/using/creating-aem-project-using-eclipse.html
They also have a more generic set of instruction
https://docs.adobe.com/docs/en/cq/5-6-1/developing/developmenttools/how-to-build-aem-projects-using-apache-maven.html#How-To%20Work%20with%20JSPs
Yes, you can maintain CRX data(AEM folders like /etc, /apps, /content, etc) in an IDE like eclipse. This will help you iron out all the compilation errors using features of IDE. Make use of this eclipse plugin called vaultclipse. You can install it from eclipse marketplace.
There is also another plugin called AEM plugin, details on how to use it here.

Need suggestions on which plugin to install from eclipse market?

I am developing a new plugin in eclipse. I need a plugin from internet (for eclipse, of course) which I can dissect and understand its implementation (by looking into plugin.xml etc.). It would help me create my own plugin.
I want your help in suggesting some plug-ins which I download and dissect, so that i can use that logic to make my own plugin?
I will now give an insight to my proposed plugin:::
My plugin would take in some input via a GUI interface from the user and then I should be able to convert all the user input into a text file and trigger a perl script. It sounds sloppy, but I am completely new to Eclipse and Plugins.
I just need some suggestions from you experts.
Thanks a lot!!!
If you download either the Eclipse Classic package or the Eclipse for RCP Developers package, they include source for Eclipse itself. You can use the Eclipse plugins themselves as examples.

How can my Eclipse RCP code list all installed features?

I am writing a plugin for Bioclipse, an Eclipse RCP application, and need some Java source code to list all installed features in a running Bioclipse instance. How can I programmatically list all installed features?
You can try looking at IBundleGroup, IBundleGroupProvider and Platform.getBundleGroupProviders. I believe this API is the source of the information you see in the about dialog.

Is there any way to manually fold code in Eclipse?

Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Eclipse.
I don't think Eclipse has built in manual folding, but I did use a previous version of the following plugin for it.
Per the comment: The plugin has been recompiled for Eclipse 3.5 and is available at the Apache Isis site. A direct download link is also available. It also appears to work for Eclipse 3.6.
The coffee bytes folding plug-in for eclipse is still alive. But the pages have moved.
An Overview and how to get it can be found here.
I've installed it in eclipse using the update page.
In Eclipse go to Help -> Install new Software
Enter: eclipse.realjenius.com/update-site
Select the plugin and follow on-screen instruction.
I'm still pretty new to eclipse development and had to install mylyn before installing the code folding plugin.
I'm new to Eclipse, but since the IDE lets you fold preprocessor directives, you can just do "#if 1 .... #endif" to effectively set up manual folding.
No, eclipse does not have any option to provide manual folding plugins.