Code Monkey home page Code Monkey logo

Comments (6)

ImJohnMDaniel avatar ImJohnMDaniel commented on September 28, 2024

@afawcett - I had a thought about how to deal with this. While the tooling API doesn't distinguish between classes and interfaces, it does show in the tableDeclaration where the class is defined. It gives the specific line number in the body of the class. It would not be hard to query the body from the ApexClass, split it into a line array, and then find the line that the declaration is on. From there it would be a simple matter to do a string.containsIgnoreCase('interface') to distinguish between the two types. From there we modify the name of the file to include "<< interface>>" in the UML diagram.

Do you have any thoughts or suggestions here? Is there something in the tooling API that I have missed that would reveal this?

Please let me know when you can as that is probably the next task that I will tackle.

Cheers!

from apex-umlcanvas.

afawcett avatar afawcett commented on September 28, 2024

Last i checked at 29.0 was still not implemented, i will check again in 30.0 (which seems to have been delayed again). If not, yeah i like your workaround, see the LineReader here, https://gist.github.com/afawcett/8090245

from apex-umlcanvas.

ImJohnMDaniel avatar ImJohnMDaniel commented on September 28, 2024

I checked a v30.0 sandbox and it does not have way to distinguish between classes and interfaces. I would be curious if it is even on the ToolingAPI roadmap. Do you have contacts at SFDC that could let us know?

from apex-umlcanvas.

afawcett avatar afawcett commented on September 28, 2024

Yeah I can, let me see what i can find out.

from apex-umlcanvas.

ImJohnMDaniel avatar ImJohnMDaniel commented on September 28, 2024

@afawcett - Were you able to find out anything from SFDC about the ToolingAPI roadmap?

from apex-umlcanvas.

afawcett avatar afawcett commented on September 28, 2024

Not as yet, I've sent a nudge email.

from apex-umlcanvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.