Can't chose a Liferay Plugin SDK in Eclipse - eclipse

I have checked out an existing project from SVN into Eclipse as aLiferay project (in fact the checked in project IS a Liferay project).
The problem is that I get an error:
*No Liferay Plugin SDK configured on project Xxx-portlet.*
Opening the project properties I can see under Liferay menue item that indeed there is no SDK selected. Following the Configure SDKs link I can see an existing installed Liferay Plugin SDK and it's already selected. Clicking OK (even after de- and re-selecting the installed Plugin SDK) the input field remains empty.
How can I assign the Liferay Plugin SDK to the project??

Plugins SDK is an ant-based download that relies on your projects to be in common locations: If you just check out one project, you'll need to have this in a subdirectory of the plugins sdk - e.g. if you are working on a portlet (project name "my-portlet"), this should be located in ${plugins-sdk}/portlets/my-portlet.
In eclipse (or Liferay IDE) you should configure your plugins sdk by naming it and pointing to the root of your sdk folders. Then you can choose to create projects into this sdk (or to import from that SDK)
Note that the sourcecode will be located in the SDK directory, not in the eclipse workspace directory.
This is necessary as IDE relies on the ANT infrastructure to be there and the build.xml files reference common build.xml files in the parent directory. Some build processes in Liferay IDE will trigger ANT.
Liferay IDE 2.0 will also support maven, so this requirement will go away (if you use maven)

Ok! I have to check out the project into the {Liferay Plugin SDK}/portlets folder but not into any other folder.

Related

Cordova Social Sharing Plugin not working in NetBeans 8 Cordova Build

I installed Social Sharing Plugin using Command Prompt in my cordova 3.3 project of NetBeans 8
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin
After successful plugin installation. The social sharing plugin is listed in the plugins folder. But when is try to build and run the app. Netbeans builder automatically removes the installed social sharing plugin. Check the log below
check-android-template:
check-cordova-version:
check-cordova-project:
upgrade-to-cordova-project:
create-android:
update-plugins:
cordova.cmd plugins
cordova.cmd -d plugin remove nl.x-services.plugins.socialsharing
Calling plugman.uninstall on plugin "nl.x-services.plugins.socialsharing" for platform "android"
Uninstalling nl.x-services.plugins.socialsharing from android
Beginning processing of action stack for android project...
NetBeans' build process parses list of plugins declared via Project properties (for so-called "core" plugins known by NetBeans) or from plugin.properties file (actually in project properties NetBeans reads this file and display/adds core plugins from/to it). Have a look at this screenshot, it says that you can add custom plugins by modifying nbproject/plugins.properties file. If you add the Social sharing plugin to this file, you should be OK.

Installed google plugin for eclipse but see no web application project menu item

I use standalone eclipse on linux. I downloaded it from eclipse site ( not from my distro's repository ) and extracted it to home folder. Installed google plugin for eclipse (using Help->Install New Software). But see no new Web Application Project menu item. When I create new java project, in project properties I can select on Google tab "Use google app engine" checkbox. But I have to create war folder, web.xml, appengine-web.xml, etc. So I want to get new web application project template. How do I turn it on?
You need to be sure that you downloaded "Eclipse IDE for Java EE Developers". Please delete your current Eclipse installation and download a new archive from http://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2

Add language pack to eclipse RCP

I downloaded the eclipse language pack from the following site:
http://download.eclipse.org/technology/babel/babel_language_packs/R0.10.1/indigo/indigo.php
I put the downloaded plugins in the plugin folder of my eclipse installation.
My question: How do I use these plugins with my eclipse RCP application now?
I seem to be unable to add them to my application because I can select them no where. I also tried to drop them into the plugin folder of my RCP application after I exported the application and adding the plugin names to the config.ini but I had no success.
I'd appreciate any help on this topic since I'm stuck :(
Since 3.6 or so, Eclipse doesn't try to find additional plugins in the plugins folder; it will only consider what has been installed with p2 (i.e. via the "Install New Software" menu or the marketplace).
There should be a dropins folder next to the plugins folder; put the language packs in there and Eclipse should automatically pick them up.
See the documentation for details.

Netbeans won't let me change a project's Netbeans platform

I've downloaded the VisualVM source and am trying to compile the Glassfish plugin using Netbeans 7.01. Doing so results in the following error:
C:\source\visualvm\trunk\plugins\glassfish\nbproject\build-impl.xml:48: You must define 'nbplatform.VisualVM_100609-dd12ae64a19c.harness.dir'
That lead me to the project settings which shows the platform as "Netbeans IDE...". The drop down box is grayed out so I can't select the correct platform.
Yet, on my hello world VisualVM plugin I can set the platform to the appropriate platform and it runs great.
To try and resolve this I've tried creating platform.properties file and putting it in the nbproject folder with the following entries. However, this doesn't seem to be working
harness.dir=mypath/visualvm/visualvm_13
and
nbplatform.VisualVM_100609-dd12ae64a19c.harness.dir=mypath/visualvm/visualvm_13
Any suggestions.
Glassfish plugin is part of 'plugins' NetBeans modules suite. All modules from a Modules suite has to be build against the same version of NetBeans platform application (in our case VisualVM). This means that you can change the NetBeans Platform for the whole suite, go to the properties of the 'plugins' suite a change the platform there.
In order to build the VisualVM and it's associated plugins you must download the NetBeans platform and profiler binaries that are available on the VisualVM website's build guide section.
For example, to build the 1.3.2 release you would go to this section and download the NetBeans 6.9.1 platform and profiler binaries available through the link located on that page. The link I've provided also gives you instructions for obtaining the proper VisualVM sources from the repository and building VisualVM and it's plugins. For example, the sources for the 1.3.2 release can be checked out using the following url:
https://svn.java.net/svn/visualvm~svn/branches/release132
And once you've completed the checkout and extracted the NetBeans platform binaries (downloaded from the above link) into the
release132/visualvm directory, you can build the entire application and it's plugins by running ant build from the release32/plugins directory.
I successfully completed this entire process and can verify that the instructions work for 1.3.2. However, the instructions for building the trunk did not result in a successful build due to at least one missing dependency.
What the error that you were seeing was telling you was that the NetBeans platform's build harness could not be located. The harness is included in the downloadable binary and once you've extracted it into the release32/visualvm directory the values that are in the project.properties file will once again be valid. This is of course a good example of why you should keep everything needed to successfully reproduce a build in your repository!

Platform-specific dependency creeping into Eclipse plugin

I have implemented a graph editor with Eclipse EMF and GMF frameworks. After completing my project, I realized that this plugin shows dependencies (not explicitly added by me) on some OS-specific plugins.i.e:org.eclipse.ui.win32, org.eclipse.swt.win32.win32.x86. And whenever I have tried to bypass this dependency at my update site something went wrong with the installation process of the plugin.
As such it is impossible to run my plugin in *nix environment or even win64 machines.This seems a very heavy constraint dependency to me. Am I doing something in a wrong way? Or is there no other way of building Eclipse plugins which are cross-platform other than building the project from scratch at each different OSs?
We created a similar style of plug-in in my project. Under "Plug-in Dependencies" in Package Explorer I can see org.eclipse.swt.win32 listed, but it is not listed in required plug-ins in plugin.xml.
We also successfully created an update site which works for Mac users without issue.
So, yes it is possible to have a cross-platform plug-in.
I would suggest you first try to to use "Export..." -> "Deployable plug-ins and fragments" to create a bunch of jar files for your plug-in. See if these can be successfully installed by copying into the drop-ins folder of a fresh eclipse installation. Do this first on a Win32 install, then try on another platform. Once you have that working, use the new Eclipse installation to create the Update site.