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).

image57 image57

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.

image58 image58

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.

image59 image59

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.

image60 image60

Actifsource only allows a typeOf relation to resources of type Class.

image61 image61

Read Only View

image62 image62

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.

Info

Note that the Actifsource Core Model is read-only for you.

The breadcrumb helps you navigating large resources.

image63 image63

Clicking on the arrow in the breadcrumb allows you navigating all resources from the same property.

image64 image64

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.

image65 image65

Browse resource

Actifsource allows you to browse any resource in any editor.

image66 image66

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).

image67 image67

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.

image68 image68

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

image69 image69

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.

Info

Note that Actifsource supports content assist in many different situations. Just try Ctrl+Space to activate content assist via keyboard

image70 image70

New referenced resource

You are able to create new referenced resources just by typing the named and select new from the content assist.

image71 image71

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.

image72 image72

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).

image73 image73

Info

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 image74 image74 to get a tooltip with a short description of the problem.

image75 image75

Click on the bulb symbol to get the possible solutions.

image76 image76

Device Action
Mouse Click on the bulb symbol
Keyboard Ctrl+1