Aptana Studio
  1. Aptana Studio
  2. APSTUD-2543

Deploy not working with IAdaptables for IResource

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Low Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: publishing, PyDev
    • Labels:
      None

      Description

      {html}<div><p>Assigned to <a href=
      "http://aptanastudio.tenderapp.com/discussions/questions/1090-aptana-301-django-deploy-function">
      Tender discussion #1090</a>. Currently the deploy does not work for
      elements that are not instances of IResource in the tree... in this
      case, any file that's a source folder in PyDev doesn't work with
      the deploy action, sometimes the user may set the project root as
      the source folder, in which case the action won't work for that
      project (nor anything below).</p>
      <p>To reproduce, create a PyDev project with a source folder and
      try to do the deploy of the source folder (in this case, the source
      folder is an IAdaptable that does adapt to IResource properly).</p></div>{html}

        Issue Links

          Activity

          Hide
          Fabio Zadrozny added a comment -
          {html}<div><p>Hi Ingo, I'm assigning to you so that you can reassign to
          someone else </p></div>{html}
          Show
          Fabio Zadrozny added a comment - {html}<div><p>Hi Ingo, I'm assigning to you so that you can reassign to someone else </p></div>{html}
          Hide
          Michael Xia (Inactive) added a comment -
          {html}<div><p>Hi Fabio,</p>
          <p>The expression applied for showing each deploy menu does use
          adapt on IResource instead of instanceof. Could it be that
          org.eclipse.core.runtime.adapters isn't used for the PyDev source
          folder class to have an IAdapterFactory handle the adaptation to
          IResource?</p></div>{html}
          Show
          Michael Xia (Inactive) added a comment - {html}<div><p>Hi Fabio,</p> <p>The expression applied for showing each deploy menu does use adapt on IResource instead of instanceof. Could it be that org.eclipse.core.runtime.adapters isn't used for the PyDev source folder class to have an IAdapterFactory handle the adaptation to IResource?</p></div>{html}
          Hide
          Fabio Zadrozny added a comment -
          {html}<div><p>The adapter factory is there (it's also required for other
          things such as the launch shortcuts, decorations, etc):</p>
          <p><a href=
          "https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/plugin.xml">
          https://github.com/aptana/Pydev/blob/master/plugins/org.python.pyde...</a></p>
          <p><a href=
          "https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/ModelAdapter.java">
          https://github.com/aptana/Pydev/blob/master/plugins/org.python.pyde...</a></p>
          <p>(all the Python elements implement IWrappedResource, for which
          the factory is registered in the plugin.xml)</p></div>{html}
          Show
          Fabio Zadrozny added a comment - {html}<div><p>The adapter factory is there (it's also required for other things such as the launch shortcuts, decorations, etc):</p> <p><a href= "https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/plugin.xml"> https://github.com/aptana/Pydev/blob/master/plugins/org.python.pyde ...</a></p> <p><a href= "https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/ModelAdapter.java"> https://github.com/aptana/Pydev/blob/master/plugins/org.python.pyde ...</a></p> <p>(all the Python elements implement IWrappedResource, for which the factory is registered in the plugin.xml)</p></div>{html}
          Hide
          Fabio Zadrozny added a comment -
          {html}<div><p>Also note that the deploy menu does appear, although it gets
          disabled when the mouse is hovered over it.</p></div>{html}
          Show
          Fabio Zadrozny added a comment - {html}<div><p>Also note that the deploy menu does appear, although it gets disabled when the mouse is hovered over it.</p></div>{html}

            People

            • Assignee:
              Praveen Innamuri
              Reporter:
              Aptana
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development