[jbosstools-issues] [JBoss JIRA] (JBIDE-14333) have context sensitive parameterized commands for open file, show type etc. with proper API

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Wed May 15 16:18:06 EDT 2013


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

Snjezana Peco commented on JBIDE-14333:
---------------------------------------

I have created commands for the corresponding cheatseet actions.
They can be used as follows:
{code}
<command
	required="false"
	serialization="org.jboss.tools.project.examples.cheatsheet.openFileInEditor(path=/{project}/src/main/webapp/WEB-INF/templates/default.xhtml,fromLine=14,toLine=70)"/>
{code}

{code}	
<command
	required="false"
	serialization="org.jboss.tools.project.examples.cheatsheet.runOnServer(projectName={project})"/>
{code}

{code}
<command
	required="false"
	serialization="org.jboss.tools.project.examples.cheatsheet.launchJUnitTest(projectName={project},profile=arq-jbossas-remote)"/>
{code}

{project} will be replaced with the current project if a cheatsheet is opened using an URL from the workspace.

                
> have context sensitive parameterized commands for open file, show type etc. with proper API
> -------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-14333
>                 URL: https://issues.jboss.org/browse/JBIDE-14333
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: project-examples
>            Reporter: Max Rydahl Andersen
>             Fix For: 4.1.0.Beta1, 4.1.0.Beta2
>
>
> currently our custom cheatsheet commands requires the project name(s) to be known upfront. We should make them less reliant on project names and if at all possible have the project name calculated based on the project the cheatsheet file is open in.
> The commands should also actually be commands with named parameters so the order of parameters does not matter and we should make sure these have a good and long term API so cheatsheets will continue to work well in the future.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list