-
Notifications
You must be signed in to change notification settings - Fork 0
Maqetta with Orion Developer Setup
Maqetta and Orion are Web based development platforms. Maqetta is a WYSIWYG HTML5 editor for web designers and Orion is a source editor and tooling framework for developers.
More about Orion: http://www.eclipse.org/orion/
More about Maqetta: http://www.maqetta.org
Both Orion and Maqetta run on an OSGi framework within an embedded Jetty server. With the maqetta.orion.server and maqetta.orion.client (located in the maqetta github repo), you can run both applications on the same OSGi instance and share the same backing file system and user authentication mechanism.
-
Start by following the Orion configuration guide to completion: Orion Setup Guide
-
Until Orion patches their welcome file, you'll have to hand edit /org.eclipse.orion.server.configurator/src/org/eclipse/orion/server/configurator/servlet/WelcomeFileFilter.java by modifying the SERVLET_PATHS static string to include /maqetta/
-
After Orion is configured and running, follow the Maqetta setup guide using the same workspace you configured for Orion Maqetta Setup Guide
-
Look for the maqetta-orion multi user launch configuration. You may want edit this and adjust the launch port (default is 8081).
-
Use the maqetta-orion multi user launch configuration to start the server. If you point your browser to http://localhost:8081/maqetta/, you'll be prompted with the login / create user screen. After user creation and login you'll be redirected to Maqetta
-
To load Orion, go to http://localhost:8081/ . If you've already logged in, you wont be prompted again.
-
This is the server piece which allows Maqetta to use the same file system and users authentication as Orion. Orion uses the IFileStore methods from Eclipse. Note that the file store keeps up with the file names EXCEPT for projects. Orion stores users project name in an Eclipse preferences node with links to the FileStore IDs.
-
maqetta.orion.server is mutually exclusive from maqetta.standalone.server and can't be run at the same time.
-
All Maqetta projects are cross server compatible. However the backing file system and user store is not. If you start out running the Orion server you'll not be able to switch to standalone server without re-creating users and manually downloading projects and uploading them to the new server.
-
Maqetta workbench preferences are not stored in the file system. Instead they are stored via an Eclipse Preferences node.
-
The file /WebContent/maqettaPlugins.def is a copy of Orion's defaults.pref with the addition of the Maqetta plugin. We then override the URL to defaults.pref with the maqettaPlugins.def so that Orion will load the Maqetta plugin when it starts on every instance. If Maqetta isn't present then the original defaults.pref is loaded.
-
maqetta.orion.client Contains a slightly custom pagedesigner.html. When launching Maqetta from within Orion on a project, Orion uses URL parameters to indicate which project to load. pagedesigner.html strips off the parameters, serializes them.
-
/WebContent/orion/maqettaPlugin.html contributes UI and commands to Orion.