Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Generate Getters and Setters not working(Nothing happens when I click Generate Getters and Setters)
Generate Getters and Setters not working [message #1829145] Thu, 25 June 2020 19:38 Go to next message
Michael Herrmann is currently offline Michael HerrmannFriend
Messages: 3
Registered: June 2020
Junior Member
Just yesterdayI installed Eclipse IDE for PHP Developers (Build 20200615-1200) and if I right-click, choose Source -> Generate Getters and Setters nothing happens. No functions are generated, not wizard window pops up, no error message is shown. Does not matter if I select a variable or not.
Same if I try it via the Source menu: nothing.

What am I missing? And failing a simple solution - how would I go about debugging it?

Full Build Information:
Eclipse IDE for PHP Developers (includes Incubating components)
Version: 2020-06 (4.16.0)
Build id: 20200615-1200
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 1.8.0_251
Re: Generate Getters and Setters not working [message #1829199 is a reply to message #1829145] Sat, 27 June 2020 10:11 Go to previous messageGo to next message
Michael Herrmann is currently offline Michael HerrmannFriend
Messages: 3
Registered: June 2020
Junior Member
As nobody seems have any idea, let me ask this first:

This is supposed to work with php, right? I remember it working with Java when I last used eclipse in 2006.
Re: Generate Getters and Setters not working [message #1829213 is a reply to message #1829199] Sun, 28 June 2020 09:39 Go to previous messageGo to next message
Michael Herrmann is currently offline Michael HerrmannFriend
Messages: 3
Registered: June 2020
Junior Member
Trying to narrow it donw:

I add a custom keyboard shortcut that should open the wizard. When I try it, I get: "The operation is unavailable on the current selection. Please select a valid PHP element name"

Does not matter if I select anything or not nor what I select.
Re: Generate Getters and Setters not working [message #1830546 is a reply to message #1829145] Tue, 28 July 2020 23:49 Go to previous messageGo to next message
Piotr Budek is currently offline Piotr BudekFriend
Messages: 2
Registered: July 2020
Junior Member
Works for me.

index.php/fa/38679/0/

Show your class you want use getter/setter generator, are there any fields inside?
Re: Generate Getters and Setters not working [message #1831950 is a reply to message #1829145] Thu, 03 September 2020 12:58 Go to previous messageGo to next message
Mark Smith is currently offline Mark SmithFriend
Messages: 82
Registered: September 2020
Member
Install Eclipse 2019-06 release
Install lombok v1.18.8 onto Eclipse
Re: Generate Getters and Setters not working [message #1832694 is a reply to message #1831950] Wed, 23 September 2020 11:56 Go to previous message
Mark Smith is currently offline Mark SmithFriend
Messages: 82
Registered: September 2020
Member
Please check this article
https://www.eclipse.org/forums/index.php/t/1070417/
This article gives the answer is
Getter/Setter generator isn't part of eclipse PDT for now. You can use external plugin, available at http://p2.pdt-extensions.org/ - Core-Plugin
Previous Topic:Can display errors with undefined variables in class
Next Topic:Renaming variable renamed in ALL files of the project
Goto Forum:
  


Current Time: Thu Apr 25 14:21:48 GMT 2024

Powered by FUDForum. Page generated in 0.03496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top