My Problem with registering a QuoteHandler extension point

已回答

Not sure if this is where I should post this, but I read extensively from this board, so I figured this was the best place to post my solution to a QuoteHandler extension point problem.

I had tried to create a Quote handler, but it never was run by the IDE. I put break points all over the source, and found the problem. When setting up the QuoteHandle EP, I had put the wrong values for the fileType attribute

I tried putting the name of my FileType class. When that didn't work I tried to put the qualified name to my file type class, and it wasn't until digging through the source that I saw:

if (ep.fileType.equals(fileType.getName()))

that I realized that it was asking for the FileType::getName() value. My getName() method returned a descriptive string (which I am now thinking is wrong), and so I had to put that same exact text from getName() in the extension point "fileType" attribute for it to work.

Solution:  fileType= {{your FileTypes::getName() text}}

I do not know if this information was around someplace I simply did not know to look, but I thought I would put it here in hopes that this helps someone later down the line.

0

Thanks for sharing. A feature request to make this easier is tracked at https://youtrack.jetbrains.com/issue/IDEA-142088

0

请先登录再写评论。