留言板

Eclipse Plugin Limitations?

Ken Turner,修改在11 年前。

Eclipse Plugin Limitations?

New Member 帖子: 16 加入日期: 12-7-20 最近的帖子
Unless I'm mistaken, the current Eclipse plugin is a little odd.

(1) It seems that portlets can't be packaged and deployed using Eclipse. "Run on Server" does not seem to work reliably, and it has other oddities such as creating multiple browser instances when this is done. Instead, it seems that the Ant build file needs to be used (which is a shame). Is it planned to allow direct deployment, re-deployment and undeployment of portlets while using Eclipse?

(2) Eclipse displays only the structure of files like "portlet.xml" and "liferay-portlet.xml" rather than the content of these. The values also cannot be changed except by editing the XML. Is it planned to make these display and edit properly using the "structure" editor?

(3) "New/Liferay Project" creates "XXX-portlet" as the name of a project with a portlet. It would be less confusing if this were simply named "XXX" since it seems that this can have one or more portlets inside it. "New/Liferay Portlet" seems to be for creating a further portlet within an existing project, rather than for creating a new portlet. Superficially its name suggests it should create a new and independent portlet.

Did I miss something? Thanks!
thumbnail
David H Nebinger,修改在11 年前。

RE: Eclipse Plugin Limitations?

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
First of all, this is not a setup/deployment issue, it really should have been posted to the Liferay IDE forum.

Ken Turner:
(1) It seems that portlets can't be packaged and deployed using Eclipse. "Run on Server" does not seem to work reliably, and it has other oddities such as creating multiple browser instances when this is done. Instead, it seems that the Ant build file needs to be used (which is a shame). Is it planned to allow direct deployment, re-deployment and undeployment of portlets while using Eclipse?


Using the ant build file simulates the same sort of deployment that you would be using to promote to a test or production environment. I personally wouldn't want to develop any other way because I want to ensure when it comes time to do that deployment, I know I'm ready.

(2) Eclipse displays only the structure of files like "portlet.xml" and "liferay-portlet.xml" rather than the content of these. The values also cannot be changed except by editing the XML. Is it planned to make these display and edit properly using the "structure" editor?


What? In my visual editor from the IDE I certainly can use a structured editor. You may be looking at them using the XML editor. If so, just use the 'open with' to find the right visual editor on the file.

(3) "New/Liferay Project" creates "XXX-portlet" as the name of a project with a portlet. It would be less confusing if this were simply named "XXX" since it seems that this can have one or more portlets inside it. "New/Liferay Portlet" seems to be for creating a further portlet within an existing project, rather than for creating a new portlet. Superficially its name suggests it should create a new and independent portlet.


The default expectation is that plugins are deployed separately from each other. You may choose to change the project name if you wish, but you really should think twice before bundling multiple plugins together. For real development organizations, all changes must be tested - if you put all of your portlets in one project and a change was only needed for one of those portlets, proper testing etiquette mandates testing of all of the portlets. There's also possible collisions when multiple developers are working on the same project to contend with.
Ken Turner,修改在11 年前。

RE: Eclipse Plugin Limitations?

New Member 帖子: 16 加入日期: 12-7-20 最近的帖子
Thank you for the clarifications.

If I open (say) "portlet.xml" in Eclipse I get two tabs, one for XML and one that shows the structure of the XML. In the latter, I expected to be able to set tag/value pairs (as happens for some Liferay files such as "liferay-display.xml").

Following your suggestion I discovered "Open With Portlet Application Configuration Editor". This is a lot more convenient!

"liferay-plugin-package.properties" also has a specialised editor. However, "liferay-portlet.xml" doesn't seem to have a similar editor other than the standard XML one.
thumbnail
David H Nebinger,修改在11 年前。

RE: Eclipse Plugin Limitations?

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
I don't believe there is a visual editor for that one yet.
thumbnail
Hitoshi Ozawa,修改在11 年前。

RE: Eclipse Plugin Limitations?

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Should be posting your question and request concerning Liferay IDE to the Liferay IDE forum instead of liferay portal forum.

http://www.liferay.com/community/forums/-/message_boards/category/4627757