Comments (4)
all *.zul files in the directory structure should get considered
<include src="x">
should be considered a dependency from the current file to the "x"
@ref Elements in the file shoud be considered dependencies
fully qualified class Names should be considered dependencies to these classes
from degraph.
An example for included zul files
tabbox.zul (reduced to minimum necessary information)
<zk>
<!-- Option 1 -->
<include src="/WEB-INF/styles/default.zul" />
<tabbox >
<tabs>
<tab label="1" />
<tab label="2" />
</tabs>
<tabpanels>
<tabpanel>
<!-- Option 2 -->
<include src="@load(xyzVW.getSrc('tabpanel1.zul'))" />
</tabpanel>
<tabpanel>
<!-- Option 3 -->
<include src="@load(xyzVW.getSrc('subdir/tabpanel2.zul'))" />
</tabpanel>
</tabpanels>
</tabbox>
</zk>
Option 1: The src path is a path relative to the web apps root folder.
Option 2: The src path is composed of a root path and the filename 'tabpanel1.zul'. By convention the root path is the exact same directory where 'tabbox.zul' is located.
Option 3: The src path is composed of a root path and a subdirectory/filename 'subdir/tabpanel2.zul'. By convention the root path is the exact same directory where 'tabbox.zul' is located.
from degraph.
An example for dependent Java classes
viewModel.zul
<zk>
<!-- Option 1 -->
<div apply="org.zkoss.bind.BindComposer"
viewModel="@id('xyz')
@init('com.abc.def.XyzVM')">
<!-- Option 2 -->
<include src="other.zul"
otherVM="@ref(xyz.other)"/>
<!-- Option 3 -->
<div apply="${mnoCtrl}"/>
<!-- Option 4 -->
<div apply="com.abc.def.pqsCtrl"/>
</div>
</zk>
Option 1: Full qualified name to a dependent viewModel 'com.abc.def.XyzVM'.
Option 2: The variable 'otherVM' points to the return value of 'XyzVM.getOther()' and is accessible in 'other.zul'. This class could be everywhere :(
Option 3: A controller which gets injected via spring. You have to look up all spring conexts or scan all source files to resolve the dependency :(
Option 4: A controller with a full qualified name.
from degraph.
Sorry, currently I have no intention to make analysis pluggable
from degraph.
Related Issues (20)
- Allow wildcards with allow HOT 1
- printTo should always print HOT 1
- Is there any complex example of allowDirect HOT 2
- Other color for wrong edges HOT 4
- Slicing errors HOT 3
- Rule for nesting of packages HOT 5
- Documentation error HOT 2
- Improved logging
- java.lang.IllegalArgumentException during testing HOT 6
- Possibility to check that a specific slice has no incoming/outgoing dependencies HOT 3
- default generated graph hard to view
- Generate only package dependecies HOT 4
- Multiple patterns per slice? HOT 1
- Java 9 compatibility
- IllegalArgumentException vs. log4j2 HOT 7
- Can't get the simple test and instllApp to work HOT 2
- Testfailures for Java 8 annotations
- Build and release for 2018 latest versions
- fix URL in ABOUT section HOT 1
- Download link is broken - jfrog deprecated bintray HOT 3
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 degraph.