[ https://issues.apache.org/jira/browse/OFBIZ-12038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17207335#comment-17207335 ] Jacques Le Roux edited comment on OFBIZ-12038 at 10/4/20, 1:28 PM: ------------------------------------------------------------------- James, I guess this is what you are looking for? {noformat} 2020-10-04 15:02:19,349 |sse-nio-8443-exec-10 |ControlServlet |T| [[[catalog::openSourceFile (Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2020-10-04 15:02:19,353 |sse-nio-8443-exec-10 |CommonEvents |I| Run command: eclipse "\C:\projectsASF\Git\ofbiz-framework\applications\product\widget\catalog\CatalogScreens.xml:24" 2020-10-04 15:02:19,436 |sse-nio-8443-exec-10 |RequestHandler |I| Ran Event [java:org.apache.ofbiz.common.CommonEvents#openSourceFile] from [request], result is [success] {noformat} BTW I found it works for Java files, eg: eclipse "C:\projectsASF\Git\ofbiz-framework\plugins\birt\src\main\java\org\apache\ofbiz\birt\BirtWorker.java:50" but not XML files: eclipse "C:\projectsASF\Git\ofbiz-framework\applications\product\widget\catalog\CatalogScreens.xml:24" The leading "\" si not a problem eclipse "\C:\projectsASF\Git\ofbiz-framework\plugins\birt\src\main\java\org\apache\ofbiz\birt\BirtWorker.java:50" works (get to the file not the line)either same for XML files HTH (but I'm not sure if there is a solution for Eclipse in Windows :/) was (Author: jacques.le.roux): James, I guess this is what you are looking for? {noformat} 2020-10-04 15:02:19,349 |sse-nio-8443-exec-10 |ControlServlet |T| [[[catalog::openSourceFile (Domain:https://localhost)] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]] 2020-10-04 15:02:19,353 |sse-nio-8443-exec-10 |CommonEvents |I| Run command: eclipse "\C:\projectsASF\Git\ofbiz-framework\applications\product\widget\catalog\CatalogScreens.xml:24" 2020-10-04 15:02:19,436 |sse-nio-8443-exec-10 |RequestHandler |I| Ran Event [java:org.apache.ofbiz.common.CommonEvents#openSourceFile] from [request], result is [success] {noformat} BTW I found it works for Java files, eg: eclipse "C:\projectsASF\Git\ofbiz-framework\plugins\birt\src\main\java\org\apache\ofbiz\birt\BirtWorker.java:50" but not XML files: eclipse "C:\projectsASF\Git\ofbiz-framework\applications\product\widget\catalog\CatalogScreens.xml:24" The leading "\" si not a problem eclipse "\C:\projectsASF\Git\ofbiz-framework\plugins\birt\src\main\java\org\apache\ofbiz\birt\BirtWorker.java:50" works either same for XML files HTH (but I'm not sure if there is a solution for Eclipse in Windows :/) > Open Screen file from browser > ----------------------------- > > Key: OFBIZ-12038 > URL: https://issues.apache.org/jira/browse/OFBIZ-12038 > Project: OFBiz > Issue Type: Improvement > Components: base > Affects Versions: Upcoming Branch > Reporter: James Yong > Assignee: James Yong > Priority: Minor > Fix For: Upcoming Branch > > Attachments: OFBIZ-12038.patch, OFBIZ-12038.patch > > > User can choose to open screen definition file from the browser by clicking on the named border. Server will send a command to open the source file. > Save time looking for the screen definition file. > This feature depends on setting the following properties correctly > widget.dev.namedBorder > widget.dev.cmd.openSourceFile -- This message was sent by Atlassian Jira (v8.3.4#803005) |
Free forum by Nabble | Edit this page |