facebook

Why do I get a "Selection Adjustment Required" dia

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #293892 Reply

    enginsol
    Participant

    Hello,

    I am trying to create a “maintenance” Branch in a project currently in my workspace and connected to a CVS repository. All my current changes are checked in and I have previously tagged the entire project with a version tag. The first thing I try to do is get a copy of the versioned project into my workspace. So I select the project, right-click it and select Replace With –> Another Branch or Version. At this point, I expect the standard “Replace with Branch or Version” dialog – prompting me to select the version I want to use to update the workspace. Instead, I get a somewhat cryptic “Selection Adjustment Required” dialog. This contains the general message “Additional elements must be included in the current operation due to the relationship between the selected elements and the files in which they are stored“. In that dialog, there are two windows indicating: “These are the elements you selected” and “These are the elements that will be included in the operation“. The first area shows a tree rooted at “Java Workspace” which in turn includes my project and then some of my folders/files, but not all. For example, the Java class source files appear, however the “web” and “build” subfolders appear but no nodes appear underneath them (e.g., jsp files, xml, etc.). The second area indicates three “root level” elements: “Workspace“, “Java Workspace” and “Javascript Workspace“. All my source files (java, jsp, xml, etc.) seem to show up under these “roots”.

    I presume all this is occurring because shortly after updating to 7.0 and opening a JSP file in my project, I received a “MyEclipse Project Upgrade” dialog – stating “The project you have opened has JavaScript files which would activate excellent new JSDT features in Ganymede (Eclipse 3.4). This activate will alter your project files in a minor way. …“. I answered “yes”. I assume this “creates” the “virtual” Javascript Workspace etc. I also assume this is the case, because if I attempt the “Replace With –> Another Branch or Version” on another project that I have not yet “upgraded with the JSDT option”, I directly get the standard “Replace with Branch or Version” dialog as I would expect.

    Another thing, the project was version tagged before the upgrade to 7.0 (I was using 6.6 at the time).

    OK – so after all of that, I guess my question is: what are the ramifications of clicking “OK” on the Selection Adjustment Required dialog and will this cause any problems if/when switching to other versions (i.e., back to HEAD) at a future time? Also, will there be any lasting effect for sharing this project with other team members not yet upgraded to 7.0?

    Thanks –

    Here are my installation details:

    *** Date:
    Friday, January 23, 2009 2:12:52 PM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll

    #293953 Reply

    Riyad Kalla
    Member

    I’ve personally never seen that dialog before so it’s hard to say what the implications will be (the CVS team plugins are straight out of the Eclipse platform). Also from the (very detailed) description you gave of what you are seeing, it sounds like the left side of the dialog is what it *thinks* you want to run the operation against, and the right hand side is the actual files that will be effected, or selected for the operation to run against? Very odd… if all your state is checked into either HEAD or the branch you are working on though, you could try it, then do a compare against HEAD and see what changed to understand what the op is doing.

    Sorry I can’t be of more help.

    #293975 Reply

    enginsol
    Participant

    Thanks for your response. Would it be possible for you (or someone else) to try and re-create this situation? I think that would be possible by having a project baselined in CVS – using a previous version of MyEclipse (I would presume pre MyEclipse 7.0 and maybe pre-Ganymede). Then using 7.0, checkout that project and attempt to view/edit a JSP file that includes some javascript. At that point I would assume you would get the “would you like to upgrade your project…” prompt as described above. Answer “yes” to initiate the update, then update CVS with the project metadata changes (files). At that point, attempt the “Replace With –> Another Branch or Version…” and I would think you would see the “Adjustment” dialog I mentioned above.

    Also, it makes sense that the CVS plugin is just the “standard” one that comes with Eclipse. However, I was wondering what the “Javascript Workspace” is that shows up in the adjustment dialog. Is that also something defined by Eclipse or is that a MyEclipse thing?

    #293985 Reply

    Riyad Kalla
    Member

    Ah! I just asked our lead JS tool dev and he said it’s from the JavaScript enhancement and it’s contribution. You can ignore the dialog and continue about your way and everything will continue to act as it should. This was a side effect of us adopting some of the JSDT core tooling that effects the CVS contribution, but from what we’ve seen internally it’s been harmless so far. We have on our TODO list shortly to enhance this integration and smooth out some of these oddities.

    #293987 Reply

    enginsol
    Participant

    Excellent! I assume when you say “ignore” you mean I can answer “Yes” and allow the “adjustment” to take place – correct?

    Thanks in advance!

    #294018 Reply

    Riyad Kalla
    Member

    Yes that’s exactly right, just continue on through the dialog and keep working.

    #297207 Reply

    I have the same experience.

    I always say yes and it works perfectly.

    But it is annoying. I’d like to get rid of that dialog. Is there a way to get rid of the “javascript workspace” which doesn’t seem of any use to me?

    #306351 Reply

    cusdx
    Member

    > We have on our TODO list shortly to enhance this integration and smooth out some of these oddities.

    Any news on this? I’m getting the behaviour, 6 years later …

    I just tried detached and re-attaching my project from the repo, and the “Share Project – Share Project Resources” window lists my project twice, which I think is related (I started getting the other problem when this started happening). Would love to know why …

    #306352 Reply

    cusdx
    Member

    (just posting again so I can check the “Notify me” box …)

    #339073 Reply

    If it is harmless, why does it show up?

    I have this message all the time when I synchronize my project with the repository. I haven’t been able to figure out what it is trying to tell me. I always click OK. I don’t have the choice anyway, except to not synchronize. I cannot choose to proceed without adjustment. So it is just an annoying message I have to try very hard to ignore.

    Isn’t there a way to get rid of that message?

    #339083 Reply

    florianf,

    The “Selection adjustment required” popup doesn’t come for Team > Synchronize with repository option. The popup comes for Replace with > Latest from head , Replace with > Another branch or version, etc.

    Can you please clarify whether you are seeing the “Selection adjustment required” popup for Team > Synchronize with repository option ?

    Regarding the “Selection adjustment required” popup, we have filed a PR for the dev team to look in to it. sorry for the inconvenience caused.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Why do I get a "Selection Adjustment Required" dia

You must be logged in to post in the forum log in