Editing h files

I have the class for my project defined in .h and .cpp file.

When I try to open this file to edit, I get the message "Processing can only open its own sketches or files ending in .ino or .pde".

So I have to edit the .h file using notepad.

But the Arduino IDE also allows me to create and edit a brand new .h file in the Arduino IDE. Why is this ?

If there is a .cpp or .h file in the same directory as your sketch (the .ino or .pde file) the IDE automatically makes a "tab" which you can click on to edit those files.

Example: