Drupal Development Tool For Netbeans 7

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Jamie Holly's picture

I have just released a module for Netbeans to aid in Drupal Development. The module is available on Github (full source included).

The module is just starting out as I re-teach myself Java. I have put together documentation on it here. I do have future features planned on the module as I get the time, but right now it really does help with development. You can also customize the module through a custom template system.

If anyone is interested in helping out with the development of the module, please let me know. I think it would be great to have a tool the Drupal community can help build to really streamline our development flow.

Comments

Thank you!

mjanouch's picture

Thank you!

Good Stuff

antidumbdown's picture

Thank you, this should come in handy.

i like it

discipolo's picture

i only wish it could do drush make build files with profiles as well

I've been toying with that

Jamie Holly's picture

I've been toying with that idea or going with a total custom approach where Java will parse the info file for the needed contrib + 3rd party in profile files and download everything and extract it to the proper place then fire up the regular Drupal install in the browser. The benefit over this method is mainly for Windows. Extraction can occur with regular Java InputStream. Also Netbeans 7.1 has built in Git support, so that will make it even easier (make the feature dependent upon NB 7.1 or greater. 7.1 will be released in the next few weeks per NetBeans).

The overall idea is:

  • Create new Drupal project (extends PHP project).
  • Select core version.
  • Select a profile (autocomplete box pulled from Drupal.org). - OR - Select the contrib modules and theme(s) you want (again - autocomplete box).
  • Finish creating new project. Netbeans then downloads everything and extracts it to the proper place.

The other nice thing is that this will help with another feature I want - auto download and extraction of modules and themes. I just need to polish up my Java skills and get the time to work everything out on it.

Oh and I should add that anyone who wants to help with this is more than welcome to join in. I got a couple new features going in hopefully in a couple of weeks. I'm working on a function/topic lookup for api.drupal.org. I'm also trying to figure out the NB API more so that versions can be set in the project settings making everything easier to work on.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

1.5-dev Branch Available

Jamie Holly's picture

I just pushed out the 1.5-dev branch. I've got the changes going in outlined here:

http://www.hollyit.net/blog/netbeans-drupal-devel-tool-version-15-work-s...

You can give it a test drive here:

https://github.com/HollyIT/NBDrupalDevel/tree/1.5-dev

I'm waiting on hearing back from the NBDev list on one little problem so I can finish up the final 1.5 release. I'm hoping to have it out in the next few weeks and start working on Drush integration after that.

I've only tested this in 7.1-beta, so not sure if it will work in 7.0, since I am having to extend the PHP project now for some stuff to work.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Just a quick update

Jamie Holly's picture

I finally figured out how to detect when the active editor document changes. It took me a while to figure this one out, since the NB API documentation isn't the greatest.

I had to take a break from that part to give my head a rest and never really got any help from the NB dev list. Instead I went to tearing in the source code (which is huge for Netbeans). Instead I started doing more work on the actual Drupal component that will replace the toolbar button. Here's an early image of it:

http://yfrog.com/j2mxqexj

I'm starting to work some Drush functionality into it. There are certain limitations to doing this, like commands have to be able to be executed with no user input (I'm sure there's a way around this, but my Java knowledge is still pretty limited and I don't want to risk locking threads). Also there's no real way for Netbeans to know the internal details of a Drupal installation, short of giving NB access to the database. Of course that may all change in Drupal 8 with the implementation of file based configurations. Then a whole new world will open :D

I'm hoping to push these new changes out to GitHub in the next few days.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

I just released the 1.5

Jamie Holly's picture

I just released the 1.5 version. It works in 7.1-beta+ only due to editor and PHPModule dependencies, so I'm keeping the master at 1.0 until NB 7.1-final is released. You can grab it here:

https://github.com/HollyIT/NBDrupalDevel/tree/1.5

I also through together a screencast of the changes and what nots here:

http://www.dailymotion.com/video/xlvgto_drupal-development-tool-for-netb...


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

texas-bronius's picture

Hey, thanks for the hard work and time you put into this. I'm excited to try it out. First, however, I'm inspired to comment on your screencast and make it more prominent at d.o:
http://drupal.org/node/1764074

