1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    117
    Vote Rating
    1
    RobWilson is on a distinguished road

      0  

    Default Answered: Using the Sencha Eclipse plugin in an existing project

    Answered: Using the Sencha Eclipse plugin in an existing project


    Hi,

    I have an Eclipse project that was created using the Google App Engine plugin, all of the web-services are pretty much setup as I planned.

    Now I would like to add some ExtJS code, but after following the steps for setting up the plugin, it tells me to create a new VJET project. Is there no way to convert/upgrade an existing project to work with the Sencha / VJET plugin?

    Thanks,
    Rob.

  2. SA will definitely generate what you need. You will create a SA project and move it into your existing project folders (or have two projects in an Eclipse workspace).

    My experience is that SA is a tremendous help when working with ExtJS (or Sencha Touch) but SA and the VJET plugin don't play along well enough. You can open any ExtJS (or ST) project in both Eclipse and SA just fine. However SA does not support adding comments to functions and references. This is a problem when working with the VJET plugin because all its magic comes from interpreting the VJETDOC comments you add. Because SA does not know about comments at the moment it overwrites any function level comments you add while using Exclipse.

    On the otherhand, SA has offers very little coding assistance so the plug-in does help when writing code *in* functions you've created using SA. Of course comments within a function *are* retained by SA so you are at least able to copy the parameters to local variables which you are then able to decorate with VJETDOC comments so the plug-in is able to offer code completion hints.

    <<I'm not sure whether I can make the GAE project 'inject' / 'include' the other ExtJS / Sencha JavaScript files >>

    I don't know why this would be a problem. I don't use a servlet engine but .war files are only zip files which are built by the IDE. I'm sure there will be an option to include 'external' files so the manifest is correct but it's not going to be much effort to create a process to do this.

    Sencha hosts their ExtJS releases so if you do not want to include the ExtJS (or ST) files, you can reference them on the Sencha site.

    SA generates a 'app.html' file. In my environment the essence of this file (references to ExtJS files, stylesheet files, js files, etc.) are copied into the main index.html where they sit alongside all the other references. For example, sometimes ExtJS is used to provide specific functionality inside a page rather than be the whole page.

    <<Any advice on best practices for targeting multiple platforms>>

    There's lots of information on the Sencha site and I don't consider myself an expert. However, can offer these comments. ExtJS and Sencha touch are the same at a philosophical level and even share a good amount of code. But they are different because the controls available on the desktop and mobile devices are different. If you are looking for wide ranging mobile support then you are likely looking at a single development. If you are looking to support desktop browsers then, again, you are looking at a single development. However, if you are looking to support mobile and the desktop then you will be looking at two developments.

    Components such as stores and models could be (are likely to be) the same across both developments. However while the structure of the mobile and desktop apps are going to be similar, the view and controller implementations are going to be different.

  3. #2
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    231
    Answers
    3
    Vote Rating
    6
    bseddon is on a distinguished road

      2  

    Default


    Sure, you import your existing project. As bizarre as it seems you do go as if to create a project but then you are given options to select a folder that contains an existing project. You are also able to exclude folders so they are not included by VJET when it analyses JS.

    There's a post about this stuff here:

    http://www.sencha.com/blog/sencha-ec...in-tips-tricks

    In your case you will probably want to use Sencha Cmd to create the bones of an ExtJS project in your existing project.

    There are two things to remember when using VJET (which can be used with any JS project):

    1) Use the VJET perspective;
    2) Import the Sencha type library so VJET knows how to interpret some of the ExtJS mark up.

  4. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    117
    Vote Rating
    1
    RobWilson is on a distinguished road

      0  

    Default


    Hi PMbseddon, thank you for your reply.

    I downloaded the 30 day trial of Sencha Complete, but I didn't see SenchaCmd within the 'complete' bundle - maybe it's not so complete after all ?

    My Google App Engine project (this is currently mostly Java rest services through JAX-RS, but I have also used Twitter Bootstrap for a few static pages with an initial login page), it needs to have a new admin user interface (ExtJS) and some new mobile user interfaces (iPhone, Android phones, iPad and Android tablets), I'm not sure whether I can make the GAE project 'inject' / 'include' the other ExtJS / Sencha JavaScript files (any tips here?). I'm not sure what will work with the Google App Engine project - because I must package up all the dynamic and static files in a single war file, I also need to ensure that the AJAX calls talk to the same domain.

    It's not at all clear to me whether I should use SenchaCmd to try and create these project(s?) or whether the Sencha Architect will generate what I need. I haven't actually tried either of them yet, as I am finishing off with an ExtJS3 project first and then I intend to do it all the 'new way'. Would you typically use either Sencha Architect or SenchaCmd to create the project?

    Any advice on best practices for targeting multiple platforms from the get-go will be great, but even this first stage of taking my project and adding an admin UI and multiple mobile UIs seems overwhelming.

    Regards,
    Rob.

  5. #4
    Sencha Premium Member
    Join Date
    Dec 2011
    Location
    London, UK
    Posts
    231
    Answers
    3
    Vote Rating
    6
    bseddon is on a distinguished road

      1  

    Default


    SA will definitely generate what you need. You will create a SA project and move it into your existing project folders (or have two projects in an Eclipse workspace).

    My experience is that SA is a tremendous help when working with ExtJS (or Sencha Touch) but SA and the VJET plugin don't play along well enough. You can open any ExtJS (or ST) project in both Eclipse and SA just fine. However SA does not support adding comments to functions and references. This is a problem when working with the VJET plugin because all its magic comes from interpreting the VJETDOC comments you add. Because SA does not know about comments at the moment it overwrites any function level comments you add while using Exclipse.

    On the otherhand, SA has offers very little coding assistance so the plug-in does help when writing code *in* functions you've created using SA. Of course comments within a function *are* retained by SA so you are at least able to copy the parameters to local variables which you are then able to decorate with VJETDOC comments so the plug-in is able to offer code completion hints.

    <<I'm not sure whether I can make the GAE project 'inject' / 'include' the other ExtJS / Sencha JavaScript files >>

    I don't know why this would be a problem. I don't use a servlet engine but .war files are only zip files which are built by the IDE. I'm sure there will be an option to include 'external' files so the manifest is correct but it's not going to be much effort to create a process to do this.

    Sencha hosts their ExtJS releases so if you do not want to include the ExtJS (or ST) files, you can reference them on the Sencha site.

    SA generates a 'app.html' file. In my environment the essence of this file (references to ExtJS files, stylesheet files, js files, etc.) are copied into the main index.html where they sit alongside all the other references. For example, sometimes ExtJS is used to provide specific functionality inside a page rather than be the whole page.

    <<Any advice on best practices for targeting multiple platforms>>

    There's lots of information on the Sencha site and I don't consider myself an expert. However, can offer these comments. ExtJS and Sencha touch are the same at a philosophical level and even share a good amount of code. But they are different because the controls available on the desktop and mobile devices are different. If you are looking for wide ranging mobile support then you are likely looking at a single development. If you are looking to support desktop browsers then, again, you are looking at a single development. However, if you are looking to support mobile and the desktop then you will be looking at two developments.

    Components such as stores and models could be (are likely to be) the same across both developments. However while the structure of the mobile and desktop apps are going to be similar, the view and controller implementations are going to be different.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar