[JBoss JIRA] Created: (JBIDE-6245) .dsl files from Guvnor examples are not properly read-only.
by Vlado Pakan (JIRA)
.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
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
.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
14 years, 10 months
[JBoss JIRA] Created: (JBIDE-6159) Change Installed Drools Runtimes Preferences Page
by Vlado Pakan (JIRA)
Change Installed Drools Runtimes Preferences Page
-------------------------------------------------
Key: JBIDE-6159
URL: https://jira.jboss.org/jira/browse/JBIDE-6159
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: drools
Affects Versions: 3.1.0.GA
Reporter: Vlado Pakan
Assignee: Kris Verlaenen
Current Installed Drools Runtime Preferences page is little bit confusing (Menu > Window > Preferences > Drools > Installed Drools Runtimes). When user choose button Add... it opens dialog where user can specify Name and Location of existing Drools Runtime or choose button "Create New Drools 5 Runtime" which will open native dialog for selecting directory where to create new Drools Runtime and populate correctly Name and Location text field. This is little bit non standard behavior and user doesn't know what exactly happened.
Better will be to add button "Create..." bellow button "Add..." on the Drools Preferences page with the same functionality as button "Create New Drools 5 Runtime" and remove this button from Drools Runtime dialog. Both actions Create and Add actions will call the same Drools Runtime dialog just with different Title. It would be realy nice to have there some description what is going to happen actually what means Create and what means Add action within Drools Runtime dialog. It also would be nice to have self describing tooltips for buttons "Create..." and "Add..." on Drools Runtime Preferences page.
See attached screenshots.
--
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
14 years, 10 months
[JBoss JIRA] Created: (JBIDE-6440) Excel Spreadsheet importing on windows
by Jim Tyrrell (JIRA)
Excel Spreadsheet importing on windows
--------------------------------------
Key: JBIDE-6440
URL: https://jira.jboss.org/browse/JBIDE-6440
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Environment: Windows XP and Excel JBDS 3.0
Reporter: Jim Tyrrell
Attachments: Maximum_Benefits.xls
In my lab yesterday on Windows XP and Excel the importing of the Attached Excel spreadsheet and the created Customer.java resulted in an odd error problems when working with a Drools Project. In the morning session it only affected a few students, in the afternoon it was almost all making me wonder if this is an error that shows up after one or more restarts and recreations of the exact same project. The error was around that the setBenefitAmount is not available, or that there is a not a getter for Age. As you can see they exist, yet this error was there. The error might have gone away with a few saves of the Excel spreadsheet, but not always. Almost appears to me to be related to the load on the machine as in the afternoon a Antivirus scan started, making me think this is an odd timing, building, compiling, etc problem. I have only seen this on windows, and only on a few of the machines in the lab.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (JBIDE-6358) Adding inner class as Fact to guided Rule generates incorrect BRL source
by Vlado Pakan (JIRA)
Adding inner class as Fact to guided Rule generates incorrect BRL source
------------------------------------------------------------------------
Key: JBIDE-6358
URL: https://jira.jboss.org/browse/JBIDE-6358
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: drools
Affects Versions: 3.1.1
Environment: Linux 32bit
JBDS 3.0.1.v201005241821R-H78-GA
JDK Sun 1.6
Reporter: Vlado Pakan
Assignee: Kris Verlaenen
When inner class is used as Fact for guided rule it generates incorrect .brl file with error "BuildError: Unable to resolve ObjectType '<class>$<innerclass>'"
.brl source looks something like this:
<rule>
<name>guided</name>
<modelVersion>1.0</modelVersion>
<attributes/>
<metadataList/>
<lhs>
<fact>
<factType><class>$<innerclass></factType>
</fact>
</lhs>
<rhs/>
</rule>
When .brl file is modified and '$" is replaced with '.' i.e "<factType><class>$<innerclass></factType>" is replaced with "<factType><class>.<innerclass></factType>" error is fixed. .brl file is displayed without errors.
Steps to reproduce:
1. create new Drools Project
2. create new guided rule
3. add "import com.sample.DroolsTest.Message;" line to drools.package file
4. open new guided rule file add new when condition and select "DroolsTest$Message" as Fact type
5. save guided rule file and error will appear in Problems view
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (JBIDE-6248) .brl files from Guvnor examples are not properly read-only.
by Vlado Pakan (JIRA)
.brl files from Guvnor examples are not properly read-only.
-----------------------------------------------------------
Key: JBIDE-6248
URL: https://jira.jboss.org/jira/browse/JBIDE-6248
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
.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
14 years, 10 months