Enable searching //TODO tags in *.module extension file - eclipse

I wanted to use // TODO tags in drupal file "*.module".
I've activate the searching for task tag(content types are:
"css,html,DTD,XML").
The *.module extension is associate with the drupal module extension.
I've check the "configure contents" of the search filtering from "Task view".
Tags for php comments are; Fixme, #todo, TODO(Default).
There's something missing??

You can use Drupal plug-in for Eclipse IDE by XTND.US. Update site: http://xtnd.us/downloads/eclipse
With this plugin installed and working, you should see TODO highlighted in your code and *.module files should be opened as php. All todo should appear in Tasks Eclipse view.

Related

Third party plugin not override in joomla

I have created a search plug-in in joomla that is "my-plug-in". When i tried to override this plug-in in joomla templates its not working.If i try to override any existing plug-in joomla its working. I have checked below link as well. This is working
This link
How i override my plug-in in joomla template.
I have added my plug-in below place.
plugins/search/my-plug-in
to
templates/{TEMPLATENAME}/html/plg_search_my-plug-in
If you have thoroughly checked the link that you have given you will find a line "However you can only do it if the plugin is ready to allow overrides. "
and
Joomla provides a mechanism to override a plugin but this feature is not supported by all the plugins. Right now the only plugin in Joomla 3.x core that allow overrides is the Pagenavigation Content plugin that shows previous/next article links in article view of content component. There may be other plugins from third party developers allowing it and more core plugins will be overridable in the future.
Do you have a tmpl folder inside your plugin as quoted here "You will know when a plugin is overridable because has a /tmpl/ folder in it. "
Also have you used JPluginHelper::getLayoutPath(). These are the requirements that need to be completed before you override layouts.
Check this code in pagenavigation plugin
// Output.
if ($row->prev || $row->next)
{
// Get the path for the layout file
$path = JPluginHelper::getLayoutPath('content', 'pagenavigation');
// Render the pagenav
ob_start();
include $path;
$row->pagination = ob_get_clean();
$row->paginationposition = $this->params->get('position', 1);
// This will default to the 1.5 and 1.6-1.7 behavior.
$row->paginationrelative = $this->params->get('relative', 0);
}
They have used JPluginHelper::getLayoutPath(); and you have to use
$path = JPluginHelper::getLayoutPath('search', 'my-plug-in');
You can check the pagenavigation plugin thoroughly to get a good idea.

notepad++ for ASP auto complete

Do somebody know that I want to get a plugin just like "auto complete" on Notepad++ for ASP,
I tried to add a asp.xml file in ./APIs and it's working, but how can I use it just like when I type "re" than I can choose "response", then I type ".", it will show some keywords just like "write" that I don't need to type "wr"?
as I know I can use it on Dreamweaver but I cannot found the same plugin on notepad++
Try WebEdit plugin and add custom shortcuts in the config file, like:
wr=write
re=response
See more here

Netbeans (7.0) HTML 'dynamic' code templates

I know how to define static, standard code templates in NetBeans and I am wondering whether it's possible to define more customized and dynamic templates.
For example, when i type div.className to generate me a HTML <div> element with the class I specify.
Start netbeans and go-to: Tools->Plugins menu,Available Plugins tab, then search for Zen Coding hit install.
type: div.className and hit: ctrl+alt+n to get: <div class="className">
You will notice the new Edit->Zen Coding menu.
Installation & usage: https://github.com/lorenzos/ZenCodingNetBeansPlugin#readme
Read more about Zen Coding at: http://code.google.com/p/zen-coding/

Listener on open file in Eclipse

I am currently working on a Eclipse Plugin, where I need to make an action, when a person opens a file with certain properties. However I'm not sure on how to set a listener, I have been looking into the IWorkspace and IResource API, but I can't find the simple API call saying "AddListenerToOnOpenFile".
The file is expected to be opened in the package explorer view.
Use the answer supplied by #MarttiKäärik to find out when editors are open. Then you can use the IEditorInput to see if it is an IResource you care about.
if (part instanceof IEditorPart) {
IEditorPart editor = (IEditorPart) part;
IResource resource = editor.getEditorInput().getAdapter(IResource.class);
// ...
}
Question already answered, so only to make it a bit more complete...
You don't necessarily have to implement a view or action (as described in the question linked to by Martti Käärik in a comment) to get a window for your listener. Call to PlatformUI.getWorkbench().get...() can be used as well. See the older, probably duplicate, question called just Eclipse Plugin.
BTW Eclipse Wiki FAQ page contains a good description of the ways how to obtain the current workbench window and possible "gotchas".
Moreover, you can even listen for newly opened windows if there is a need:
PlatformUI.getWorkbench().addWindowListener(listener);

Product Publisher Application (org.eclipse.equinox.p2.publisher.ProductPublisher)

I have an eclipse bundle with an application and product configuration file (myproduct.product). When I export the product I get executable that I can run just fine.
But how do I export this .product file from a java application? I have looked at the example at the bottom of this page:
http://wiki.eclipse.org/Equinox/p2/Publisher
but I don't see how its possible to specify the .product file as input. There are also some ant-scripts on the above link but it could be nice to keep the publish in pure java. Any ideas?
I think you probably miss something when you read the twiki page. It already has given a sample to demonstrate how to publish a product in command line. Product Publisher
Note: the product publisher doesn't publish the features/plug-ins that constitute the product, so you have to call FeatureBundle publisher to export features and plug-ins.