Describing Sub-activities with Call Behavior Actions - visual-studio-2013

I created activity diagram D1. Then I created element "behavior" in the diagram D1. I also created activity diagram D2.
I choose Element Properties "behavior" link at the diagram D1.
When I hover the mouse over the "Confirm Order" behavior and double-click on it to transition to activity diagram D2 ("ConfirmOrder.activity") nothing happens.
What am I doing wrong?

Related

Selection box is dragged, but not the object

I'm using FabricJS for some project, and my goal now is to save the new coordinates when the user drag an object. My issue is that when I select an object and move it, the selection box moves but not the object.
Image there:
I have some code which deal with object selection and mouse click and move events, so I tried to remove them but the issue persists.
Edit: looks like it's only a graphical issue, because the object:moved event is well triggered.
Edit 2 : after some progress in the development, this bug has mutated: now the object and the selection box move together, but I have to click two times on the object to make the selection box appear (while the selection events are triggered on the first click).

Detail View on Storyboard too zoomed in - creates misaligned objects in simulator

I have perhaps a beginner's question but have not found any solutions addressing this specific problem after searching endlessly on stackoverflow and other forums.
My detail view in the storyboard appears to be too zoomed in. At this point, zooming in and out simply zooms in and out on the storyboard, but not the detail view specifically.
Indicators of this are that the alignment arrow to the left of my button is not positioned at half-latitude of the Detail View box, although when I align my button to this marker I do see a crosshair indicating that my button is "centered".
Detail View - Further Out
Upon simulation, it is apparent that using these crosshairs produces a run-time alignment far right and up from being centered. Where my button is currently placed seems to be in the center of the simulator screen but would like my guidelines to allow the button to be centered using the guidelines suggested.
Simulator View
A) How do I "zoom out" within the Detail View so I can see the entire screen in the detail view?
B) How can I center my object if the guidelines are inherently off-center?
Thank you so much for you advice and input.
Are you using constraints to keep the various controls in place etc...?
If not try:
Select all elements in the UI of the detail view. Click on an empty spot somewhere in the View and press CMD + A.
Click on resolve auto layout issues at the bottom right of the Nib editor. (it's the right most icon)
Click on Clear Constraints
Click on resolve auto layout issues again, then Reset to Suggested Constraints
From here, tweak your constraints as per the UI you're working with i.e. iPhone, iPad and whatever orientation it's in etc...
I forgot to mention how I fixed the "too zoomed-in" problem.
In the storyboard controller, on the left navigator panel, within the file inspector, I simply unchecked "Use Size Classes" within the Interface Builder Document section. My view controller changed into a normal iPhone shape and everything finally fit into place.

Why does the order of controls in document outline of visual studio 2010 not match what the designer view shows?

I'm new to Visual Studio; using 2010. I have inherited a project that has a lot of controls in one Form. At the top level in the Form are a TabControl, a TableLayoutPanel, a GroupBox, and a Button. They appear on the screen (top to bottom) in the order TabControl, GroupBox, TableLayoutPanel, Button. In the Document Outline they are shown in a different order: TableLayoutPanel first (topmost), Button, GroupBox, TabControl.
If I drag the TabControl to the top in the Document Outline, it goes to the bottom of the GUI as shown in the designer view.
Can anyone give me a foothold to getting started in understanding how this works? Specifically what is the meaning of the order in which the controls appear in the Document Outline?
Thanks!
The Document Outline window displays controls by their z-order. Overlap some controls and you'll see that those closest to the front are displayed closest to the top of the Document Outline window.
If two controls are docked to the same edge of their parent, the position of each control relative to that edge is determined by z-order. Those controls with the lowest z-index will be furthest from the edge.
In short, the order in the Document Window has absolutely no relationship to the Location properties of the controls. It depends on z-order only.

Javafx 2 - multiple view in a anchorpane

I would like to show an animation with two views - overview and closeup view in a same anchorpane.
The overview would show trucks travelling from point A to point B on a map background and the closeup view would show what is happening at point B (i.e. discharging cargo etc...). When we start the animation both the views should be in action.
I am not sure how to implement this in Javafx-2. I have created an AnchorPane called globalpane and have two children - (AnchorPane)overViewPane and (AnchorPane)closeViewPane. I have got the overview pane working. But to implement the close up view, can we make a copy of overViewPane, zoom it using scale method and present it in closeViewPane?
What is the best approach to do this ?
Thanks
Ps : I found this link which shows magnifying glass:
Why is my magnifying glass not following the mouse?
However, I am not sure if the same would work with animation running in the overview will also be updated simultaneously on the magnifying glass
I could not find anything regarding reflecting/copying/mirroring a same anchorpane twice. Therefore, I had to resort to coding them individually in my program.

Cocoa Core Data and Tab View - How do I tell when Tab View is finished "loading" so I can tell the view to initialize itself?

I have a simple Core Data app I am building to try to understand Core Data. It has two entities: a weather station, and a collection of observations for a given station.
I created the initial interface for this by putting a tab view on my window, selecting the first tab, and dragging the weather station entity onto that view; then selecting the second tab and dragging the observations entity onto the second tab.
I then created a third tab myself and added a popup at the top. This popup is bound to the StationArrayController, so it populates with all the weather stations I add. This works great.
I then added a table view to display the Observations associated with the selected Station. This also works great. I implemented this with a method that creates a predicate that searches for all observations whose station matches the selected station, and attached the predicate to the ObservationArrayController associated with the Table View on the third tab. (I couldn't figure out how to do this in IB, so I did it programmatically).
The bug is this: If I load a previously saved file with weather stations and observations in it, when I go to the third tab, even though one of the stations is selected (ie, it appears in the popup), all of the observations appear in the tableview, not just the ones associated with that station.
This is happening because I am not calling the method to attach the predicate to the Observation Array Controller until I actually use the popup to change the station manually.
So my problem and question is this (sorry it took so long to get to this point!): How can I detect when the tab view has loaded so I can force the method which attaches the predicate to run and thus have an initial list of Observations which matches the selected Station?
I tried creating a custom View class and subclassing it for the third tab view and putting this code in the awakeFromNib method, but this is too early in the process (the "selected station" is -1 at this point in the loading process).
Any help would be much appreciated. thank you!!
Elisabeth
Ah, I just answered my own question!
I set the delegate of the tabview to MyDocument, and implemented tabView:didSelectTabViewItem: there. I created an IBOutlet in MyDocument pointing to the third tab view, and in this method, checked to see if the third tab was selected, and if so, called the method to attach the predicate to the ObservationArrayController. Works great!

Resources