Skip to content

Instantly share code, notes, and snippets.

@porcelli
Last active December 18, 2015 23:39
Show Gist options
  • Save porcelli/5863218 to your computer and use it in GitHub Desktop.
Save porcelli/5863218 to your computer and use it in GitHub Desktop.
{
"name": "Markdown Editor",
"root": {
"parts": [
{
"place": "MarkdownLiveViewer",
"parameters": [
]
}
],
"panels": [
{
"width": 600,
"min_width": 300,
"position": "west",
"parts": [
{
"place": "MarkdownLiveEditor",
"parameters": [
]
}
]
}
]
}
}
final PerspectiveDefinition p = new PerspectiveDefinitionImpl();
p.setName( "Markdown Editor" );
p.getRoot().addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "MarkdownLiveViewer" ) ) );
final PanelDefinition westPanel = new PanelDefinitionImpl();
westPanel.setWidth( 600 );
westPanel.setMinWidth( 300 );
westPanel.addPart( new PartDefinitionImpl( new DefaultPlaceRequest( "MarkdownLiveEditor" ) ) );
p.getRoot().insertChild( Position.WEST, westPanel );
return p;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment