Why does Eclipse load all plugins in a workspace? - eclipse-plugin

I'm using Eclipse 3.6 for developing Eclipse plug-in. In the same workspace, I have 2 Plug-in projects: projA and projB. No mater which project was run, both two projects will be loaded in the new Eclipse instance. If I only want to load projA, I have to close projB, why?
I run the project like this: right click the project and "Run as--- Eclipse Application".

Have you defined the target platfom?
You can also edit your Run Configuration and choose the plugins to launch with.

The way you debug your project will start a new instance of Eclipse with all existing plugins installed(in your case,both project A and B are installed).This is typically called self-hosting in PDE.
If project A has no dependent package,just close other projects.

Related

Netbeans 11 how to add a library to a project when "Libraries" node is missing?

I am trying to run a simple java fx example with Maven on Netbeans 11 with openjdk 11. I followed the OpenJfx tutorial up to the creation of JavaFx as a global library.
But then when I want to add this global library to my project, the "libraries" node is missing in the project properties menu ?
How can I have this Libraries node present in the menu ? Or is there another way to add a global library to a project ?
Any help appreciated,
Indeed I was following the part of OpenJfx tutorial that creates an Ant project, whereas I was creating a Maven project.
If instead I use an Ant project, then the "libraries" node appears.
But the interesting part for Maven is further down. And there they write to create a Maven project from archetype.
Eventually it is working !

In which eclipse project Tasks View code present

I am not able to find eclipse project which contains source code for Tasks view.
I search many eclipse project from below URL
https://projects.eclipse.org/
But not able to find project which contains Tasks View source code.
The tasks view org.eclipse.ui.internal.views.markers.TasksView is in the org.eclipse.ui.ide plugin which is part of the core Eclipse Platform project.
The GIT source for Platform is here. You can also install the source in to your Eclipse by installing the Eclipse Platform SDK.

Netbeans + Eclipse + Dart -> IntelliJ

At the moment I have 3 IDEs running at the same time, Netbeans for PHP and Python related projects (support for both are poor in Netbeans), Eclipse STS for Java/Spring/Scala projects (STS hangs when the projects get too big) and Dart IDE for Dart projects.
I'm trying out IntelliJ seeing as it has decent support for all the languages I'm working in and somehow it's a lot more stable, much faster, much more intuitive, but I can't figure out how to import multiple projects ... (that's something that just works in both Netbeans and Eclipse)
... there's a Maven Projects tab on the right, if I click the + sign it perfectly imports multiple maven projects for me and lists them in the project box, as soon as I import a non-maven project using file -> import project, all my other projects disappear and I have to re-import those projects via the Maven Projects tab. If I import a non-maven project first and then the maven projects using the Maven Projects tab on the right, I can mix one Dart project and multiple maven projects.
The suggestion out there is to import them as modules under a project, so I create an empty new project called Workspace, I select JDK 1.7 for the project SDK. Under module I click the + sign, find my project, select the pom.xml, add all the pom.xml files for that project and click ok - now I have a project with multiple modules.
Repeat for another project, import all the modules, and first project disappears.
How do I have multiple projects with their own "modules" (modules which are actually standalone projects) in IntelliJ. If projects are the eclipse equivalent of workspaces, is it possible to have multiple workspaces open? If not, how do I switch between them? (if switching is too much hassle, I'll create one mega-project and just add all projects as modules)
You can have multiple projects open in separate IntelliJ windows. Every time you open or create a project, or open a build file such as pom.xml or build.gradle, IntelliJ asks you whether you want to open the project in the same window or a new one.

How to create a JavaFX module in IntelliJ IDEA

I would like to integrate a JavaFX GUI in an existing IntelliJ IDEA Java project (java version 1.8.0_20).
Although I can create a JavaFX project from scratch (JavaFX plugin is enabled) in my IDE, I can't figure out how to create a module.
Do I need to define a new module SDK for a new Java module? Or does the type of the JavaFX module has to be IntelliJ Platform Plugin? I tried both without any success. Please help.
Many thanks,
Cristina
Update for Idea 2021.3
The previous information on this answer for Idea 13.1 is now outdated.
For Idea 2021.3, create a new JavaFX project using an Idea wizard:
New JavaFX project wizard.
From the main menu, select File | New | Project.
In the New Project wizard, select JavaFX from the list on the left.
I advise you follow the detailed instructions for creation and execution of JavaFX project at the new JavaFX project wizard link supplied.
A new JavaFX project created this way will be different from creating a new Java project using the same wizard. The new JavaFX project will be configured to use a build tool (e.g. maven or gradle). It will have the JavaFX module dependencies defined and will include sample code for a modular HelloWorld JavaFX FXML application. It is the perfect thing to use to get started with a new JavaFX application IMO.
If you want a new Idea module rather than a new project, then you just follow the same steps as above, but instead of selecting File | New | Project, you select File | New | Module, then select JavaFX from the list on the left as before.
Alternatively, you can create new modules in Idea by defining the modules in a Maven or Gradle project and importing the build tool project file for the project into Idea.
Prior answer for Idea 13.1
I don't think you can define a new JavaFX module in Idea 13.1. Note that there is not much difference between a JavaFX project and a non-JavaFX project in Idea, so you can just create a normal Java module and make a couple of manual tweaks to the module configuration and it should behave the same as if you created a JavaFX project. See the following answer for more details:
How to convert a normal java project in intellij into a JavaFx project
Okay this question is old and has been answered but let me add more to it. I came across the same problem and did a little workaround:
You first open the main project in IDEA (in which you want to add a JavaFX project module), then goto File -> New -> Project.
From there, you get the standard New Project dialog of IDEA, so select javaFX and proceed. Make sure the project location is where you want the JavaFX module to be created (which is why i prompted you to open the parent project in IDEA first). Open it in a new window and close it, doesn't matter.
Now, (Assuming that you only have the main project opened in IDEA) goto its File -> Project Structure and in the dialog, goto Modules and click add (+) -> Import module and then select the project you just created. Proceed through the wizard, overwrite the .iml and the JavaFX module should be added to your main project structure.

Eclipse plugin view does not show up after install

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong
I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.
I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.
I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?
Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.
You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.
You could try copying your jar file to the eclipse/dropins folder.