You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently difficult and not ergonomic to delete the image associated with a node in a diagram. Today, there are 2 ways of doing this:
Click on the “Reset style properties to default values” button, which resets all other modified features (label, color...)
Use the “Style” tab of the Properties view, and manually delete the contents of Workspace Path, then delete “workspacePath” from the Custom Feature list, and finally refresh the diagram. This method isn't ergonomic and isn't accessible to all users.
A more ergonomic way of deleting an image associated with a node should be provided.
Since there's already a dialog for managing the image associated with a node, it would be more efficient to add functionality to the dialog rather than adding yet another context menu or toolbar button.
I propose the following change to solve the described issue: A new “Reset Image Style” button in the dialog.
Steps to validate:
Import project issue_471 in your workspace from issue_471.zip, open issue_471 package entities diagram, select NewEclass1, open Properties view and the Error Log view.
Click on Set style to workspace image button from tabbar or Appearance tab in Properties view Expected: The dialog appears. The image path field refers to the actual image issue_471/images/green_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
Click on "Reset Image Style" button. Expected: The "Reset Image Style" button is disabled. OK button is enabled. the path is empty.
Select another image in the gallery, such as "blue_beetle.png" in issue_471 > images. Expected: The path refers to issue_471/images/blue_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
Click on an invalid location, such as an empty place in the gallery, or the project "issue_471" in the tree viewer. Expected: The path is updated with the actual Workspace Image issue_471/images/green_beetle.png. The "Reset Image Style" button is enabled. "OK" button is disabled.
Click on "Reset Image Style" button again, then click "OK". Expected: The style of the node has been updated: the image is not even used, and other custom features are preserved (bold, italic, color label, size label...)
The text was updated successfully, but these errors were encountered:
A new button "Reset Image Style" has been added to reset the
WorkspaceImage assigned to a DDiagramElement while preserving all other
style modifications.
Bug: #471
Signed-off-by: Glenn Plouhinec <glenn.plouhinec@obeo.fr>
Issue description
It is currently difficult and not ergonomic to delete the image associated with a node in a diagram. Today, there are 2 ways of doing this:
Click on the “Reset style properties to default values” button, which resets all other modified features (label, color...)
Use the “Style” tab of the Properties view, and manually delete the contents of Workspace Path, then delete “workspacePath” from the Custom Feature list, and finally refresh the diagram. This method isn't ergonomic and isn't accessible to all users.
A more ergonomic way of deleting an image associated with a node should be provided.
Since there's already a dialog for managing the image associated with a node, it would be more efficient to add functionality to the dialog rather than adding yet another context menu or toolbar button.
I propose the following change to solve the described issue: A new “Reset Image Style” button in the dialog.
Steps to validate:
issue_471
in your workspace from issue_471.zip, openissue_471 package entities
diagram, selectNewEclass1
, openProperties
view and theError Log
view.Set style to workspace image
button from tabbar orAppearance
tab inProperties
viewExpected: The dialog appears. The image path field refers to the actual image
issue_471/images/green_beetle.png
. The "Reset Image Style" button is enabled. "OK" button is disabled.Expected: The "Reset Image Style" button is disabled. OK button is enabled. the path is empty.
Expected: The path refers to
issue_471/images/blue_beetle.png
. The "Reset Image Style" button is enabled. "OK" button is disabled.Expected: The path is updated with the actual Workspace Image
issue_471/images/green_beetle.png
. The "Reset Image Style" button is enabled. "OK" button is disabled.Expected: The style of the node has been updated: the image is not even used, and other custom features are preserved (bold, italic, color label, size label...)
The text was updated successfully, but these errors were encountered: