[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6245) .dsl files from Guvnor examples are not properly read-only.

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Mon May 3 11:32:05 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12528657#action_12528657 ] 

Vlado Pakan commented on JBIDE-6245:
------------------------------------

I agree with you that it should be possible to edit read-only file when user remove read-only tag but this is not possible in Guvnor Repositories view or I don't know how.
.
I thing it should not be possible to edit these read-only files from Guvnor Repository because user is making changes which he is not able to save so he is just wasting his time. Unless there is a way how to remove read-only attribute of changed file afterwards.

Anyways there are files e.g. drools.package, MortageModel.model.drl... which are read-only and when they are opened user is not able to change content of the file using editor. It's not possible to write anything to these files.

So it's confusing when user can change some read-only files and some of them cannot.

> .dsl files from Guvnor examples are not properly read-only.
> -----------------------------------------------------------
>
>                 Key: JBIDE-6245
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6245
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: drools
>    Affects Versions: 3.1.x
>         Environment: Fedora Linux v.11
> JBossTools-Update-3.1.0.v201004291720R-H72-GA
> Java 1.6Sun JDK
> JBoss EAP 5.0
>            Reporter: Vlado Pakan
>            Assignee: Kris Verlaenen
>             Fix For: 3.1.x, 3.2.next
>
>
> .dsl files from Guvnor Repository examples are opened as read-only but it's possible to modified them via .dsl file editor in JBT.
> When trying to save this read-only file JBT display this error:
> Save Failed
> org.guvnor.tools.utils.StringInput cannot be cast to org.eclipse.ui.part.FileEditorInput
> It should not be possible to modify read-only .dsl file.
> Steps to reproduce:
> 1. deploy guvnor to server and start server
> 2. open guvnor perspective
> 3. add default guvnor repository connection using Guvnor Repositories view
> 4. right click on newly created Guvnor connection and open Guvnor Console
> 5. choose ok to empty login dialog and click yes to install Guvnor examples
> 6. open <Guvnor connection> > pacakges > mortages > ApplicantDsl.dsl file from Guvnor Repositories view
> 7. select first expresion in opened ApplicantDsl.dsl file and click on edit button
> 8. click on OK button in Edit Language Mappiing dialog. It's not necessary to make any changes.
> 9. Choose save for ApplicantDsl.dsl file and error mentioned above is displayed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list