Skip to content

Instantly share code, notes, and snippets.

View develar's full-sized avatar

Vladimir Krivosheev develar

  • JetBrains
  • Kronach, Bavaria
View GitHub Profile
<?xml version="1.0"?>
<Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="library://ns.adobe.com/flex/spark">
<layout>
<VerticalLayout/>
</layout>
<HGroup>
<Label text="Label 1"/>
<TextInput/>
</HGroup>
Permission denied: Permission denied
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at com.jetbrains.actionscript.profiler.ProfilingConnection$2.run(ProfilingConnection.java:155)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:332)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
Compact YAML syntax
-------------------
Although the base YAML format is already pretty concise, JavaBuilders adds a custom extension to it
that we call "virtual constructor flow", otherwise referred to simply as compact YAML. It allows to specify
the child properties of an object in the same line of text as the object definition.
Here's a pure YAML example::
JFrame:
JPanel:
- JScrollPane(name=scroll1): JTextArea(name=source,font=Monospaced,editable=false)
- MigLayout: |
[200,grow] [right] [200,grow] [200,grow]
scroll1+1+* "Last name:" txtLName "First Name" txtFName
"Phone:" txtPhone "Email:"+2,txtEmail
"Address 1:" txtAddress1+*
"Address 2:" txtAddress2+*
"City:" txtCity
"State:" txtState "Postal Code:" txtPostal
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy element plugins</id>
<goals>
<goal>copy</goal>
</goals>
<configuration>