Archi Forum

Archi Plug-ins => jArchi => Topic started by: Manj75 on October 30, 2019, 08:06:51 AM

Title: Support of file links in Archi
Post by: Manj75 on October 30, 2019, 08:06:51 AM
I am able to add URL links as a value to a named property and notice an internet globe icon appear to the left of the property name that can be double clicked to open the link.  I want to be able to have file links specified in the same way, however I don't see this being supported at all.

If a file URI or path UNC is specified in the same way as URLs in properties you could display a folder icon and double clicking it will open a browser based file location or File Explorer.

Can this be done and added to the roadmap - I can add as a feature request.

Title: Re: Support of file links in Archi
Post by: Phil Beauvoir on October 30, 2019, 08:09:04 AM
How do you parse a file link? The regex for URLs is to match strings starting with http:// https:// or ftp://
Title: Re: Support of file links in Archi
Post by: Manj75 on October 30, 2019, 08:24:49 AM
I was going to raise another topic regarding how URLs is supported in Archi, but will expand out here:

It appears that Archi only recognises a URL if the domain consists of a '.' e.g. '.com', so http://www.google.com will be recognised as a URL if specified in the Documentation or as a value of a property.

However, if a URL is not of this format then it is not recognised as a URL.  A good example would be a URL to an internal SharePoint such as http://systemstfsportal/eap/SitePages/Home.aspx.  This is specified in the Documentation will not shown the URL text as blue and underlined showing it as a link, and if specified as a property value will not show the clickable internet globe icon to the left of the property name.

This is an inconsistency in my view in that URLs are recognised based on the '.' in the domain, where it should be on the http:// or https:// as you state.  I don't know how it is actually implemented but just stating my observed behavior and would be great to get this fixed, along with the enhancements added if you agree.
Title: Re: Support of file links in Archi
Post by: Hervé on October 30, 2019, 08:25:44 AM
May be the regexp may be updated to match for strings starting with "file://" ?
Title: Re: Support of file links in Archi
Post by: Manj75 on October 30, 2019, 08:32:36 AM
I just wanted to reiterate that I do not see the regex even parsing and recognising http:// or https:// as it only recognises when there is a '.' in the URL, see my previous post.

Number of points on this thread:
Title: Re: Support of file links in Archi
Post by: Phil Beauvoir on October 30, 2019, 08:34:19 AM
@Manjit that is fixed in beta 3. See https://github.com/archimatetool/archi/issues/546
@Herve file:// works. I'll add that to the regex (an interesting side effect is to link to an *.archimate file)
Title: Re: Support of file links in Archi
Post by: Manj75 on October 30, 2019, 08:56:39 AM
Hi Phil,

I completely understand you and would love to get involved with the development of Archi, but at the moment I'm promoting its adoption with clients where I am establishing an Architecture Practice.  Archi tool is fantastic and better then some of the commercial offerings.  Equally it's an easy route of adoption for organisations to use ArchiMate notation.

I want to at minimum contribute to identifying enhancements in the tool as I develop how it is being used within an Architecture Practice.  I thought best approach would be to start topics here that then get translated to a feature request on GitHub, but if you are happy for me to just raising feature requests first I can do so.  You can then review the feature request adopt/reject it based on priority, but it's good to discuss it with forum members.

Wrt 'that is fixed in beta 3' I presume that is for my points 2 & 3 - I will give it a try.

Thank you for all you effort, it is greatly appreciated  :)

Manjit