Cheers
-Bronius

Jamie- In the screencast you

texas-bronius's picture

Jamie- In the screencast you make mention of the project's issue queue: Can you share a link to where that might be? Something I wish I had in NetBeans is cmd-/ctrl-click navigation of a function name for page and access callbacks. Ex:

<?php
 
...
 
'page callback' => 'mymodule_thecallback',
  ...
function
mymodule_thecallback() {
  ...
}
?>

In the example above, mymodule_thecallback would be hyperlinked to function mymodule_thecallback() the way normal php functions already are.

Thanks
-Bronius

Looks great.

datagroove_'s picture

Thanks!

Amazing!!

chiddy249's picture

Thanks very much!!

Just a quick update. I pushed

Jamie Holly's picture

Just a quick update. I pushed out 1.5.1 tonight. No real changes, but it now works on NB 7.0+. Basically I dropped the PhpModule dependency, since that doesn't really have a public API and caused the version limitations. I finally dug deep enough into Netbeans source code (and got a nice headache!) to figure out how to do it with Netbeans lookup system. You can grab the NBM here:

https://github.com/downloads/HollyIT/NBDrupalDevel/NBDrupalDevelTool.nbm

It's also now the master version of the project since the API stuff is playing nice now.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Status of 2.0 release

Jamie Holly's picture

The 2.0 release is going to include Drush integration. I attempted to do a full GUI, but ended up scrapping that right now. Instead it's going to be a window with a command entry textfield (which has history per project) and an output window. I've got this part done already and it's working great. You can even abort a Drush command.

I'm also going to implement a feature where you can find the implementation of hooks. I'm thinking of making this a context menu of the API tree window. I tried using the fn-hook that the Devel module implements, but since that relies upon user input it isn't going to work. What I have decided to do is create a nbdevel module for Drupal you can install in your installation that will supply special commands to work with Netbeans. For the hooks it will output a special output of hook implementations, listing file path and line. This will then open a search results window in Netbeans and give linked output to the location of the file, where you can click it and go to that line (like the file search output).

Since I have to go this custom module route, I'll be able to implement other things like theme processing function lookup.

I'm going to try and integrate the tool with Drush a lot more. One of the problems I was facing before was NB not knowing things like which modules are actually installed. Integrating with Drush, I will be able to overcome that. That also means things like downloading contrib from d.o. gets a lot easier, since I can implement it through Drush instead of reinventing the wheel in Java.

That's where everything stands right now. I'm hoping to at least get an alpha version out within the next week, depending on my regular Drupal workload.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

2.0-bleeding Out

Jamie Holly's picture

I've got the initial commit in of Drush support. Currently this works on Windows only (will have Mac and Linux support in soon). The branch is here:

https://github.com/HollyIT/NBDrupalDevel/tree/dev

Make sure you have Drush properly installed on your system and you set the path to Drush in NB's options window. Check the Drush output window for signs of any errors. I've been testing it out with certain things like cache clearing and module enable/disable and it is working fine (there is a warning when Drush first fires up about Drush not being able to open a file, but that seems to be a false warning. It might be the fact that this is running inside a command processor in Java).

If you discover any problems, please file a ticket on GitHub and include your Drush and Drupal versions as well as a copy of the Drush output window.

Thanks!

EDIT: Here's a blog post with a little more detail

Here's a blog post going into a little more detail on the changes:

http://www.hollyit.net/blog/netbeans-drupal-devel-tool-version-20-bleedi...


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Curious

discipolo's picture

i am glad to hear there wil be a *nix version. looking forward to that!

I'm just waiting on a new

Jamie Holly's picture

I'm just waiting on a new processor to come in for my CentOS box so I can troubleshoot on that. It should be really easy to get the support in there, but Murphy's Law hit and last Friday the processor decided to die on me. Hopefully I should have it tomorrow and can get the Nix support worked in tomorrow night.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Drush Nix/Mac Support

Jamie Holly's picture

I've got the first run at Drush support for *nix and MAC going in. Whoever thought running system commands from Java would be easier on Windows? LOL

https://github.com/HollyIT/NBDrupalDevel/tree/dev


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

