Bug 558379 - In-place Instance Creation
Summary: In-place Instance Creation
Status: NEW
Alias: None
Product: 4DIAC
Classification: IoT
Component: 4DIAC-IDE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 558911 559550 558437 558912 558913 558914 559295 562921
Blocks:
  Show dependency tree
 
Reported: 2019-12-16 13:25 EST by Alois Zoitl CLA
Modified: 2020-05-12 10:22 EDT (History)
2 users (show)

See Also:


Attachments
in-place type creation mock up (547.87 KB, image/png)
2019-12-16 13:25 EST, Alois Zoitl CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alois Zoitl CLA 2019-12-16 13:25:13 EST
Created attachment 281250 [details]
in-place type creation mock up

While the type palette shown on the right side of our editors has the great the advantage that it is easily explore-able by new users. Also creating instances by drag and drop is a very common concept used in many tools. However when more and more types are added the palette navigation gets harder. Also the drag and drop creation leads to lots of mouse movements and gets tedious. Therefore we want to propose a new in-place type creation as shown in the attached mock-up image:


The behavior should roughly be as follows:
 - on double click the text field with the button to the right is shown
 - also initially a drop down list with the last 3 - 5 used types
 - this drop down list shows the type name maybe with type icon and followed by a dash the path and file name in italic and some lighter color (e.g., slightly grayish)
 - when the user types something in the text field the drop down list is updated with types matching the search text
 - selecting a type from the list with arrows + enter or with a double click will create an instance of that type
 - Clicking on the button right to the text field brings up the insert FB pop-up menu so that the user can easily explore the type library


Potential extensions:
 - <Ctrl + Left Click> bring up the insert type pop-up menu
 - If the text entered into the text box does not much a type create an untyped subapp with the given name. Not sure if this is a good idea.
 - When the user starts typing and the mouse has not been moved beyond a certain threshold from the last left click position also bring up the type creation editor. 

Can this concept replace the type palette of the FB Network editor?
Comment 1 Kirill Dorofeev CLA 2019-12-17 04:12:33 EST
I'm not sure if i understood the initial step to create a FB. Which text field should i click, if i wanna add a new FB to an app? 

What if i don't know, which FB i'm looking for (don't know its name)? In a pallete one can always have an overview of all available FB's in a category -- that gives sometimes an idea, what one needs.
Comment 2 Alois Zoitl CLA 2019-12-17 09:07:29 EST
(In reply to Kirill Dorofeev from comment #1)
> I'm not sure if i understood the initial step to create a FB. Which text
> field should i click, if i wanna add a new FB to an app? 

Oh sorry for not being clear about it. The text field with button and search results should pop-up when you double click on the background of the FB network editor.

> 
> What if i don't know, which FB i'm looking for (don't know its name)? In a
> pallete one can always have an overview of all available FB's in a category
> -- that gives sometimes an idea, what one needs.

For this use case we would have:
 1. the typelibrary in the system explorer
 2. the button bringing up a pop-up menu with all the types (the same that is currently shown in the insert type popup menu
 3. Maybe as extension the ctrl+left click again showing the pop-up menu
Comment 3 Eclipse Genie CLA 2019-12-27 14:35:34 EST
New Gerrit change created: https://git.eclipse.org/r/155080
Comment 4 Eclipse Genie CLA 2019-12-29 11:49:03 EST
New Gerrit change created: https://git.eclipse.org/r/155096
Comment 5 Eclipse Genie CLA 2019-12-31 12:47:33 EST
New Gerrit change created: https://git.eclipse.org/r/155127
Comment 6 Alois Zoitl CLA 2020-01-01 04:09:21 EST
To make the concept a bit more graspable I created a first prototype [1]. What is still missing is to capture the recently used types and show that as initial proposal in the pop-up.


[1] https://git.eclipse.org/r/#/c/155127/
Comment 9 Eclipse Genie CLA 2020-01-08 09:13:58 EST
New Gerrit change created: https://git.eclipse.org/r/155485
Comment 11 Jörg Walter CLA 2020-01-23 05:43:01 EST
(In reply to Alois Zoitl from comment #0)
>  - If the text entered into the text box does not much a type create an
> untyped subapp with the given name. Not sure if this is a good idea.

I think this is a good idea, but be sure to give a good indication of what is about to happen. The popup list could contain an entry "Create new subapplication named '...'".  I think the Firefox/Chrome browser address bar does this almost correctly. Try typing in there, it will offer search suggestions, history items, open tabs and so on, and it states what happens when you click an endtry.
Comment 12 Alois Zoitl CLA 2020-01-26 17:06:26 EST
(In reply to Jörg Walter from comment #11)
> 
> I think this is a good idea, but be sure to give a good indication of what
> is about to happen. The popup list could contain an entry "Create new
> subapplication named '...'".  I think the Firefox/Chrome browser address bar
> does this almost correctly. Try typing in there, it will offer search
> suggestions, history items, open tabs and so on, and it states what happens
> when you click an endtry.

I haven't thought about this. This is a great idea. I created a dedicated sub bug for it Bug #559550.
Comment 13 Eclipse Genie CLA 2020-02-04 13:33:54 EST
New Gerrit change created: https://git.eclipse.org/r/157166
Comment 15 Eclipse Genie CLA 2020-05-12 10:07:17 EDT
New Gerrit change created: https://git.eclipse.org/r/162885