Jump to: navigation, search

Difference between revisions of "Graphiti"

m
Line 3: Line 3:
 
= Graphiti - a Graphical Tooling Infrastructure  =
 
= Graphiti - a Graphical Tooling Infrastructure  =
  
Eclipse provides a modeling infrastructure evolving around the Eclipse Modeling Framework (EMF) for which offering graphical representations and editing possibilities is essential.  
+
This page contains useful information for developers working on the Graphiti framework itself. Users of the framework (building Graphiti-based tools) should rather have a look onto our Eclipse page at [http://www.eclipse.org/graphiti www.eclipse.org/graphiti].
  
Graphiti is an Eclipse-based graphics framework that enables rapid development of state-of-the-art diagram editors for domain models. Graphiti can use EMF-based domain models very easily but can deal with any Java-based objects on the domain side as well.
+
== Contents ==
  
The objectives of the Graphiti project are the following:
+
*[[Coding|Coding]]<br>
  
*Provide an easy to use and well structured plain Java API for building graphical tools
+
== [[Coding]] ==
*Provide documentation and tutorials for doing so
+
*Limit the dependencies of the framework to an absolute minimum to support RCP-like scenarios
+
*Provide optional components beyond the RCP use case to ease e.g. IDE integration
+
*Provide the ability to use any existing layout algorithms for auto layouting a diagram
+
  
<br>
+
=== Coding Conventions ===
 +
 
 +
We use the standard Eclipse formatter for our coding with just one exceptional setting: the maximum line width is changed to 120. This setting can be found in the Eclipse preferences under 'Java -&gt; Code Style -&gt; Formatter' by editing the 'Eclipse [built-in]' profile on tab 'Line Wrapping': set the 'Maximum Line Width' in Section 'General settings' to 120.
 +
 
 +
To be sure that the formatter is really used for all your changes define your save actions (Eclipe preferences under 'Java -&gt; Editor -&gt; Save Actions') to include 'Format source code' with 'Format edited lines' only. Also enable the 'Organize imports' action on this page to get an automated clean-up of the import statements.

Revision as of 08:34, 30 June 2011

BackgroundMain.png

Graphiti - a Graphical Tooling Infrastructure

This page contains useful information for developers working on the Graphiti framework itself. Users of the framework (building Graphiti-based tools) should rather have a look onto our Eclipse page at www.eclipse.org/graphiti.

Contents

Coding

Coding Conventions

We use the standard Eclipse formatter for our coding with just one exceptional setting: the maximum line width is changed to 120. This setting can be found in the Eclipse preferences under 'Java -> Code Style -> Formatter' by editing the 'Eclipse [built-in]' profile on tab 'Line Wrapping': set the 'Maximum Line Width' in Section 'General settings' to 120.

To be sure that the formatter is really used for all your changes define your save actions (Eclipe preferences under 'Java -> Editor -> Save Actions') to include 'Format source code' with 'Format edited lines' only. Also enable the 'Organize imports' action on this page to get an automated clean-up of the import statements.