[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3663) Show a warning when the user tries to open the launch configuration but the server editor is dirty

Rob Stryker (JIRA) jira-events at lists.jboss.org
Tue Feb 3 03:11:44 EST 2009


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

Rob Stryker commented on JBIDE-3663:
------------------------------------

Turns out I already fixed one of the ways that Tomcat did it successfully and we did not... however this specific use case has much deeper causes.

When you click on the "open launch" hyperlink, it can only do it out of the original (clean) IServer, and not the dirty IServerWorkingCopy. This is because ServerWorkingCopy.getLaunchConfiguration has the following impl:

	public ILaunchConfiguration getLaunchConfiguration(boolean create, IProgressMonitor monitor) throws CoreException {
		if (server != null)
			return server.getLaunchConfiguration(create, monitor);
		return null;
	}

Clearly the working copy is only using the clean server to create its launch config.  I'll create an eclipse bug asking if this is intended and explaining our usecase, then modify this issue to "later / upstream". 

> Show a warning when the user tries to open the launch configuration but the server editor is dirty
> --------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3663
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3663
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: JBossAS
>    Affects Versions: 3.0.0.CR2
>         Environment: JBT N200901190612, java 1.5, windows XP
>            Reporter: Adrian Mitev
>            Assignee: Rob Stryker
>            Priority: Optional
>             Fix For: 3.0.0.GA
>
>
> Something like "Server is not saved yet - the console configuration might be out of date. Do you want to save the serrver before opening the launch configuration ?" when users click the "open launch config".

-- 
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