I have the answer

jean.cedric.t's picture

But I'm only allowed to write it Friday ;D

The answer is…

jean.cedric.t's picture

Windows is far more permissive than any other system…
Remember the "I love you" "worm" ?

In fact it was a small piece of VBscript…

If you still have a XP sp2 around, try writing "%0|%0" in a .bat file… Launch it… … PROFIT your "very own" forkbomb that we have to wait SP3 to be corrected.

Seriously I don't understand how someone can admit Windows as a Work env.

Actually the problem was an

Jamie Holly's picture

Actually the problem was an extra space in the command line between args going to drush. It's something weird with how ProcessBuilder builds the command in Java. You can have an extra space(s) going straight from the command line, but let ProcessBuilder assemble the command line and pass it to Drush and then Drush actually gives "command not found" errors. What's really weird is that with the extra space in there, it ran fine on my Mac too, but CentOS it started giving errors. I even made sure I had the same builds of JDK on all three systems. It was one of those things that took forever to find out because it's such an obscure problems. The fix was just a quick regex to get rid of multiple spaces.

Permissions never was really a concern with getting Drush to work from inside Netbeans, considering it will run under the users permissions. If you can open a terminal and execute Drush, then Netbeans/Java can do the same. It's just that weird behavior in ProcessBuilder, but I wanted to use that so that Drush can execute on its own thread and not lock up the IDE while executing.

Oh and there are some of us pretty much stuck on Windows for dev. Doing web development a developer is pretty much liberated to use whatever OS they want, but when you also do a lot of desktop corporate stuff then you pretty much get stuck on what the corporate world uses, especially the medical industry. I really wish they would change, but that's a pipe dream given the costs of changing everything over. Still, I really don't mind doing my dev in Windows. Even when I do funky web stuff like encoding servers, it gives me a chance to make sure it will work in Windows (Apache) and *nix.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Sorry but…

jean.cedric.t's picture

The reason I write that today is: TrollFriday…
Read my previous post as a touch of humor for the last day of the week, like anybody here, I'm aware of all this and thank you again for your user experience concerns while developping what will be the unavoidable choice for Drupal Devs that love NB.

I kind of figured you were.

Jamie Holly's picture

I kind of figured you were. It's funny though the number of people out there that can't believe it when people actually develop on Windows. My general comeback is that it proves they are really good at what they do, since they figured out all the hoops to jump through to get things running on Windows, especially when it comes to WAMP LOL!

I forgot to mention, when I pushed out the update with the Drupal location setting there was also an update for context menu options on the API tree (namely under the hooks category). I've got the initial work in there where you can right click on a hook and find out what modules implements that hook. It displays the output in the Drush window in the form of hyperlinks. Just click on the link and it will open that file and take you to that implementation. I want to clean the output up some yet and also figure out how to get NB to open the Drush window when someone does that feature (if it isn't opened already).


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Pretty good, but…

jean.cedric.t's picture

Because my work is versioned and shared with colleagues I am not allowed to let the netbeans metadata in the same folder as the project. Alas the plugin pop me out this error: "The directory /home/user/NetBeansProjects/project_name does not [ERROR] contain a valid Drupal installation". Pretty simple to understand the misfunction, my drupal is in another folder like "/home/user/sites/project_name/www". Could you, please, at least, add to the Drupal category from the project properties a textfield to set the drupal directory for this project ?

There's now an option to set

Jamie Holly's picture

There's now an option to set the folder Drupal is in on the project properties (if it isn't in the root or you have the meta somewhere else). I'm going to try and dig in deeper and see if I can find a better way of doing this, but it should get you going for now.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

YOU ROCK !

jean.cedric.t's picture

I just tested it right now with a "cc all", it work ! Excellent ! No more switching between NB and Gnome Term !

Everything is not ok, but it's not your concern, just my Drush configuration.

Fantastic!

sheldonkreger's picture

Hi there,

I just opened a Drupal project in Netbeans and have your module successfully installed. I'm familiarizing myself with the tool, reading your documentation, watching the video, etc.

Here is a small issue: I do not see the Drupal drop icon in my toolbar - although that is how it is shown in the documentation. Instead, I went to

