Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plant Hierarchy inconsistency prevention when deleting subapp #1101

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

alliuqemal
Copy link

No description provided.

Copy link

Test Results

   113 files  ±0     113 suites  ±0   50s ⏱️ -1s
29 185 tests ±0  29 185 ✅ ±0  0 💤 ±0  0 ❌ ±0 
29 186 runs  ±0  29 186 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit cd1364e. ± Comparison against base commit eee5351.

class="org.eclipse.fordiac.ide.hierarchymanager.ui.refactoring.DeleteLibraryElementParticipant"
id="org.eclipse.fordiac.ide.hierarchymanager.ui.deleteLibraryElementParticipant"
name="deletePlantElement">
<enablement></enablement>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should only be possible for Subapp files and system files

@oberlehner
Copy link
Contributor

When i delete sbc

image

The delete change is not created

image

And therefore also the subapp is not deleted:

image

@oberlehner
Copy link
Contributor

Another thing:

I assigend a nested subapp to the plant hierarchy:
image

Then i delete its parent:
image

PRess save
image

Until here it works fine
Then i do UNDO, press save again.
image

Then the wrong subapp is created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants