Bug 1009846

Summary: Read-only Java Editor allows changes but not saving
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: Jan <jschatte>
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lpetrovi
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:18:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Krejčová 2013-09-19 09:54:48 UTC
Description of problem:
The new Java Editor has several interconnected issues. The main being that it allows you to change a file but not save these changes.

If it is supposed to be read-only as per bug 1001561 comment 1, it should not allow users to even make any changes. In that case, Java Editor is a bit of a misnomer (since no editing can/should be done). 
Also, the 'editor' pane is in a tab (see at the bottom of the 'editor') called Edit - using the Source tab that is present in many other editors would be better for this read-only 'editor'.

Either keep the java code editable and allow users to save the changes made, or really make it read-only.


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

Comment 1 Jan 2013-09-20 16:20:04 UTC
The java editor has been changed to conform it to other source editors that are already in use throughout the  platform.

master: https://github.com/droolsjbpm/kie-wb-common/commit/17e68c43e911ebeeddcb72d9f25034b1412f576d

6.0.x: https://github.com/droolsjbpm/kie-wb-common/commit/d51c30844e198245913674bb323dd9a1a7dff88e

Comment 2 Zuzana Krejčová 2013-10-21 07:42:02 UTC
Verified on ER4 - java source files now open in source view, non-editable.