Comments (6)
@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.
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.
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.
Yeah I can, let me see what i can find out.
from apex-umlcanvas.
@afawcett - Were you able to find out anything from SFDC about the ToolingAPI roadmap?
from apex-umlcanvas.
Not as yet, I've sent a nudge email.
from apex-umlcanvas.
Related Issues (20)
- Add message bar for system messages HOT 1
- Support orgs with more than 1000 ApexClasses in the default namespace. HOT 3
- Deselect should remove the class from the canvas HOT 2
- Collection size XXXX exceeds maximum size of 1,000. HOT 10
- Add a Post Installation instructions page HOT 2
- Removing and then attempting to add a class back onto canvas fails
- Doesn't show child classes HOT 6
- INVALID_ARGUMENT_TYPE : Missing field [TableEnumOrId] on trigger create HOT 3
- Getting error when select class "Cannot set property 'symbolTable' of undefined" HOT 4
- Getting “Bad id ” when selecting a class, even after adding remote site settings HOT 2
- VisualForce Says Failed HOT 1
- Error: 'Unexpected Token <'. Logged in? HOT 1
- Adding ability to save or download the canvas HOT 1
- No such column 'CurrencyIsoCode' on entity 'ApexClass'. HOT 1
- Classes are not visible when running the tool in a packaging org
- Better message needed prompting admin to setup Remote Site Setting for ApexUML HOT 6
- Should ApexUML package classes show in the list? HOT 6
- Visualforce Error: Collection size 2,592 exceeds maximum size of 1,000 HOT 2
- Relationship between Interface and Class not shown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apex-umlcanvas.