Window -> Drupal -> Drupal API

to bring up the Drupal 6 menu. There is no separate window that opens up from here.

Thanks for your great efforts. I manage a few simple Drupal sites and am just getting started in custom module development, theming, etc. I think this plugin will be a great tool for me. If you would like, I can continue to provide feedback as I use your software.

Again I want to say thanks, because it is very inspiring to see a skilled programmer like you do things like this. I really enjoyed the video and am really excited about what these tools will help me build!

Yeah the documentation is out

Jamie Holly's picture

Yeah the documentation is out of date. Right now the Drupal search bar is in that API window, though that is changing in 2.0 (hoping to push out the beta tonight or tomorrow), when the api.drupal.org search bar will go back up on the toolbar and the API Tree window will have a quick find bar for finding hooks and that.

I'm actually working right now on moving the documentation to the Netbeans help system. That will be going in 2.0 also (working on those as we speak). That should make it easier to keep documentation up to date depending on the version of the tool.

Hopefully with 2.0 there won't be anymore drastic changes to the UI. I believe I got everything more or less set to a point that it can be easily expanded upon with any future features.

Thanks for the kind words! Hopefully the next release will be even more useful!


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Beta Release

sheldonkreger's picture

I can install and use the beta release if you would like. I am new to real Drupal development (I've been doing pointy-clicky stuff for a few years now), so it might be good to have a novice like me go in and see what kinds of problems I can create for you ; )

Thanks for keeping us updated.

Version 2 Beta Is Out

Jamie Holly's picture

I just pushed out the version 2 beta tonight. The API Tree saw a lot of changes in this update. Also there is now actual help included with the module, both for hooks and for the plugin itself (under Netbeans Help). That's why the NBM more than doubled in size! You can read about all the changes here:

http://www.hollyit.net/blog/first-beta-release-netbeans-drupal-developme...

Anyone wanting to test it out is encouraged to. I would like to release the final of version 2 December 1st, so that I can take a break for the holidays. Here's the link to the NBM file:

https://github.com/downloads/HollyIT/NBDrupalDevel/NBDrupalDevelTool2bet...

Have at it and let me know of any problems!


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

I will be testing

sheldonkreger's picture

I'm in the process of setting up a local development environment in Ubuntu 10.10 right now. This is quite the process! But, as soon as I'm finished, I'll be using your module quite a bit. I'll install version 2 beta as soon as everything else is squared away.

Yeah that can be no fun at

Jamie Holly's picture

Yeah that can be no fun at all! True once you do it a couple of times, it becomes a lot easier. Same thing on Windows, first time I set up WAMP development was a nightmare. Now I got a recipe that works out quiet well and when I do the old OS reinstall, it is one of the quickest parts of getting everything going again.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Beta 2 And NB 7.0.1

Jamie Holly's picture

If you downloaded beta 2 and got an error that it couldn't be installed on NB 7.0.1, then grab the NBM again and it should install. There was a point release change in JavaHelp that made it not install. I just changed the API version for the library and it installs fine now. Sorry about that!


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Small Change With Potentially Big Benefits

Jamie Holly's picture

I just did a small change after finding the Netbeans CodeTemplateManager supports temporary templates. The templates in the tool now run through those also (don't worry, the old parameters still work). What this means is that templates like:

function hook_form_FORM_ID_alter(&$form, &$form_state, $form_id){

The FORM_ID will automatically be selected so you know to change it. You can see a list of Netbeans code template parameters here:

http://wiki.netbeans.org/Java_EditorUsersGuide#Reserved_parameter_and_hi...

Remember to use the ones marked with PHP support.

Quick Idea

I've been toying with the idea of creating a special site/page where people can share code snippets. It would be a simple form where you fill out the needed values and paste your code snippet in. It will then generate the appropriate XML file for that snippet. These can then be added into the tool using the extra library feature. Right now I'm using a couple for things like table dragging and creating new entities. What's everyone think about this? I believe it could become a valuable resource for Drupal developers to share some code snippets.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Great idea

sheldonkreger's picture

I was thinking about a code snippet library, too! I think that's a natural evolution for this project. I wish I could help you out with things like this, but for now I am focusing on Drupal skills. Today I will continue my battle with local development environment set up.

I think I'm going to work on

Jamie Holly's picture

I think I'm going to work on that over the weekend. Maybe just set up a special site for the tool. The beta version has already seen close to 100 downloads (going through GitHub API from where I replaced the file with updated versions), so it's quickly gaining popularity.

The snippet sharing should be really simply to put together, custom node type, taxonomy and view and a little bit of code to generate the XML file. I could see this growing down the road too, making it where people could create "packages", things like hooks and templating functions for contrib modules like Views, Ctools, etc.

What are you stuck on in your devel setup? I actually setup an Ubuntu 11.10 VM yesterday to test the tool on, meaning I installed a full AMP stack and Drupal + Drush on it. It went real smooth and took less than an hour. If I can help you out, let me know.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

AMP Stack

sheldonkreger's picture

I've tried a handful of walk-through style tutorials, only to run into some cryptic error messages part way into the process. This isn't usually a problem for me, but I really don't have any context as to what could be going on, because I don't really know what each component of the development environment is responsible for and how everything interacts. I can find documentation on each piece - Drush, Apache, Netbeans, etc. - but I really don't understand how they all interact to let me install a Drupal site here on my local machine.

Do you know of anywhere I can find some good info on how an AMP stack works? I think I could puzzle things out if I had a better idea of what my end goal is.

This might give you some

Jamie Holly's picture

This might give you some help:

http://groups.drupal.org/node/6266


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Beta Updated!

Jamie Holly's picture

Nothing real major in this. There was a couple of Linux/Mac bugs with Drush. I think I've got them all squashed now.

The only new addition is a reload button on the API Tree TopComponent. This will simple reload any changes you made in the template libraries. Only changes to names and the actual structure need a reload. If you only edit the code template, then you don't need to reload as those are loaded on each insertion.

SUPER COOL NEW TRICK

I got to admit I wasn't really that informed on the variables in Netbean's code template system. Yesterday, after creating a module for a client with a bunch of different forms and having to copy and paste to make my validate and submit handlers, I thought that there had to be an easier way. Sure enough there was using this tool! I created a Declare Form snippet to load into the tool through my own library. Here's the XML for it:

EDIT: The input filter doesn't like my XML, even with code or pre, so here's a gist of it:

https://gist.github.com/1360746

When you insert it, the first ${form_id} is selected. Type in your form_id and all occurences of ${form_id} (will display just as form_id when inserted into the editor) is automatically changed to what you type in.

I had a feeling there would be a lot more potential to this than I originally intended and I just found it out.

I'm still hoping to get a dedicated site up for the tool, complete with a Snippet sharing feature. I really want to get the time to work on it this weekend now that I found out more hidden power of these snippets. I think we could really develop a big library of stuff to help speed up coding down the road.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

I just registered to say

usrjim's picture

thank you, very useful.

Netbeans problem please help!

alexrayu's picture

Hello guys, I realize it's not precisely the place to ask this. But I have been developing for Drupal in Netbeans for a year now, and I just love the way how it prompts function names and variables names even for the functions that you yourself wrote in the project.

Recently however, I encountered a nasty thing, where the FTP support for netbeans died. It fails to read files in the remote server. I have tried same in Aptana and Eclipse, and they share this problem. Aptana a bit different, but still shares in it. I have searched a lot, and there is a Java 7 bug. Some also say it's the firewall problem. It is Java - specific, FileZilla does fine. I have played with Windows firewall, and then tested under Linux. I have downgraded to Java 6.x, in Windows and Linux. Nothing helps.

Have you encountered this problem? I read that for most people, either downgrading Java to 6.x or tweaking the firewall helped. Not for me. I also tried OpenJDK instead of Sun's Java.

Please suggest how to at least learn what is happening with my Java-based FTP. Not being able to use netbeans has ridden me of many a comfortable way of working. Would be glad if somebody could suggest a helpful diagnosis of the problem or a solution.

I haven't used FTP in ages,

Jamie Holly's picture

I haven't used FTP in ages, so I haven't seen the problem. If definitely has to be something in your Java though (Filezilla is written in c++, so you can't really compare to that). NetBeans and Eclipse/Aptana both use the org.apache.commons.net.ftp.FTPClient to handle their FTP stuff. Only things I can think to try are:

  • Totally disable the Windows firewall in case a rule isn't taking or something else is conflicting. That's very common in Windows Firewall.

  • Totally uninstall Java. Even delete the registry entry for 'HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment' and make sure it is set to the right path when you reinstall.

That's really all I can think of to try. If reinstalling Java doesn't work, then you might want to do it again and reinstall it by right clicking and doing that "as administrator" option to see if that helps.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Thanks for having a take on

alexrayu's picture

Thanks for having a take on it. I am using SSH that netbeans luckily also has now.

Version 2 - RC 1 Is Out

Jamie Holly's picture

I just pushed out the first release candidate for version 2 of the tool. Mostly bug fixes went in. The only change was that there is now a Drupal version drop down box on the wizards to create new modules and themes. I had to do this since the tool doesn't always know which version you are working in. It only does that by the last focused file in the editor. That means if you open a project and not a file then it doesn't know the version. I haven't figured out a way to get the active version from the project of the selected node yet and don't see anyway to in the Netbeans API. If the tool does know the version then it will select it automatically, so this will function more as a verification.

Also I am close to finishing up the site for the tool. I went a little more advanced with it then I wanted to, allowing people to share code templates without registering and even going back and editing them through email verification.

Everything is on target to release the final of version 2 next week and hopefully the site by then (at the latest). I got held up on a client project, so that slowed things down some.

You can grab V2-RC1 on the downloads page here:

https://github.com/HollyIT/NBDrupalDevel/downloads


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

install profile / distribution wizard?

discipolo's picture

i´d have a feature request:
i love your way to create modules and themes.
yet most if not all my projects start with an installation profile.

to be more exact:
1. with a .profile file containing the call to the profiler library
2. a build file downloading core & this profile from github
3. with a make file downloading some basic contrib modules and the profiler library.
4. an info file enabling some modules

i am sure i can do this with templates, but was wondering if you could add that to your wizardly tool at some point since it is very similar to what you already have.

thanks again!

Right now you can do that

Jamie Holly's picture

Right now you can do that with templates, but of course it would apply to all the modules you create. I'm redoing the module/theme creation stuff in version 3, combining everything and making it to where you can have multiple templates (multiple module, theme and even create installation profiles). This will fit perfectly into that scenario.

The templating system is also getting some more attention in version 3. I want to create a low-level scripting language for it. Just something with conditionals and the ability to have custom dialogs prompt for inputs. I figured that would be the easiest and most robust way to put in the menu and form creation I wanted to in V3 and since the module and theme creation stuff goes off of the same templating engine, it would work on that as well.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

brilliant

discipolo's picture

that is the answer i was hoping for!

Version 2 is out

Jamie Holly's picture

I pushed out the final of version 2 early this morning. There was only a couple real minor bug fixes since the release candidate. I'm also hoping to get the site up later today. It's not 100% complete, but I do have the stuff in where we can start creating a library of code templates to share. I'll let everyone know when that is live.

I'm going to start working on Version 3 in the next couple of weeks. I don't really have a time frame for that yet as I got some pretty major plans for it:

  • Create a scripting engine for the code templates that incorporates some logic blocks and custom user input dialogs (this is to get issues 1 and 2 worked in and appears to be the best way).

  • Allow direct downloading and extracting of module and themes. I also want to create a system to where you can make special profiles for Netbeans. Say one where you can have that profile go in and download core, plus whatever modules and themes you put into the profile.

Both of these are going to take some major work and push my limited Java knowledge, but will help keep the tool following the original philosophy of making it extendable through a custom templating system.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Finally - got the site up!

Jamie Holly's picture

It's still got a ways to go, but I've got the snippet sharing stuff in place:

http://nddt.hollyit.net/

You can either register for an account or submit snippets anonymously. The anonymous stuff is totally custom. You provide your name and email then if you ever want edit access you can get it by requesting a key through your email. If you decide to register down the road, then the anonymous snippets submitted by your email will be imported. I've done some extensive testing on this, but wouldn't be surprised if a bug or two got through.

Once I get more time I do plan on expanding the site more. I've just got a lot of projects going on right now, so time to even eat is becoming rough LOL!


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Thanks Again

datagroove_'s picture

Thanks again for the push Jamie. Site looks good. What would be great is some tuts (by way of video).

Thanks! That's something I do

Jamie Holly's picture

Thanks! That's something I do plan on doing down the road.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

drush

letsbuild's picture

Hi Jamie,

Firstly, brilliant work on this tool. I'm really enjoying using it.
Abit of a problem though, I can't see where/how to use drush.
I've added the location of my drush install in the options menu but can't see anything after that.
Also I'm getting an access denied message on your blog post related to it : http://www.hollyit.net/blog/netbeans-drupal-devel-tool-version-20-bleedi...

Thanks

John

Window → Drupal → Drush For

jean.cedric.t's picture

Window → Drupal → Drush

For the access denied, don't worry, go to the Github depot, switch to the 2.x branch and download ! Enjoy !

perfect thanks!

letsbuild's picture

perfect thanks!

drush configuration on Mac

jlk4p's picture

In Netbeans 7.1.1 on a Mac the error message for configuring drush doesn't make sense because there is no Tools -> Options menu selection. Instead choose preferences and then select PHP across the top. From there you will see the Drupal "tab" where you can configure drush.

Hope this helps others.

Thanks!

dealancer's picture

Thanks!

d'oh... i got this

joey-santiago's picture

d'oh... i got this message:

Warning - could not install some modules: Editor Formatting Prior 6.5 Separation - The module Editor Library 2 was requested in implementation version "31" but only "32" was found. Editor Formatting Prior 6.5 Separation - The module Editor Library was requested in implementation version "19" but only "20" was found. Tags Based Editors Library - The module named org.netbeans.modules.editor.deprecated.pre65formatting/0-1 was needed and not found. Editor Hints - The module Editor Library 2 was requested in implementation version "31" but only "32" was found. Editor Code Templates - The module named org.netbeans.spi.editor.hints/0-1 was needed and not found. Common Scripting Language API (new) - The module named org.netbeans.spi.editor.hints/0-1 was needed and not found. XML Text Editor - The module named org.netbeans.modules.editor.deprecated.pre65formatting/0-1 was needed and not found. JavaScript Hints - The module named org.netbeans.spi.editor.hints/0-1 was needed and not found. Editor Macros - The module Editor Library was requested in implementation version "19" but only "20" was found. IDE Platform - The module named org.netbeans.modules.editor.macros/0-1 was needed and not found. 39 further modules could not be installed due to the above problems.

reinstalled netbeans. now it works

joey-santiago's picture

but i can't see any drupal icon on my netbeans screen.. am i missing something?

thanks

Drupal icon can be added via customize toolbar

jlk4p's picture

Hi,

I'm not sure if NetBeans plugin installation did this by default or not. But I do have an icon on my toolbar at the top with a text box that allows me to search the Drupal API. You can add this to your toolbar by right clicking on it and customizing it. Scroll down and look for the Drupal API item (or Drush if you want that.) In addition the Drush and Drupal options are available from the Window > Drupal menu option. Choosing the Window option will provide a Drupal API tab in the area where your Navigator is. Selecting the Drush option will open a tab in the bottom where command line, search results, etc. would be. (Make sure you configure the Drush location in your preferences and choose which version of Drupal you are developing for so you get the correct API info.)

Hope this helps,
Jack

After installing the

bajah's picture

After installing the development module for Netbeans its Drupal 6 but this article is about drupal 7. How can i get one already customize for Drupal 7

You set the version of Drupal

Jamie Holly's picture

You set the version of Drupal per project and can set a default in the global options. Check out the help and it tells you where to find everything.


HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.

Getting attached to this project for maintainance

tusharvjoshi's picture

Just came to know this project needs a maintainer and hence trying to get attached with this.

Tushar Joshi, Nagpur
http://www.tusharvjoshi.com

Drupal IDE

Group organizers

Group categories

Drupal IDE Tags

Dev Software

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: