[pdt-dev] extending PDT 2.2
Hi All, I've added some documentation on how to extend PDT 2.2: http://wiki.eclipse.org/Extending_PDT_2.2 Please report any suggestions or questions you have. Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] BuildError when importing PHPStructuredEditor
Hi, You should add org.eclipse.wst.sse.ui plug-in to the dependencies list. Best regards, Michael 2009/11/11 Robert Gründler rob...@dubture.com Hi everyone, i'm implementing a key-binding handler, which should switch between files that logically belong together. However, when i try to get the ActiveEditor using the HandlerUtil and cast it to a PHPStructuredEditor, i get the following build error: The type org.eclipse.wst.sse.ui.StructuredTextEditor cannot be resolved. It is indirectly referenced from required .class files SwitchViewHandler.java I've tryied to add the org.eclipse.wst.sse package to the dependencied (like in the php.ui project), but i still get the error. The ui project has the following php dependencies: org.eclipse.php.core org.eclipse.php.ui The code looks like this: package com.dubture.cpdt.internal.handlers; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; import org.eclipse.php.internal.ui.editor.PHPStructuredEditor; import org.eclipse.ui.IEditorPart; import org.eclipse.ui.handlers.HandlerUtil; public class SwitchViewHandler extends AbstractHandler { @Override public Object execute(ExecutionEvent event) throws ExecutionException { IEditorPart editor = HandlerUtil.getActiveEditor(event); if (editor instanceof PHPStructuredEditor) PHPStructuredEditor pEditor = (PHPStructuredEditor)editor; return null; } } Any hints would be greatly appreciated. thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] How to add code-completion for PHP Framework
Hi Robert, I think goalEvaluatorFactories extension point would be sufficient for this specific purpose. You just need to add a rule that evaluates structures like: ClassRegistry::init('MyObject'), and returns type (MyObject) for such cases. Take a look at org.eclipse.php.internal.core.typeinference.evaluators.InstanceCreationEvaluator as an example, which evaluates structures like: new MyObject(). Best regards, Michael On Wed, Oct 28, 2009 at 1:03 PM, rob...@dubture.com wrote: Hi all, i'm trying to write an eclipse plugin for the Cakephp framework, and i'd like to start off with some additional framework-specific code assistance. The framework uses a central ClassRegistry factory for object instantiation. So, there's no new keyword for some objects, for example: $myObject = ClassRegistry::init('MyObject'); Basically i would like to give a hint to PDT that the variable $myObject is an instance of the MyObject class, which has already been loaded into the PDT Model, so i guess i would simply point to the MyObject IType in the Model somehow. Could anyone give me a hint what would be the best method to accomplish this? I've already had a look at the extension points completionStrategyFactories/completionContextResolvers and goalEvaluatorFactories, but i'm not sure what's the best way to hook into PDT for this kind of thing. Thanks! -robert ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] code assist development
The generated PHP language model does contain an indication about optional parameters in PHPDoc and using parameter initializer (if you open standard.php you'll see it). The problem is that Code Assist doesn't really use this information to present it in a fancy style that you mentioned. We can fix it in the future. On Thu, Oct 22, 2009 at 8:34 PM, Sjaak Eenhuis excepti...@hotmail.comwrote: Currently, pdt doesn't indicate if a certain function parameter is required or optional. As I understand from http://doc.php.net/php/dochowto/chapter-skeletons.php you provide this information allready. So visually indicating what is required and what not is something which can be accomplished already by the pdt developers. However, as far as I can see the docbook sources don't contain the actual default value of such an optional parameter. This would come in handy, in cases like string *htmlspecialchars* ( string $string [, int $quote_style = ENT_COMPAT [, string $charset [, bool $double_encode = true ]]] ) If I want to use htmlspecialchars with* ENT_NOQUOTES* I want to see whether I need to override the default of $quote_style. I've encoutered this type of issues more than once and this info is imho useful enough to have it. I am curious about your opinions. From: phi...@roshambo.org Date: Mon, 19 Oct 2009 08:38:58 -0700 To: pdt-dev@eclipse.org CC: moa...@php.net Subject: [pdt-dev] code assist development Hello, The PHP manual is interested in making the data more friendly to PDT. Please describe exactly how PDT gathers data for 'code assist' so that we can test and help make the process a little easier. Like, do you parse the XML sources? How? What problems do you run into? Regards, Philip ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- De nieuwe Windows 7: vind de juiste pc voor jou. Meer informatie.http://windows.microsoft.com/shop ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] goalEvaluatorFactories extension point — plugin is not activated
Try this one: extension point=org.eclipse.php.core.goalEvaluatorFactories factory class=my.MyEvaluatorFactory priority=200 /factory /extension On Tue, Jul 21, 2009 at 1:29 AM, Sjaak Eenhuis excepti...@hotmail.comwrote: I have a plugin that needs to add code completion for an undeclared variable. To do so I try to implement my own goal factory. I am able to set break points, and start a debugging session. But it seems like the plugin is never called, a break point is never reached when I start to edit a php file. I have no idea whether the plugin.xml is correct: ?xml version=1.0 encoding=UTF-8? ?eclipse version=3.4? plugin extension point=org.eclipse.php.core.goalEvaluatorFactories goalEvaluatorFactories class=my.MyEvaluatorFactory priority=100 id=my.MyEvaluatorFactory name=My test nature=org.eclipse.php.core.PHPNature / /extension /plugin public class MyEvaluatorFactory implements IGoalEvaluatorFactory {…} public class MyEvaluator extends GoalEvaluator {…} I've modelled it according to http://wiki.eclipse.org/API_Document_for_Extension_Points_PDT_2.0#PHP_Evaluator_Factory, but I am not sure if these examples are still correct. When I look in the aspectPDT sources, I cannot find any of the demonstrated extension points. :S So the question is: why is my Evaluator never invoked? -- Lees je Het Net, Planet, Ziggo of XS4ALL-mail in Windows Live Hotmailhttp://www.microsoft.com/netherlands/windowslive/Views/productDetail.aspx?product=HotmailopenVideo=5 ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PDT Incubator project
+1 for the PDT Incubator+1 for the Athena builds (BTW, when are we planning to make a transition to Athena in PDT? :] ) On Sun, Jul 19, 2009 at 11:06 PM, Nick Boldt nickbo...@gmail.com wrote: +1. Can I assume this project's subprojects/components will use Athena for their builds release independently (ie. one build per cmpt rather than one build for all of PDT-I) ? N On 7/19/09, Roy Ganor r...@zend.com wrote: Hi, During the next few days a project proposal will be submitted to the Eclipse Foundation targeting the creation of “PDT Incubator” project. You can read more details about this proposal at the bottom of this email. Since some of you contribute code and patches to the Eclipse PDT I would like to welcome you and ask if you are willing to join this project and be a committer/mentor that is maintained under the Eclipse Foundation projects. If you are interested joining the initial committers or mentors list, please reply to this email with a “+1” with a short bio and a short description on your experience with Eclipse/PDT. You can also add your own comments regarding this proposal. Regards, Roy The PDT Incubator is a proposed open source project under the PDT Project. This proposal is in the Project Proposal Phase (as defined in the Eclipse Development Process document) and is written to declare its intent and scope. This proposal is written to solicit additional participation and input from the Eclipse community. You are invited to comment on and/or join the project. Please send all feedback to the http://www.eclipse.org/newsportal/thread.php?group=eclipse.tools.pdt newsgroup. Background The goal of the PDT Incubator project is to experiment with alternative ideas and technologies for enhancing and complementing PDT. For example, the addition of Smarty source editing, Aspect oriented programming PDT, are possible areas of investigation for the PDT Incubator. In addition to this, the Incubator is also intended to serve as a forum for interested third parties and a place for the development of additional components and tools for PDT outside of the restrictions of the PDT project itself. This includes the development of additional source editing improvements and other components improvements. Incubator components are intended to stay in the Incubator until they are mature enough to be integrated into the main development stream. Initial Work Areas APDT – Aspect PDT The Aspect PHP Development Tools (APDT) [1] project provides Eclipse platform based tool support for AOSD with PHP. It has been developed by William Candillon during the Google Summer of Code 2008 [2] and mentored by Michael Spector. SmartyPDT The SmartyPDT [3] Editor adds a Smarty support for PDT. Smarty is a template engine for PHP, this project enables users to develop Smarty projects utilizing the power of PDT development tool. It has been developed by William Candillon and Roy Ganor. Out of Scope Work in the PDT Incubator will be constrained to only those efforts that we expect to graduate (i.e. the code will eventually become part of PDT). It is not a playground for arbitrary development efforts. In addition, we should ensure that investment in the incubator never leaves the community with the perception that it is coming at the cost of important work on the PDT project. Mentors · Current committers of the Eclipse PDT project · ??? Initial Committers · ??? The initial committers will be all committers on the current incubator components. Commit rights will be handled on a component-by-component basis. [1] http://code.google.com/p/apdt/ [2] http://wiki.eclipse.org/Google_Summer_of_Code_2008 [3] code.google.com/p/smartypdt/ -- Sent from my mobile device Nick Boldt :: JBoss by Red Hat Productization Lead :: JBoss Tools Dev Studio Release Engineer :: Dash Athena http://nick.divbyzero.com ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PHPSourceElementRequestorExtension unresolvable dependency on org.eclipse.dltk.ast.ASTVisitor
Hi, Add org.eclipse.dltk.core to your plug-in dependencies. Best regards, Michael On Mon, Jul 20, 2009 at 5:37 PM, Sjaak Eenhuis excepti...@hotmail.comwrote: I've problems implementing an extension point for pdt. What I want to do is to add a hidden typed variable to some source files. Maybe the PHPSourceElementRequestorExtension point isn't the right place to do so, but anyways. I can select org.eclipse.php.core.phpSourceElementRequestors from the available extensions, but adding your own class requires to edit plugin.xml manually. Eclipse warns that no schema is found for this extension point (See attachment) When I have this definition plugin extension point=org.eclipse.php.core.phpSourceElementRequestors requestor class=com.company.plugin.my.MySourceElementRequestor /requestor /extension /plugin and this code, public class MySourceElementRequestor extends PHPSourceElementRequestorExtension { } eclipse warns that *The type org.eclipse.dltk.ast.ASTVisitor cannot be resolved. It is indirectly referenced from required .class files. * I was not able to correct this via the build path. How can I correct this? -- Minder SPAM in de verbeterde Windows Live Hotmail http://mail.live.com ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] New branch in PDT source tree
Hi All, I've created just created a branch for PDT 2.1.x (Galileo release). Branch name: R2_1_Galileo. This branch indicates PDT 2.1.0RC5 state. The meaning of that is that we'll commit into this branch only fixes that will go into Galileo bug fix releases. Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PHP Explorer - Sorting File
Hi, I think these are existing issues: https://bugs.eclipse.org/bugs/show_bug.cgi?id=256621 https://bugs.eclipse.org/bugs/show_bug.cgi?id=179929 On Mon, Jun 1, 2009 at 12:27 PM, CocoRambo cocora...@gmail.com wrote: Hi all, Does it's possible to sort files by name in PHP Explorer? By default that's what PHP Explorer do but in some projects it doesn't... If someone have an explanation?! Or better! A solution! :) Thanks ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Re: [soc-dev] News from a last summer project
Hi, On Mon, Jun 1, 2009 at 4:50 PM, Nick Boldt nickbo...@gmail.com wrote: Talk to Wayne Beaton. He'll be able to explain the process and assist with the migration. Under which license is APDT released? Is it EPL compatible, and if not, can it be relicensed so that it is? (If not the CQ process is longer.) Would this make sense as an incubating subproject of PDT, or a separate parallel project in Tools or Technology? Releasing this project under PDT incubator won't require any special CQ process, right? And thinking to the future (next year's Helios release), would it make sense to ship APDT in the EPP PHP dev bundle? I think we must arrange survey for features that PHP developers would like to see in an EPP package. Best regards, Michael N On 6/1/09, William Candillon wcandil...@gmail.com wrote: Indeed, being hosted by eclipse.org would be really cool, what would be the process for that ? Best regards, William On Mon, Jun 1, 2009 at 7:59 AM, Roy Ganor r...@zend.com wrote: Well done to William! This project targets are remarkable (and help the Eclipse PDT project as well :)). Do you think there is a place to host this project in Eclipse? Same is valid to the AJDT project - http://www.eclipse.org/ajdt/ Thanks for your effort on this, Roy -Original Message- From: pdt-dev-boun...@eclipse.org [mailto:pdt-dev-boun...@eclipse.org] On Behalf Of Nick Boldt Sent: Sunday, May 31, 2009 6:29 PM To: PDT Developers Subject: [pdt-dev] Fwd: [soc-dev] News from a last summer project FYI -- Forwarded message -- From: William Candillon wcandil...@gmail.com Date: Sat, 30 May 2009 10:51:28 +0200 Subject: [soc-dev] News from a last summer project To: Eclipse Summer of Code Mailing List soc-...@eclipse.org Hello, Last summer I worked on the behalf of the Eclipse foundation on APDT, an extension of PDT to support Aspect-Oriented Programming for PHP: http://wiki.eclipse.org/Type_inference_for_APDT. I am very excited to annouce you that I release the version 1.0.0 last week: http://apdt.googlecode.com. I hope you guys will check it out! Best regards, William -- William Candillon ___ soc-dev mailing list soc-...@eclipse.org https://dev.eclipse.org/mailman/listinfo/soc-dev -- Sent from my mobile device Nick Boldt :: JBoss, a division of Red Hat Productization Lead :: JBoss Tools Dev Studio Release Engineer :: Eclipse Modeling Dash CBI http://wiki.eclipse.org/User:Nickb ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- William Candillon Check out APDT: http://apdt.googlecode.com ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Sent from my mobile device Nick Boldt :: JBoss, a division of Red Hat Productization Lead :: JBoss Tools Dev Studio Release Engineer :: Eclipse Modeling Dash CBI http://wiki.eclipse.org/User:Nickb ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] check for updates finds nothing
Hi, Are there any concerns regarding https://bugs.eclipse.org/bugs/show_bug.cgi?id=276123 ? Thanks, -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Re: resolving PDT build issues
Thanks Nick! Do you know whether internal Jars are signed as well? We have JFlex JavaCup jars that reside in org.eclipse.php.core plug-in... On Wed, May 6, 2009 at 5:42 PM, Nick Boldt nickbo...@gmail.com wrote: 2. To fix .HEAD, you either need to tag your sources and put those tags in the .map file, or, if you want to continue to build from HEAD, then: http://wiki.eclipse.org/Modeling_Project_Releng/Building_Zips_And_Jars#Built_features_.26_plugins_have_.22HEAD.22_in_their_version_qualifier 1. Galileo's so-called BuckyBuilder shouldn't be trying to repack our jars. IMHO that's a flaw in their process, not ours. N Michael Spector wrote: Hi Nick, We need your help in resolving PDT build issues. See the bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=272596 To summarize the issues: 1. A lot of tampered Jar problems while running P2 director of Galileo package builder. 2. PDT features have versions named .HEAD. Do you have an idea what needs to be fixed there? Thanks, -- Nick Boldt :: http://wiki.eclipse.org/User:Nickb Release Engineer :: Eclipse Modeling Dash Athena -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Re: How to change the default Simple php file template.
I meant that this doesn't happen to me with the latest integration build of PDT. On Fri, May 1, 2009 at 10:33 PM, Parag Kalra paragka...@gmail.com wrote: Kindly correct me if I am wrong Is it a bug? If not then do you mean that it is too late to integrate this feature into the new build or this cannot be integrated at all... Cheers, Parag, P. J. O'Rourke - Cleanliness becomes more important when godliness is unlikely. On Fri, May 1, 2009 at 10:41 PM, Michael Spector spek...@gmail.com wrote: I can't re-create this behavior with latest integration build of PDT 2.1.0. On Fri, May 1, 2009 at 8:04 PM, Parag Kalra paragka...@gmail.com wrote: Any pointers...? Cheers, Parag, Isaac Asimov - I do not fear computers. I fear the lack of them. On Sun, Apr 26, 2009 at 11:30 PM, Parag Kalra paragka...@gmail.com wrote: In PDT-Eclipe, under 'Project' - 'Properties' - 'Code Style' - 'Code Templates', 'Simple php file' contains following template: ?php ${cursor} ? I changed it to by editing it in PDT-Eclipse: /** * @Filename: * @Usage: php * @Description: * @Date: * @Author: Parag Kalra * @Company: My Company * @Email: paragka...@gmail.co.in * @Copyright: Parag Kalra, 2009-2010 * @License: GNU General Public License * @Version: * @Last changed: */ ?php ${cursor} ? But when I am creating a new php file, it still shows: ?php ${cursor} ? I am unable to view my new PHP file header. What am I missing? Cheers, Parag, Will Rogers - I don't make jokes. I just watch the government and report the facts. ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] compilation error in PHPMixinBuildVisitor.java (at line 390): The constructor FakeField(ModelElement, String, int, int, int) is undefined
Can it be that saving the map file has failed while building: http://modeling.eclipse.org/pdt/downloads/?showAll=1hlbuild=I200904130701project=#I200904130701 ? On Tue, Apr 14, 2009 at 6:42 PM, Nick Boldt nickbo...@gmail.com wrote: I just kicked the build from the web UI, setting type to I. It builds from whatever's in the map, IIRC. N Michael Spector wrote: Hi, Do you build from tag? I have built a new I-build yesterday, and it was successful. On Tue, Apr 14, 2009 at 5:26 AM, Nick Boldt nickbo...@gmail.com wrote: Trying to build PDT to verify my changes re: adding p2 metadata to update site zip addition of feature version suffixes, but I hit this brick wall instead: --- [javac] 4. ERROR in /home/www-data/build/pdt/downloads/drops/2.1.0/I200904132213/eclipse/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/mixin/PHPMixinBuildVisitor.java (at line 390) [javac] obj = new FakeField((ModelElement) sourceModule, name, constant.sourceStart(), constant.sourceEnd() - constant.sourceStart(), Modifiers.AccConstant); [javac] ^^ [javac] The constructor FakeField(ModelElement, String, int, int, int) is undefined -- Nick Boldt :: http://wiki.eclipse.org/User:Nickb Release Engineer :: Eclipse Modeling Dash Athena ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Nick Boldt :: http://wiki.eclipse.org/User:Nickb Release Engineer :: Eclipse Modeling Dash Athena ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] can i get ISourceModule from IStructuredDocumentRegion
Can you use PlatformUI.getWorkbench().getDisplay().syncExec() ? 2009/4/13 赵忠伟 zhaozhong...@eclipseworld.org: thanks for your reply.i think it is executed in non-ui thread ,and the result is (page == null),as i use the following code. // IWorkbench workbench = PlatformUI.getWorkbench(); // IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); // IWorkbenchPage page = window.getActivePage(); // IEditorPart editorpart = page.getActiveEditor(); // if(editorpart instanceof PHPStructuredEditor){ but i think i have some other method to get the edtior.descript as following: PHPStructuredEditor#createStructedTextViewer protected StructuredTextViewer createStructedTextViewer(Composite parent, IVerticalRuler verticalRuler, int styles) { PHPStructuredTextViewer structuredTextViewer = new PHPStructuredTextViewer(this, parent, verticalRuler, getOverviewRuler(), isOverviewRulerVisible(), styles); structuredTextViewer.addTextInputListener(new ITextInputListener(){ public void inputDocumentChanged(IDocument oldInput, IDocument newInput) { //do some operation } public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) { } }); return structuredTextViewer; } i do some operations to put the current PHPStructuredEditor instance and IDocument to two global maps(they map to each other in a thread save way) .,and remove them when the editor is disposed. so in ISemanticHighlighting#consumes i can get the IDocument : IStructuredDocumentRegion sdRegion; IStructuredDocument parentDocument = sdRegion.getParentDocument(); and then through the global map,i think i can make it. i think it is a very poor way! wei 2009/4/13 Michael Spector spek...@gmail.com In this case you can do the following hack :) IStructuredDocumentRegion sdRegion; IStructuredDocument parentDocument = sdRegion.getParentDocument(); IWorkbenchPage page = PHPUiPlugin.getActivePage(); if (page != null) { IEditorPart editor = page.getActiveEditor(); if (editor instanceof PHPStructuredEditor) { ISourceModule sourceModule = (ISourceModule) ((PHPStructuredEditor) editor).getModelElement(); } } On Mon, Apr 13, 2009 at 12:22 PM, 赵忠伟 zhaozhong...@eclipseworld.org wrote: hi, Michael i extended the extension org.eclipse.wst.sse.ui.semanticHighlighting as following: extension point=org.eclipse.wst.sse.ui.semanticHighlighting highlighting class=org.eclipse.php.internal.ui.editor.highlighting.PHPStaticSemanticHighlighting target=org.eclipse.php.core.phpsource /highlighting /extension here PHPStaticSemanticHighlighting need to implement ISemanticHighlighting interface and there is a method public Position[] consumes(IStructuredDocumentRegion region); in ISemanticHighlighting interface ,so the context is i can get nothing except IStructuredDocumentRegion (actually XMLStructuredDocumentRegion).the method ISemanticHighlighting#consumes is called by SemanticHighlightingReconciler#reconcile (more or less 133rd line) .there is StructuredTextEditor in SemanticHighlightingReconciler,but i could not get it.if i the editor,i can get editorinput and the file,so i can use DLTKCore#create to get a ISourceModule ,but now i can only get IStructuredDocumentRegion ,nothing else!i search a lot in the pdt source but i did not find a way to get ISourceModule from IStructuredDocumentRegion.and in my oponion,ISourceModule must be relative to IScriptProject and IScriptFolder,so from IStructuredDocumentRegion ,it is hardly to find the corresponding ISourceModule (IScriptProject and IScriptFolder) it belongs to.i am sorry for my poor english:) thank you very much! best regards! ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] can i get ISourceModule from IStructuredDocumentRegion
I mean you can use syncExec() for running things in UI thread... like getting an active editor page. 2009/4/13 赵忠伟 zhaozhong...@eclipseworld.org: how to use PlatformUI.getWorkbench().getDisplay().syncExec() ? ISemanticHighlighting#consumes is called by wtp,so i can not change the way it is called. all i can do is in ISemanticHighlighting#consumes use the limited parameter,but it is not enough,so i want to do some operation on pdt. i just want to add pdt some semantic highlighting function:) and the semantic highlighting interface and extension are defined in wtp.soany advice there? 2009/4/13 Michael Spector spek...@gmail.com Can you use PlatformUI.getWorkbench().getDisplay().syncExec() ? 2009/4/13 赵忠伟 zhaozhong...@eclipseworld.org: thanks for your reply.i think it is executed in non-ui thread ,and the result is (page == null),as i use the following code. // IWorkbench workbench = PlatformUI.getWorkbench(); // IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); // IWorkbenchPage page = window.getActivePage(); // IEditorPart editorpart = page.getActiveEditor(); // if(editorpart instanceof PHPStructuredEditor){ but i think i have some other method to get the edtior.descript as following: PHPStructuredEditor#createStructedTextViewer protected StructuredTextViewer createStructedTextViewer(Composite parent, IVerticalRuler verticalRuler, int styles) { PHPStructuredTextViewer structuredTextViewer = new PHPStructuredTextViewer(this, parent, verticalRuler, getOverviewRuler(), isOverviewRulerVisible(), styles); structuredTextViewer.addTextInputListener(new ITextInputListener(){ public void inputDocumentChanged(IDocument oldInput, IDocument newInput) { //do some operation } public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) { } }); return structuredTextViewer; } i do some operations to put the current PHPStructuredEditor instance and IDocument to two global maps(they map to each other in a thread save way) .,and remove them when the editor is disposed. so in ISemanticHighlighting#consumes i can get the IDocument : IStructuredDocumentRegion sdRegion; IStructuredDocument parentDocument = sdRegion.getParentDocument(); and then through the global map,i think i can make it. i think it is a very poor way! wei 2009/4/13 Michael Spector spek...@gmail.com In this case you can do the following hack :) IStructuredDocumentRegion sdRegion; IStructuredDocument parentDocument = sdRegion.getParentDocument(); IWorkbenchPage page = PHPUiPlugin.getActivePage(); if (page != null) { IEditorPart editor = page.getActiveEditor(); if (editor instanceof PHPStructuredEditor) { ISourceModule sourceModule = (ISourceModule) ((PHPStructuredEditor) editor).getModelElement(); } } On Mon, Apr 13, 2009 at 12:22 PM, 赵忠伟 zhaozhong...@eclipseworld.org wrote: hi, Michael i extended the extension org.eclipse.wst.sse.ui.semanticHighlighting as following: extension point=org.eclipse.wst.sse.ui.semanticHighlighting highlighting class=org.eclipse.php.internal.ui.editor.highlighting.PHPStaticSemanticHighlighting target=org.eclipse.php.core.phpsource /highlighting /extension here PHPStaticSemanticHighlighting need to implement ISemanticHighlighting interface and there is a method public Position[] consumes(IStructuredDocumentRegion region); in ISemanticHighlighting interface ,so the context is i can get nothing except IStructuredDocumentRegion (actually XMLStructuredDocumentRegion).the method ISemanticHighlighting#consumes is called by SemanticHighlightingReconciler#reconcile (more or less 133rd line) .there is StructuredTextEditor in SemanticHighlightingReconciler,but i could not get it.if i the editor,i can get editorinput and the file,so i can use DLTKCore#create to get a ISourceModule ,but now i can only get IStructuredDocumentRegion ,nothing else!i search a lot in the pdt source but i did not find a way to get ISourceModule from IStructuredDocumentRegion.and in my oponion,ISourceModule must be relative to IScriptProject and IScriptFolder,so from IStructuredDocumentRegion ,it is hardly to find the corresponding ISourceModule (IScriptProject and IScriptFolder) it belongs to.i am sorry for my poor english:) thank you very much! best regards! ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt
Re: [pdt-dev] PDT 2.1 I build failed due to compilation error in org/eclipse/php/internal/core/mixin/PHPMixinBuildVisitor.java
Thanks, I've fixed that. This is due to a lot of uncommitted files that I have in my workspace (waiting for the next DLTK integration build...) On Thu, Apr 9, 2009 at 8:44 PM, Nick Boldt nickbo...@gmail.com wrote: Today's build failed due to compilation error: [javac] 4. ERROR in /home/www-data/build/pdt/downloads/drops/2.1.0/I200904090939/eclipse/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/mixin/PHPMixinBuildVisitor.java (at line 390) [javac] obj = new FakeField((ModelElement) sourceModule, name, constant.sourceStart(), constant.sourceEnd() - constant.sourceStart(), Modifiers.AccConstant); [javac] ^^ [javac] The constructor FakeField(ModelElement, String, int, int, int) is undefined Build Team wrote: br / bNotice/b: Undefined index: top in b/var/www/html/modeling/build/checkBuildStatus.php/b on line b51/bbr / br / bWarning/b: Cannot modify header information - headers already sent by (output started at /var/www/html/modeling/build/checkBuildStatus.php:51) in b/var/www/html/modeling/build/checkBuildStatus.php/b on line b74/bbr / Must specify parent project, top project, sub project (component), version, and buildID: /modeling/build/checkBuildStatus.php?parent=NONEtop=gefproject=version=3.4.0buildID=R200706201159 /modeling/build/checkBuildStatus.php?parent=modelingtop=emfproject=queryversion=1.1.0buildID=R200706201159html Status Check: http://modeling.eclipse.org/modeling/build/checkBuildStatus.php?parent=top=project=version=buildID= -- Nick Boldt :: http://wiki.eclipse.org/User:Nickb Release Engineer :: Eclipse Modeling Dash Athena ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] bug - hardcoded editor id in XDebugModelPresentation (PHPModelPresentation, too) - pdt 2.1.0
Can you report this bug? https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT Thanks! 2009/3/26 Ryan Huff rh...@slickedit.com: I should’ve waited a day before I posted “plugin integration problem with pdt – changing editor”…my apologies. I think now I’ve found the actual problem. Recall the symptom is that even with a different editor associated with *.php in File Associations, when a PHP breakpoint is hit the file is opened in a “PHP Editor”. In org.eclipse.php.internal.debug.ui.presentation.XDebugModelPresentation (and PHPModelPresentation), the getEditorId method has “org.eclipse.php.editor” hardcoded as the return value in the second case. So no matter what, when a PHP breakpoint is hit, a PHP Editor is popped open. Shouldn’t this method be finding the default editor for php, and returning the corresponding editor id? Looks like that’s what org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getEditorId does. Kind regards, Ryan ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] RE: plugin integration problem with pdt - changing editor assocation
Hi Ryan, I can't re-create this problem with PDT 2.1.0. I open a PHP file, it opens in a PHP editor. Then I go to the File Association preference page, and change a default editor associated with .php extension to Text Editor. I go back, and double-click the same file - it's opened in a Text editor. If you select editor type explicitly when opening a file Eclipse remembers it (Open With- ... other than default editor). In this case changing a default file association preference will not work, you have to Open With - Default Editor. Please tell whether this helps. 2009/3/26 Ryan Huff rh...@slickedit.com: In addition to: “even though I have SlickEdit set as the default editor, when I right click on a php file and do Open With, it still shows “PHP Editor” selected” The same is true if you just set the normal Eclipse Text Editor to be the default editor for php. Kind Regards, Ryan From: Ryan Huff Sent: Wednesday, March 25, 2009 5:23 PM To: 'pdt-dev@eclipse.org' Subject: plugin integration problem with pdt - changing editor assocation I am working with PDT 2.1.0 in Eclipse 3.5 M6. We (SlickEdit) make an editor plug-in for Eclipse and are currently trying to get better integration with PDT, particularly with debugging capabilities: mainly setting breakpoints and stepping through code. The issue is that when a debug session is started and the debugger stops at a breakpoint, Eclipse wants to open a PDT editor, not a SlickEdit editor. I have integrated our plug-in with several other language support plug-ins for Eclipse (Flex Builder, CDT, etc.) and have never had a problem as such. My hunch is that it has something to do with how the editor is defined, but I’m not sure…I’ll keep looking. Hopefully this can shed some light on the problem, you might have a better idea than I: I certainly have SlickEdit set as the default editor for *.php (phpfileassoc.png). The reason why I think the problem might have something to do with how the editor is defined (and not something implemented in the debugger) is because even though I have SlickEdit set as the default editor, when I right click on a php file and do Open With, it still shows “PHP Editor” selected (phpopenwith.png). Other editor plug-ins do not have this behavior (try it with JDT and a Java file). I have a breakpoint set in the SlickEdit editor (phpbp.png), and when I launch my website debug the breakpoint is hit, but a PDT editor is popped open, instead of going to the already open SlickEdit editor (phpeditor.png). Also it seems confused…note that it has an SE icon at the top, but it’s clearly the PDT editor (?). Please let me know if I can be of any assistance in tracking this down. PDT is a fantastic project and I think improved integration with SlickEdit will help expand both our user bases. - Ryan ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Re: EPP and PDT @EclipseCon
Hi Nick, Can you update this script for CVS username e-mail address (alon - michael, apeled - mspector), since I don't have permissions? IIUC, if this script runs automatically, can wrong CVS user be the reason for the non-updated versions? Thanks, Michael On Fri, Mar 20, 2009 at 4:52 PM, Nick Boldt nickbo...@gmail.com wrote: === Tags, mapfiles, and qualifiers === .HEAD happens when you put HEAD in your map file. If you build from a tag, you get the tag id (eg., v20090320-0800). You can also override all those tags with forceContextQualifier, but that means ALL plugins and features will be built with that override value, rather than their mixed (real) values from the map file. http://wiki.eclipse.org/Modeling_Project_Releng/Plugin_And_Feature_Files#Qualifiers_.281.0.0.qualifier.29 And, if you want unchanging features to reflect the fact that their *contained features* and *contained plugins* change by appending a hashed suffix, you can add generateFeatureVersionSuffix=true to all build.properties files where you want this to happen (eg., php.sdk and php features). To automatically replace HEAD in the map with a generated tag value, wait for the next crontab run (Thursdays at 9:30am Eastern time / GMT-4), or run this script yourself on modeling.eclipse.org: /home/www-data/modeling-releng-common/tools/org.eclipse.releng.tools.tagandrelease/update_tags.sh /home/www-data/modeling-releng-common/tools/org.eclipse.releng.tools.tagandrelease/pdt.HEAD.options.txt -debug 2 === Galileo contribution file pdt.build === As to the automated creation of pdt.build (the contribution file for Galileo), simply checking the box on the promote page will do that for you... IF the user that's running the build is in the callisto-dev group on dev.eclipse.org. Assuming the build runs with Michael's id, that step should work automatically. You can also perform that step on a previously-promoted build via the commandline using the `-coordsiteonly galileo` flag, passed to /home/www-data/build/modeling/scripts/promoteToEclipse.sh along with the usual flags for -sub, -buildID, -branch, etc. N Michael Spector wrote: No, this file should be committed automatically upon milestone build, as I understand. May be the checkbox must be checked as well. The problem is that PDT 2.1.0M6 has wrong versions in its package as well: 2.1.0.HEAD. Best regards, Michael *From:* Roy Ganor *Sent:* Friday, March 20, 2009 11:51 AM *To:* Michael Spector *Cc:* Markus Knauer; Nick Boldt *Subject:* RE: EPP and PDT @EclipseCon Hi Michael, Should **we** update this file manually after we build each milestone of Eclipse PDT? Or this can be done automatically as part of the new build system? I noticed that in the promote process there is a checkbox mentioning that we can notify the Galileo build system about this release… (adding Nick to this conversation, maybe he can shed the light) - Roy *From:* Michael Spector *Sent:* Friday, March 20, 2009 11:40 AM *To:* Roy Ganor; 'Markus Knauer' *Subject:* RE: EPP and PDT @EclipseCon Roy, The version of PDT feature that appears in the pdt.build file is wrong: ?xml version=1.0 encoding=ASCII? build:Contribution xmi:version=2.0 xmlns:xmi=http://www.omg.org/XMI; xmlns:build=http://www.eclipse.org/amalgam/2008/build; label=PDT contacts name=PDT Build Team email=mich...@zend.com/ contacts name=PDT Build Team email=r...@zend.com/ features id=org.eclipse.php.sdk version=2.1.0.HEAD repo=//@repositories.0 /features repositories location=http://download.eclipse.org/tools/pdt/updates/milestones/; label=PDT milestones/ /build:Contribution I guess this is the reason why PDT is not gathered by the Galileo build magic? Best regards, Michael *From:* Roy Ganor *Sent:* Friday, March 20, 2009 11:25 AM *To:* Michael Spector; Markus Knauer *Subject:* RE: EPP and PDT @EclipseCon We released PDT 2.1.0M6 today, so there should be no problems providing it for Galileo M6 build. Michael, can you please update about http://build.eclipse.org/galileo/staging/ ? Thanks, - Roy *From:* mkna...@eclipsesource.com [mailto:mkna...@eclipsesource.com] *On Behalf Of *Markus Knauer *Sent:* Friday, March 20, 2009 11:22 AM *To:* Roy Ganor *Subject:* Re: EPP and PDT @EclipseCon Hi Roy, just one question, but an important one: What is your Galileo Status? Will PHP be included in the Galileo M6 build (i.e. the Galileo staging repository: http://build.eclipse.org/galileo/staging/)? Haven't seen anything new here but that might be due to the fact that the Galileo build seems to be broken (Rich Gronback is working with other people on fixing this). Depending on this I will be able to setup an initial version this weekend and will *try* to make it available right
Re: [pdt-dev] Re: FW: [PROMOTE:FAILED:9] PDT HEAD Build 2.1.0 / N200903121440 promoted to download.eclipse.org [15:00]
Thanks! I looked at the different build log. On Fri, Mar 13, 2009 at 10:49 PM, Nick Boldt nickbo...@gmail.com wrote: When in doubt, check the promote log, then the build log... code 9 usually means nothing to promote / build failed (missing zips). http://modeling.eclipse.org/pdt/downloads/drops/2.1.0/N200903121440/buildlog.txt BUILD FAILED /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.pdt.releng/buildAll.xml:258: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.pdt.releng/buildAll.xml:164: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.pdt.releng/build.xml:25: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090129/scripts/build.xml:24: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090129/scripts/build.xml:64: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.pdt.releng/builder/all/customTargets.xml:19: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/N200903121440/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.5.0.v20090129/scripts/genericTargets.xml:46: Missing feature org.eclipse.php_feature. It does not appear in the map file nor in the base location. The next build, however, seems OK to promote: http://modeling.eclipse.org/pdt/downloads/?showAll=1hlbuild=I200903131501sortBy=dateproject=#I200903131501 http://modeling.eclipse.org/pdt/downloads/drops/2.1.0/I200903131501/directory.txt (contains new feature ids) Nick Michael Spector wrote: Hi Nick, Do you know where this comes from? I guess promote fails because of latest feature ID changes? Thanks! -Original Message- From: PDT Build Team [mailto:nickbo...@gmail.com] Sent: Friday, March 13, 2009 9:01 PM To: Alon Peled; nickboldt+bu...@gmail.com; Michael Spector; Roy Ganor Subject: [PROMOTE:FAILED:9] PDT HEAD Build 2.1.0 / N200903121440 promoted to download.eclipse.org [15:00] Importance: High PROMOTE:FAILED:9 -- Nick Boldt :: http://wiki.eclipse.org/User:Nickb Release Engineer :: Eclipse Modeling Dash Athena ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] PDT features IDs changes
Hi All, PDT features IDs have been changed in CVS: 1. org.eclipse.php_feature - org.eclipse.php 2. org.eclipse.php.sdk_feature - org.eclipse.php.sdk 3. org.eclipse.php.test_feature - org.eclipse.php.test This was done, first of all, in order to adhere Eclipse standards. Another reason was - fixing this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=238960#c34 -- Best regards, Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Integration build of PDT has failed
Hi Nick, Do you understand what's happened while building an integration of PDT? http://modeling.eclipse.org/pdt/downloads/drops/2.1.0/I200903090418/buildlog.txt I see very strange error there: BUILD FAILED /home/www-data/build/pdt/downloads/drops/2.1.0/I200903090418/org.eclipse.pdt.releng/buildAll.xml:238: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/I200903090418/org.eclipse.pdt.releng/buildAll.xml:174: The following error occurred while executing this line: /home/www-data/build/pdt/downloads/drops/2.1.0/I200903090418/org.eclipse.modeling.common.releng/scripts/buildAllHelper.xml:48: Error while expanding /home/www-data/build/pdt/downloads/drops/2.1.0/I200903090418/eclipse/I200903090418/pdt-Master-I200903090418.zip java.io.FileNotFoundException: /home/www-data/build/pdt/downloads/drops/2.1.0/I200903090418/eclipse/I200903090418/pdt-Master-I200903090418.zip (No such file or directory) Thanks! Best regards, - Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] Can someone fix build dependencies regex in www/pdt/build/_common.php?
Hi All, Who has the permissions to fix this file? Can someone fix it to include relevant dependencies (including DTP 1.7) ? Best regards, Michael. ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
[pdt-dev] +1 for Silviya Tancheva
+1 Sylvia provides a huge contribution to the project. I\'ll be happy to see her on our board! Voting summary: http://portal.eclipse.org/ ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Re: Code assist auto completion
Hi, 2009/1/10 Jacek Kobus kobus.ja...@gmail.com: Michael, I know how it works, and I know that pdt dev team needs to know what to fix. Thats obvious. I was testing eclipse pdt for a couple days and it seems, that problem occurs randomly. It's not possible to point directly, where that bug is. I think thats the reason why thiswasnt fixed since 1.x relases. I'm not asking to point where the bug is - I just want the bug documented well with specific case, like: 1. Open the following code. 2. Stay in file XXX at line: YYY 3. Press CTRL+space - no code assist for ZZZ. Am I asking too much? :) BTW, screencast can help also, like in: https://bugs.eclipse.org/bugs/show_bug.cgi?id=260557 -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Code assist auto completion
I would like to ask everyone who encounters any bugs in CA to report them via: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT Auto-activation does not work in Eclipse out of the box! There are activation triggers, like '' which invokes code assist on object call, for example: $this- Auto-activation can be added using a trick. If this feature is very important to you - please report a bug, and start voting.. Best regards, 2009/1/9 Silver Zachara silver.zach...@gmail.com: Jacek Kobus napsal(a): Yup, but you have to agree, that it's the most important one. absolutly! Because this part in bugzilla: I think and I suggest, that all PDT team should concentrate all power to the code assist, in order to it worked properly! because i must type 50-70% code type manualy, i'm willing provide my own project, where whole nightmare with code assist is. ;);) -- --- --== Silver Zachara ==-- - pgp - http://radeonvmod.ic.cz/keys/silver.zach...@gmail.com.asc - ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Code assist auto completion
How do you imagine yourself fixing this bug: code assist doesn't work in 60% of cases? What cases? Can you introduce some examples? Please re-open the bug, if you have something to add. 2009/1/9 Silver Zachara silver.zach...@gmail.com: Michael Spector napsal(a): I would like to ask everyone who encounters any bugs in CA to report them via: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT Auto-activation does not work in Eclipse out of the box! There are activation triggers, like '' which invokes code assist on object call, for example: $this- Auto-activation can be added using a trick. If this feature is very important to you - please report a bug, and start voting.. I don't talk about autotrigger but about, that ca doesn't work, in new project work good, but I have project where code assist work in 60-70%, in many cases it doesn't work and I want to talk, that this should be primary task, repeair ca, because i must 40% of my code write manually I have created task in bugzilla: id of bug is 260557 -- --- --== Silver Zachara ==-- - pgp - http://radeonvmod.ic.cz/keys/silver.zach...@gmail.com.asc - ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Resource is out of sync with the file system
This problem is not related to PDT. This usually happens when some file was modified externally. Once you refresh your files in Eclipse, and make sure that they are not modified from outside of Eclipse you'll be OK. 2009/1/6 James Dempster letss...@gmail.com: Hi All, I've just upgraded to PDT 2.0 (also tested with 2.1 beta) found a problem when files becomes out of sync and you get the message Resource is out of sync with the file system: 'filename'. Press 'F5' or select File Refresh to refresh the file. Press F5 or selecting File Refresh doesn't fix it. I have to close the file and reopen it. Am I doing something wrong it seemed to work fine in PDT 1 Thanks, /James ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] __construct and overrides arrow
Hi, Can you report a bug? Thanks! 2009/1/6 James Dempster letss...@gmail.com: Hi All, Love the new inheritance arrow in the annotations bar. I've noticed it doesn't work on the __construct method. Has anyone else noticed this? Thanks, /James ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Using ModelQueryExtension
I suggest you to ask Webtools guys. You can find them either in their newsgroups or in mailing list (wtp-dev) 2008/11/26 [EMAIL PROTECTED]: Thanks for the reply! That's how I've declared the extension, but I don't see any changes at all and my class is never called. This is my first Eclipse plugin, so if anyone could explain to me the mechanism that fires this code, that might help. Even in the JSP and XSD packages that use this code, I haven't been able to find the place where it is invoked (or where the listener is added). Thanks, Jim Sent from my Verizon Wireless BlackBerry -Original Message- From: Michael Spector [EMAIL PROTECTED] Date: Wed, 26 Nov 2008 10:16:57 To: PDT Developerspdt-dev@eclipse.org Subject: Re: [pdt-dev] Using ModelQueryExtension Hi, The extension must be declared as follows in your plugin.xml: extension point=org.eclipse.wst.xml.core.modelQueryExtensions modelQueryExtension class=org.fhtml.eclipse.editors.FhtmlModelQueryExtension contentType=org.eclipse.wst.html.core.htmlsource /modelQueryExtension /extension BTW, do you see extended elements in regular HTML editor? On Wed, Nov 26, 2008 at 8:02 AM, Jim Kremens [EMAIL PROTECTED] wrote: Hi all, I'm trying to extend PDT to support custom html tags and attributes. After some confusion, I've implemented the org.eclipse.wst.xml.core.modelQueryExtensions extension point and built a class that extends ModelQueryExtension (thanks for the tip Roy!): package org.fhtml.eclipse.editors; import java.util.ArrayList; import java.util.List; import org.eclipse.wst.xml.core.internal.contentmodel.modelquery.extension.ModelQueryExtension; import org.w3c.dom.Element; import org.w3c.dom.Node; public class FhtmlModelQueryExtension extends ModelQueryExtension { public FhtmlModelQueryExtension() { System.out.print(NEVER CALLED\n); } public String[] getAttributeValues(Element e, String namespace, String name) { //See XSDModelQueryExtension for an example implementation of this... } } But my class is never invoked. I've looked at other implementations of ModelQuery, like in the XSD and JSP packages, and unfortunately, I can't discern when these extensions are actually called. Has anyone had success with this extension point? Also, if anyone knows of any real documentation on the topic, that would be great as well. As far as I can tell, there's almost nothing, as this is meant, for now, to be an internal extension point. Thanks, Jim Kremens ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Refactoring in PDT
Hi, No, currently there's no refactoring support in PDT. Thanks. 2008/9/7 Silver Zachara [EMAIL PROTECTED] Hi, exist any refactor plugin for PDT ? Zend Studio for Eclipse is supporting Refactoring for PHP, but i can't find plugin which offers this feature. Thank for reaction. -- --- --== Silver Zachara ==-- - pgp - http://radeonvmod.ic.cz/keys/[EMAIL PROTECTED] - ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Is PDT 2.0 already usable ?
Hi, You can go over these bugs, and see whether there's some critical issue for you: https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advancedshort_desc_type=allwordssubstrshort_desc=classification=Toolsproduct=PDTversion=2.0.0version=2.0.1version=2.0.2version=unspecifiedlong_desc_type=allwordssubstrlong_desc=bug_file_loc_type=allwordssubstrbug_file_loc=status_whiteboard_type=allwordssubstrstatus_whiteboard=keywords_type=allwordskeywords=bug_status=NEWbug_status=ASSIGNEDbug_status=REOPENEDemailtype1=substringemail1=emailtype2=substringemail2=bugidtype=includebug_id=votes=chfieldfrom=chfieldto=Nowchfieldvalue=cmdtype=doitorder=Reuse+same+sort+as+last+timefield0-0-0=nooptype0-0-0=noopvalue0-0-0= Thanks! 2008/8/28 Silver Zachara [EMAIL PROTECTED] Hi, I want to ask developers if PDT 2.0 is usable and if I can substitute it instead PDT 1.3 and Eclipse Europa. This I mean if there arn't any bugs which could hinder me in developing or programming. Or I have to wait up to stable release. Thank for reaction. -- --- --== Silver Zachara ==-- - pgp - http://radeonvmod.ic.cz/keys/[EMAIL PROTECTED] - ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PDT 2.0 and use of encodings for remote debug
Hi, 2008/8/6 Dave Kelsey [EMAIL PROTECTED] Hi Michael, it looks like transfer encoding applies to things like stack frames as well for example. I see transfer encoding is the encoding to use when converting the binary wire data into java.lang.String so that is a fixed encoding that I would assume is agreed between the zend debugger and PDT when a debug session starts, and configurable by the user. The problem I see is that a PHP String can contain 2 types of data 1. Binary data - This cannot be converted to a java.lang.String so should have a useful representation within the eclipse variable view such as a byte presentation. 2. Character data = this should be converted to a java.lang.String based on the encoding this data is in. The question is what encoding is it in ? the php script knows and one solution could be for the user to set the transfer encoding to the same as this in order to view it, but the transfer encoding is also used for other things so I am not sure that this encoding setting should be used for this purpose. Also the transfer encoding has a limited set of encodings allowed and what if the character data is in a Japanese code for example. That's true (Eclipse limitation, I think), but the combo-box is editable and one can enter in any encoding he likes. In the case of 1, a PHP string could have some child variables that represent the length and a byte array so that you can view the data as a byte array In the case of 2, there needs to be some sort of default for PHP String encodings and maybe the possibility of being able to override that default within the variables view in the small case where a php script may have multiple strings containing character data in different encodings. If I understand correctly, do you propose configuration of transfer encoding per file or even per variable? Won't it make the configuration more difficult to user? I am currently looking to see how to address these problems for XDebug and think that the problem must also be common for the zend debugger as well and wondered if anything was being done in this area ? I don't think I will get around to solving 2, but I hope to solve 1 at least. Dave Kelsey [EMAIL PROTECTED] wrote on 06/08/2008 13:17:01: Hi, Output and Transfer encodings are only applied to variable and output views. Besides that debug process should work as usual. Is there any specific problem you see with variables containing binary data? Thanks! 2008/8/6 Dave Kelsey [EMAIL PROTECTED] I am looking at the various areas where encoding applies and the current configurable options available in PDT 2.0 The output encoding looks like it only applies to output from the php script which will be displayed in the Debug and Browser output views. The transfer encoding applies to the binary data that flows over the wire (so must be in sync with the encoding used by the debug engine when sending information such as stack frame names, variable names etc). It also looks like the transfer encoding is used to convert php string information to Java.lang.String for display in the variables display. Is this correct ? One of the issues I have is that in php strings (ignoring php6 at present) can contain binary or character data. The character data and the encoding that correctly represents that data is known to the php program and could very well be different to the transfer encoding. A Common problem I see for both Zend and XDebug debug environments is a user may want to have a binary representation of a php string in the debugger or may want to display the string based on a user selected encoding. Is anyone looking at this issue for PDT 2.0 ? I haven't had the opportunity to investigate it but it seems to me that the solution should be common for any installed debugger. regards Dave Kelsey Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- * * *Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU * ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org
Re: [pdt-dev] xmlunit ip issue
https://dev.eclipse.org/ipzilla/show_bug.cgi?id=2504 2008/7/17 Guy Gurfinkel [EMAIL PROTECTED]: Under which license it is provided? Guy. -- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Roy Ganor *Sent:* Thursday, July 17, 2008 5:45 PM *To:* PDT Developers *Subject:* [pdt-dev] xmlunit ip issue Xmlunit code was removed as the IP is not completed yet. Probably a few unit tests will fail tonight. If you have any important one please tell me and we will try to convert it to another check. - Roy ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] PDT DLTK newer version
Hi Seva, Since we are still working with integration release from April 1'st, and our nightly builds are based on this integration release, adaptation code for DLTK changes that you see in the 1.0M7a has not been committed yet. Tomorrow I'll commit all the changes, and we will switch to the 1.0M7a milestone. Thanks! On 5/17/08, Seva Lapsha [EMAIL PROTECTED] wrote: Dear friends, I've seen there is a new DLTK stable build 1.0M7a available since May 12th. Updating to this version causes several compilation errors in PDT because of several minor changes in DLTK. When do you plan to switch to this version and fix the issues? Thanks, Seva Lapsha ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev
Re: [pdt-dev] Xubuntu - PDT all-in-one installation/running question
What kind of JRE are you using? Thanks! On 2/22/08, Bill Bolte [EMAIL PROTECTED] wrote: OS: Xubuntu 7.10 Please note: only been using Xubuntu for not quite a month, first Linux OS downloaded the PDT all-in-one package off the the web, updated the JVM per the Eclipse page instructions. Unpacked the Eclipse and started it up. However, I don't see the PDT tools under perspectives, not there under other. No New PHP Project. When I go to Software Updates, it shows it as there to be updated. I'm running this on my XP computer fine, just can't seem to get it going in Xubuntu. I've been messing around with this for a couple of days and not sure what to even look for. -- Bill ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev -- Michael ___ pdt-dev mailing list pdt-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/pdt-dev