1. Writing Eclipse plug-ins
with PHP
Project proposal
William Candillon {wcandillon@elv.telecom-lille1.eu}
2. Why PHP ?
• PDT & DLTK define more than 30
extension points
• PHP Developpers need to extend and
specialize their IDE
• Without getting close to Java
• In a dynamic manner
4. Hello World
/**
*
* @Implement({'org.eclipse.ui.IWorkbenchWindowActionDelegate'})
*/
class HelloWorld
{
private $window;
public function run($action){
$messageDialog = Java('org.eclipse.jface.dialogs.MessageDialog');
$messageDialog->openInformation($this->window->getShell(),
'TestPHPPlugin',
'Hello, Eclipse world');
}
public function init($window){
$this->window = $window;
}
public function dispose(){}
public function selectionChanged($action, $selection){}
}
5. Timeline
• PHP/Java bridge (1 week)
• Bundles and extension registry (2 weeks)
• Basic PDE support (2 weeks)
• Extension point support (2 weeks)
• Dependencies detection (2 weeks)
• Screencast, documention, wrapping up
6. Big picture
• Allowing PHP developers to extend and
specialize PHP environnement with PHP
itself!
• Integrating PHP libraries into Eclipse
• Scripting developement workflows
• Be a showcase for other languages support
• Having fun
7. About me
• 22 years-old engineering student from
France, graduates in 2010
• Working with PDT since 2007
• Extending PHP environment:
http://afup.org/pages/forumphp2008/sessions.php#105
• My resume: http://wcandillon.netcv.org