Resource Editor
Table of Contents
Overview
The Actifsource Resource Editor allows you to view and/or edit any Actifsource resource. Since everything is a resource in Actifsource this is the most important editor.
The Actifsource Resource Editor shows resources as tree (similar to the Windows Explorer).
Aggregated vs. Referenced Resource
Actifsource distinguish between aggregated and referenced resources. An aggregated resource lives in the context of the parent resource. Deleting the parent resource will delete all aggregated resources.
Referenced resource may live anywhere in the model and are just referenced. Delete the referencing class will not affect the lifetime of the referenced resource.
Property
All information is grouped by properties (see also Chapter Property). Actifsource distinguish the following property types.
Class | Meaning |
---|---|
Property | Base class for all properties |
Relation | Base class for all relations |
Composition | Leads to aggregated resources (UML: Aggregation, Composition) |
UseRelation | Leads to referenced resources (UML: Association) |
Attribute | Primitive literals (String, Boolean, Integer, etc.) |
Open/Close Folding
To work with large resources efficiently, Actifsource can expand or collapse aggregated resources.
Use the following possibilities to expand/collapse resources.
Device | Action |
---|---|
Mouse | Klick the [+] [-] sign\ DoubleClick the property |
Context menu | Open/Close Folding |
Keyboard | Enter (Open/Close Folding)\ Backspace (Close Folding) |
The typeOf Statement
The typeOf statement of a resource shows the instantiation relation and declares the type of this resource.
Actifsource only allows a typeOf relation to resources of type Class.
Read Only View
Deploying Actifsource Models as an Eclipse Plugin (see Chapter 15 Plugin Project) leads to a read only view of the models. Models that are read-only are displayed in gray colors.
Note that the Actifsource Core Model is read-only for you.
Breadcrumb
The breadcrumb helps you navigating large resources.
Navigating resources
Clicking on the arrow in the breadcrumb allows you navigating all resources from the same property.
Focusing aggregated resources
Clicking on a resource in the breadcrumb allows you to focus only on this aggregated resource. Use this feature to work with large resource files.
Browse resource
Actifsource allows you to browse any resource in any editor.
To browse any resources in actifsource use the following possibilities.
Device | Action |
---|---|
Mouse | Ctrl+LeftClick |
Context menu | Browse Into |
Keyboard | F3 |
Insert resource
Insert on the empty line
Actifsource shows an empty line for all properties which might have another instance (depends on the subject cardinality; see Chapter 4.4.1 Property).
To insert a resources on the empty line use the following possibilities.
Device | Action |
---|---|
Mouse | Ctrl+DoubleLeftClick on the property |
Context menu | Insert here |
Keyboard | Enter |
Insert before or after properties
Actifsource allows inserting resources before or after existing properties.
To insert an aggregated resource before or after an existing resource use the following possibilities.
Device | Action |
---|---|
Mouse | Ctrl+DoubleLeftClick to insert after the current resource\ Ctrl+Shift+DoubleLeftClick to before after the current resource |
Context menu | Insert after to insert after the current resource\ Insert before to insert before the current resource |
Keyboard | Ctrl+Enter to insert after the current resource\ Ctrl+Shift+Enter to insert before the current resource |
Reference resource
To reference any resource use the content assist.
Device | Action |
---|---|
Context menu | Open Content Assist |
Keyboard | Ctrl+Space |
You may also type some letters to filter the resources.
Note that Actifsource supports content assist in many different situations. Just try Ctrl+Space to activate content assist via keyboard
New referenced resource
You are able to create new referenced resources just by typing the named and select new from the content assist.
The place where the resource is created depends on the UseRangeRestrictionAspect (see Chapter 4.4.4 UseRelation). If there is no UseRangeRestrictionAspect defined, the new resource is created in the same package as the referencing resource.
Move resource
If you need to change the order you can simple move resources up and down within the same property.
To move resources up and down use the following possibilities.
Device | Action |
---|---|
Context menu | Move Down\ Move Up |
Keyboard | Alt+CursorDown\ Alt+CursorUp |
Sort property
Actifsource lets you sort all resources of the same property by any literal (i.e. name property).
Note that Actifsource supports content assist in many different situations. Just try Ctrl+Space to activate content assist via keyboard
Quick Assist
Sometimes Actifsource offers a quick assist to fix common issues. Hoover the mouse pointer over the light bulb symbol
to get a tooltip with a short description of the problem.
Click on the bulb symbol to get the possible solutions.
Device | Action |
---|---|
Mouse | Click on the bulb symbol |
Keyboard | Ctrl+1 |