Created
December 17, 2013 17:56
-
-
Save keiono/8009543 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VMM is VisualMappingManager | |
VisualStyle psiStyle = null; | |
for (VisualStyle style : vmm.getAllVisualStyles()) { | |
if (style.getTitle().equals(PSIMI25VisualStyleBuilder.DEF_VS_NAME)) { | |
psiStyle = style; | |
break; | |
} | |
} | |
if (psiStyle == null) { | |
psiStyle = vsBuilder.getVisualStyle(); | |
vmm.addVisualStyle(psiStyle); | |
} | |
vmm.setCurrentVisualStyle(psiStyle); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment