Bug 1015557 - Data Modeller resets Project Explorer package
Summary: Data Modeller resets Project Explorer package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER5
: 6.0.0
Assignee: Walter Medvedeo
QA Contact: Sona Mala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-04 13:50 UTC by Sona Mala
Modified: 2014-08-06 20:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:17:16 UTC
Type: Bug


Attachments (Terms of Use)
Video file - step to reproduce (1.33 MB, video/webm)
2013-10-04 13:50 UTC, Sona Mala
no flags Details

Description Sona Mala 2013-10-04 13:50:11 UTC
Created attachment 807663 [details]
Video file - step to reproduce

Description of problem:
Save operation of the data modeller resets Project Explorer package to <default> and sometimes disables dropdown menu for "New Item".


Version-Release number of selected component (if applicable):
BPMS 6.0.0 ER3

How reproducible:


Steps to Reproduce (see attached video):
1. open a project with some packages
2. select any package 
3. open data modeller
4. add class
5. save

Actual results:
After few minutes the project explorer shows <default> package instead of package which was selected in step 2.

Expected results:
The project explorer shows still the same package (no changes).

Additional info:
Sometimes happen that "New Item" enables just "Project" item and "Business Process" item. I hope that this is reaction on reset a state of the project explorer.

Comment 1 Edson Tirelli 2013-10-10 15:41:51 UTC
Disabling the New Item menu items is something we need to address. The package reset I am not so sure as the data modeller is global to all packages. I guess it would be nice to keep the previously selected package just for user friendliness.

Comment 2 manstis 2013-10-14 13:30:39 UTC
Walter, I suspect your use of ProjectContextChangeEvent in DataModelerScreenPresenter.saveAndChangeProject(boolean, Project) is causing this behavour? Changing the project clears the package.

Comment 3 Sona Mala 2013-10-17 13:02:46 UTC
State in ER4:
Project explorer shows right package but "New Item" drop-down menu has disabled all options (only Project is enabled). The behaviour is like the any Path is selected.

You can enable all options if you select different package in Project Explorer.

Comment 4 Walter Medvedeo 2013-10-17 16:39:45 UTC
Notifications from datamodeler to the project explorer was improved in order to let the project explorer be aware of package/files creation.

The following commits introduces the changes.

master: http://github.com/droolsjbpm/kie-wb-common/commit/570d20d8d

6.0.x: http://github.com/droolsjbpm/kie-wb-common/commit/e889ca53b

Comment 5 Sona Mala 2013-12-17 15:06:28 UTC
Verified for ER5.

Package is still selected and New Item contains actual path of Project Explorer.


Note You need to log in before you can comment on or make changes to this bug.