I've been working on adding help to eclipse RCP applications. I've understood how to add the required plugins and my custom help content associated with those.
Now, I want to access that same help content through a different browser (i.e. other than eclipse's inbuilt help system).
e.g. The link http://help.eclipse.org/kepler/index.jsp shows the kind of arrangement I need. It provides the same user interface for Eclipse Help Documentation (as in eclipse's inbuilt help system) even when accessed through a different web browser.
I'm new to eclipse and facing some problems in getting it done. I've tried looking into the following Eclipse Help APIs but I'm not sure on how to use these:
1) org.eclipse.help.ui
2) org.eclipse.help.webapp
Can someone please guide me to a proper approach to accomplish this task. I'm presently working on Eclipse Kepler Service Release 2.
Related
I am currently preparing for developing an IDEA plugin involving webview containing some information. Since I have developed a VSCode extension of similar functionalities and it uses many webviews, I plan to migrate those HTML to IDEA's plugin by JECF.
However, the functionalities require some interaction with the extension/plugin, as in VSCode I could click some elements of the webview and insert some texts into the editor by acquireVsCodeApi provided by VSCode itself. And I am not quite sure if such communication could be performed by using JCEF in the plugin of IDEA? (I am quite new to Jetbrain's plugin development and JAVA)
Great thanks for any suggestions.
Yes, this is possible. One way to do this is to separate your plugin into three separate modules:
A module containing the IDE-side plugin code.
A module that contains the JCEF browser code.
A module that acts as a message passing interface. This module will enable communication between the first two modules.
See the IntelliJ PDF Viewer plugin for a good example, in particular the kotlinjs-migrate branch. Another good place to start - and to keep an eye on while you figure out how the pdf viewer plugin works - is the IntelliJ documentation page about JCEF. The section about the JBCefClient might especially be of interest to you, though it is rather minimal.
I'm developing a view for an application I'm working on, and I'm using jface with RAP. I thought it wouldn't be difficult but I'm not really making any progresses. I have a sketch of what I need to do, but I can't even start the application. Google doesn't help that much :/
Any tip to help me get started?
I tried developing a minimal working example, but it simply doesn't work. Anytime I start the application, I got this error:
java.lang.IllegalStateException: No context available outside of the
request processing.
I'm pretty sure this is a noob error, but I can't fix this! Any idea on what I might be doing wrong?
The following should be a comment! But I have not enough reps.
There is too little information from you to reproduce the issue but I assume you are mixing up setup options provided by RAP. Read the Building Applications part in the Developer's Guide completely. An outstanding well worked out tutorial can be found here which might help you to understand the differences. Try to create your project with all three setup options (1 RAP with OSGi, 2 RAP with Workbench, 3 RWT Standalone).
Just guessing: In the FAQ is a quite similar error description which might help. No context available outside of the request service lifecycle.
I have a couple of questions regarding Eclipse and IntelliJ IDEA support for building a plugin that can...
show (and accept user input to) an interactive web application (with drag-and-drop diagram editing functionalities similar to Visio/OmniGrapffle/Inkscape) inside the main workspace (the biggest space to the right:)) of the IDE.
interaction with the web application (e.g. clicking on a box in the diagram) will trigger some action in the IDE (e.g. show a corresponding source file, or opening a dialog to create a new class).
In other words, I plan to let the web application manage most of the GUI aspects to overcome the limitations of Eclipse and IDEA in terms of animation, or flexibility in terms of showing nice graphics.
To this end, the web application needs to be able to communicate with the services/other plugins provided inside the IDE.
Browsing the web and StackOverflow revealed to me that Eclipse supports an OSGI architecture that might enable me to write an webservice that can be accessed from a web application. But I'm not sure where to start with. Also no relevant information concerning building my plugin for IntelliJ IDEA can be found.
It would be great if you can provide me some pointers. Thank you very much.
PS: I was considering building a normal plugin, (e.g. using the Eclipse's Graphiti project) but the user experience (button's shape, dialogs, properties windows, etd.) using only Eclipse platform support seems limited, as opposed to full HTML/CSS/JavaScript/etc/ supported by a web application. I might be wrong with my approach though so any help would greatly be appreciated.
I need some step by step tutorials/documents on developing Java web applications using Eclipse/apache.
appreciate directions/help.
I recommend you read a book instead:
This is probably the simplest way to get started. It really helped me with getting a grasp on how the directory structure and web.xml go together and make a web app. Eclipse is only a partner in your development, you really need to understand the underlying infrastructure no matter what framework you are using, and this book gives you a solid start.
There are some video tutorials available at http://eclipsetutorial.sourceforge.net/
The first tutorial begins with the absolute basics of setting up a workspace and getting started. It also shows the Welcome screen available under the help menu which has links to an overview, samples, and tutorials
As you've already installed Apache Tomcat. I assume you've not installed Java EE tools for Eclipse. If not, then First download Eclipse Java EE tools from Help > Software Updates > Available Software > Java EE developer Tools.
First way : is using Tomcat plugin with eclipse,for that you've to check this tutorial
Second way: If the Tomcat Plugin is not working with you then other alternative as follow Click on Click Window in menu> Preferences then click Server pane. Open Runtime Requirement pane. Add path for the tomcat directory. Click Ok. You're done with the settings.
Now you can create new projects from File >New >Projects. And start building servlets/jsp projects. Try learning from good books like "Head first: Servlets & JSP".
Hope this helps.
When you first start Eclipse there is a screen with tutorials right in the program. They are also accessible from the Help menu
Reminds me of that old joke:
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
Sounds like you have several things that you don't know: Eclipse, Tomcat, Java EE development, maybe JSPs, JSTL, WAR files, the list goes on.
My advice would be to strip things down to the bare bones and decompose the problem a bit.
Start by doing a simple servlet/JSP app talking to a database, without using Eclipse. See if you can compile on the command line, create the WAR file, package it properly, and deploy it on Tomcat.
If you can manage that, then work Eclipse into the mix. Don't worry about running Tomcat inside Eclipse at first. You can go back and forth until the IDE is comfortable.
But you're asking a lot when you say you'd like step by step instructions. You're tackling a very big problem.
DZone REFCARZ might be helpful, there's one for eclipse:
Getting Started with Eclipse
I have just started to try NetBeans. I created a new Java Desktop Application project, and it automatically added the JDesktop "appframework-1.0.3.jar" library. However, whenever I try to view its source, the command fails. I tried searching for it online, but I couldn't find it. So where can I download the source code for the "Swing Application Framework" (appframework.jar and swing-worker.jar)?
http://java.net/projects/appframework/sources/svn/show/trunk/AppFramework
the link and the source is too old and hard to be found,luckly i used 30 min find it in :
https://java.net/projects/appframework/sources/svn/show/trunk/www/downloads?rev=151
you can see the "source","jar","doc" of appframework-1.0.3.jar at the ending.
If you came to this question, because you couldn't find "Swing Application Framework" (appframework.jar) using Tools -> Plugins -> Available Plugins My Answer may help you.
First If you just need appframework.jar please get it from the below link.
If you already click the links in other answers you can Swing Application Framework has migrated from java.net and hard to find where it is migrated
https://mvnrepository.com/artifact/net.java.dev.appframework/appframework/1.03
If you just need Netbeans for Swing Application developments, I suggest you use Netbeans 8.0.2 version. As I experienced Latest version does not have the exact IDE which uses in Video Tutorials, Other versions may not properly work with Swing. As per my experience below version will serve you right when it comes to Java Swing Application developments
https://netbeans.org/downloads/old/8.0.2/