eclipse-pdt

Proper indentation in array initialization, PDT/Zend Studio

眉间皱痕 提交于 2019-12-23 09:26:03
问题 I'm using the following style of array initialization in the code: $a = array( 'one' => 123, 'two' => 456 ); But PDT/Zend Studio doesn't work properly in this case; after pressing [Return] key it places cursor under the $a (in my example) and ignores indentation. If array keys are numbers (at least not start with quotation marks) everything is working fine. This is how it works currently (| — is a position where edtitor places caret after pressing [Return]) $a = array( 'one' => 123,[RETURN] |

Reuse PHP project in Eclipse / Aptana Studio 3

微笑、不失礼 提交于 2019-12-23 05:59:01
问题 I have a CMS project that I reuse in several sites. Is it possible to add this project as Library for other PHP projects? For development, I have the files of my CMS included in one site and not in the others. Then, from that only copy I upload the files through every site. I want to improve this. I read Configuring a Project's PHP Build Path and Configuring a Project's PHP Include Path. However, I don't see how the project' files will be included in the site if I test it locally. I use

eclipse PDT: How to enable content/code assist for personal PHP libraries

血红的双手。 提交于 2019-12-23 02:01:56
问题 I am struggeling getting content/code assist to work for PHP libraries (other than Zend) in my Zend Framework project folder: library Doctrine Zend (<-works with code assist...) ZendX Content assist remains blank when using this libraries... Any suggestions? Thanks, Udo 回答1: Content Assist is available for any compatible resources in the include path. Right click your project folder. Then Include Path . Then Configure Include Path . A window will appear. Configure any needed resources.

Eclipse PDT plugin installation

一笑奈何 提交于 2019-12-22 04:56:34
问题 I'm trying to install PDT plugin in Eclipse and I get error: Cannot complete the install because one or more required items could not be found. Software being installed: PHP Development Tools (PDT) 3.1.2.201212211235 (org.eclipse.php.feature.group 3.1.2.201212211235) Missing requirement: PDT Debug UI Plug-in 3.1.2.201212211235 (org.eclipse.php.debug.ui 3.1.2.201212211235) requires 'bundle org.eclipse.dltk.debug.ui [4.0.0,5.0.0)' but it could not be found Cannot satisfy dependency: From: PHP

How to reformat multi-line comments in Eclipse PDT?

拟墨画扇 提交于 2019-12-22 03:44:26
问题 In Eclipse PDT , Ctrl-Shift-F reformats code. However, it doesn't modify comments at all. Is there some way to reformat ragged multi-line comments to 80 characters per line (or whatever)? i.e. convert // We took a breezy excursion and // gathered Jonquils from the river slopes. Sweet Marjoram grew // in luxuriant // profusion by the window that overlooked the Aztec city. to // We took a breezy excursion and gathered Jonquils // from the river slopes. Sweet Marjoram grew in // luxuriant

Eclipse IDE: Add/change default filetypes?

家住魔仙堡 提交于 2019-12-22 03:23:21
问题 When I create a new file in Eclipse, there's a wide selection of different alternatives appearing in Eclipse. However I am missing a couple of file which I need to open the "file create wizard" to create - JS files included. How can I add my own file types as a default choice to appear in the "new files" menu? Screenshot of the menu I am referring to: 回答1: Puuh - just when I had given up I accidentally found this: Try this: Right click on Eclipse's toolbar and choose "Customize this

Eclipse, XAMPP, xDebug - waiting for XDebug session - stays in 57%

二次信任 提交于 2019-12-19 10:45:35
问题 When I start debugging the process stays there at 57% and says "waiting for XDebug session". This is a duplicate post on StackOverFlow, but I tried all the answers, nothing worked. It was working fine until before two days. I don't know what went wrong. 回答1: Having used Eclipse to launch xdebug sessions in Firefox for ever now, all of a sudden 23/4/2013 it would not launch xdebug using Firefox. It gave me the launch 57% and hang problem. It was quite happy to launch xdebug sessions in IE

Eclipse Unhandled event loop exception

巧了我就是萌 提交于 2019-12-18 14:42:44
问题 Im getting an exception in my eclipse indigo - im using the PDT plugin as well.. any ideas? When i code the lines start acting funny, disappearing, then reappearing. Unhandled event loop exception java.lang.Error: Error: could not match input at org.eclipse.wst.xml.core.internal.parser.XML10Names.zzScanError(XML10Names.java:473) at org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name(XML10Names.java:588) at org.eclipse.wst.xml.core.internal.parser.XML10Names.isValidXML10Name

Why do we need `Imported Packages` when we have `Required Plug-ins` in Eclipse plugin dependencies?

一曲冷凌霜 提交于 2019-12-18 11:54:00
问题 In developing Eclipse application, the dependencies tab in MANIFEST.MF has two columns. One is Required Plug-ins and the other is Imported Packages . Why do we need Imported Packages when we have Required Plug-ins ? The comment has it that "this plug-in depends without explicitly identifying their originating plug-in" , but I'm not sure in what case one doesn't want to explicitly identify their originating plug-in, and what's the advantage of it? ADDED Related question - What's the difference

Disable or speed up DLTK indexing in Eclipse PDT?

泄露秘密 提交于 2019-12-18 10:34:44
问题 I am using Eclipse PDT Helios with Aptana Studio on Windows XP SP3. Very often, my workflow is interrupted because Eclipse starts a DLTK indexing process that lasts 30 seconds, sometimes up to 2 minutes - which is annoying. I wonder if there is any way to: Either turn that off or Run the DLTK indexing process less frequently. I didn't find any possibility to change regarding parameters in Window > Preferences. 回答1: PDT 2.2 (the one in Helios) is using a local database engine, H2, to store