How to import Google App Script projects into Eclipse? - eclipse

I searched if there is a way to work on my Google App Script projects using Eclipse (Eclipse Luna) and I landed on this page. But I couldn't follow it to the end because the Eclipse dialog that should've shown my projects so I can import what project I want to start working on, was empty and had only a folder icon named My Drive. I clicked and double-clicked it, nothing happens.
So I searched more and found this page and when I reached the authorization section , I felt totally lost !
The authorization page instructed me to register my application using this page but now I don't know what else should I do to enable Google App Script development on Eclipse !
So how can I enabled Google App Script devlopment on Eclipse ?

The Google Plugin is based on the Google Apps Import/Export API. From the documentation:
The API allows access to standalone scripts (the scripts that appear in your Google Drive). Container-bound scripts cannot be accessed through the API.
So if you created an earlier project from with (for example) Google sheets, it will not show up in the import.
To test:
login to Google and go to google Script.
Choose: Create a blank project.
Save the project as (for example) my-project.
The project you created should now show up in the Import wizard.
See also here: developers.google.com/eclipse/docs/apps_script :
Creating a new project in Eclipse is not supported. You can only import existing projects.
Renaming the project in your workspace does not rename it in the script editor or Google Drive.
All .gs and .html files that are to be saved back to Google Drive must be in the project's root folder. Other types of files, and files in subfolders of the Eclipse project, are not considered to be part of the Apps Script project on Google Drive.
Autocomplete suggestions are not provided for libraries or advanced Google services.
Autocomplete may not always reflect the methods most recently added to Apps Script. Any code valid in the script editor will still run correctly."

Related

How To add custom styling to dnn Default HomePage?

How can we remove default HomePage Theme with Custom Theme in DNN 8? I haven't got any blog providing me clear idea about it.
You can change the styling of a page by changing the "Skin" or "Theme" in the Page Settings on the page.
Update:
To create a skin I highly recommend you follow my tutorials:
http://www.christoc.com/Tutorials/All-Tutorials/aid/8
In order to use the DNN Theme Project template (new with the 4.0 release of Christoc’s development templates, January 2015), you will need to follow the steps laid out in this tutorial exactly. If you choose to not follow each of the steps, you may run into trouble and will have to figure out things on your own. As always, support for our tutorials is provided in the form of paid DNN Support and Consulting. You can also visit www.dnnchat.com and possibly get some free support there, but no guarantees are made that support will be provided there.
Prerequisites
The latest release of the Project templates requires Visual Studio 2013+, it will not work on VS2010 or VS2012.
As with the Module Development templates, the Theme development template requires you to have your DNN Development environment configured in a specific way. You should have your development environment running at the URL http://dnndev.me/ good news for you, it is very easy to do, all you need to do is follow this tutorial.
Once you have your environment setup, you need to install the Project templates. This is another easy step, simply follow this tutorial.
Now that you have the Templates installed, you can get to doing the real work, working with the Theme project template itself.
How to use the DNN Theme Project Template
Run Visual Studio 2013 as an Administrator (right click on the shortcut to do so)
File –> New Project
Choose the Visual C# option from the Languages section of the new project dialog
Select the DotNetNuke Folder
Choose the DotNetNuke C# Compiled Theme template for your project template
For the new project creation screen using the following settings
Name: ThemeName (something unique here, example MyFirstTheme)
Location: c:\websites\dnndev.me\portals_default\skins\ (this assumes you setup your development environment as instructed) DO NOT PUT THE SKIN IN /PORTALS/#/SKINS/
Solution: Create new solution
Create directory for solution : Unchecked (this will cause path problems if checked, the templates assume the SLN is in the same folder as the project file)
Add to source control: Unchecked
Click OK
Once your Theme has been created, you will want to perform the following steps.
After project creation steps
Delete the Documentation folder (it isn’t needed)
Switch from DEBUG to RELEASE mode
Build the project. This will create an INSTALL and SOURCE zip file in the /install folder within the project’s folder on the file system (/portals/_default/skins/themename/install/)
Login to your DNNDEV.me site with a HOST/Super User account
Navigate to the Host/Extensions page
Upload the newly created INSTALL zip file (created in step 3) using the Install Extension Wizard on the Host/Extensions page.
Navigate to a Page and apply the skin to your page.
A few items of Note:
The Theme template and package MUST be in the /portals/_default/skins/ folder, not in one of the individual portal’s (/portals/0/skins/) folders.
The Containers are inside of the Containers folder, inside of the project. This is not where DNN expects them to be, they need to be in /portals/_default/containers/ThemeName/. The Project templates will put them into that location in your development environment when you BUILD the project in RELEASE mode. During Installation in another environment, when installing the INSTALL package for the theme will do the same thing.

Debug Alfresco 4.2 Web scripts in Eclipse

Is there a way to debug Alfresco Web Scripts at runtime ? I am talking about webscripts server side. In particular I am developing an AMP for Alfresco 4.2 which make use of a WS in the classic form: .xml + .js + .ftl, therefore not a Java Backed Web Scripts.
The .js controller is developed as part of the AMP, and is placed in the relevant directory for being uploaded at AMP developing/run time.
I would like to put breakpoints in .js controller to use all facilities provided by the Eclipse debug perspective.
If you want to do this thing in eclipse below blow will help you in that case.
Details are on middle of blog.
http://axel-faust.de/?cat=3&lang=en
There is also debugger available in alfresco and share ,in webscript servuce page.
You will also find option for same in below url.
http://localhost:8080/alfresco/service/index
Click Refresh Web Scripts on the Web Scripts Home page to ensure the Web Script Framework has cleared its caches.
Click List Web Scripts.
Click Alfresco JavaScript Debugger.
Click Enable to launch the JavaScript Debugger in a separate window.

Linked Files and Folder in IntelliJ

As previous Eclipse user switched to IntelliJ I would like to be able to access folder external to my project from inside the IDE, while developing.
In Eclipse I was using the feature Creating linked resources.
I wonder if there is any feature in IntelliJ that helps me to access external files and folder in a similar way (for instance, if I want to edit the configuration of my application server which is located outside my project).
Yes you can do it by adding an new content root in your module.
You do that from
Project Structure (alt+ctrl+shift+s) - Modules - "My-Module" - + Add Content root
Now you have the contents of the added folder available in your project.
I was searching for a way to get the asset folder link working in IntelliJ as it was working in Eclipse and I found following link in the wikis of libgdx itself.
Linking the asset directories
It describes basically three approaches:
Just copy the asset folder into the desktop folder. (BAD)
Use the asset folder in the android project as working directory for the desktop project through 'Run-Configurations'. (GOOD)
Create a symbolic-link (GOOD)
I tested the 2nd option and it's working fine for me.

AppEngine with Eclipse - Common war/ resources

I have been creating Google AppEngine projects using Eclipse SDK 3.6.1.
In all of the projects I have a StyleSheet default.css (all seperate copies) that I have in the war folder.
I would like to keep this file in one place to be included in all of the projects.
I have created a copy in the workspace folder.
I have tried linking the file into the war folder, it shows up as a linked file, I can edit it, and all looks fine.
When I run the application I can see by the webpage created that it is not recognizing the linked file.
I hope that I am missing something simple, I do not like keeping multiple copies of a common resource.
Any ideas?
Thanks,
RRaney
Creating a symbolic link to the file will do the job.
For example, on a Windows 7/Vista machine, run a command like this from the shell (as an administrator) to link two folders:
mklink /D C:\workspace\YetAnotherAppEngineProject\war\shared C:\workspace\SharedResourcesProject\shared
I assume that when you wrote "I have tried linking the file into the war folder" you meant that you tried linking a file/folder into the war folder using Eclipse's linked file/folder functionality. These links are limited to the Eclipse IDE and managed by it (int the .project file) - the Google App Engine runtime doesn't recognize them since it accesses the file system directly and not through Eclipse.
A symbolic link is done at the file-system level, and Google App Engine will recognize and respect it properly.
To create a symbolic link, use the "ln" shell command on Linux. On Windows Vista/7 use "mklink" (earlier Windows versions only have "hard links" which are not as nice for this purpose but should also get the job done, see the "linkd" command).
Have you tried "Static Files and Resource Files"?

gwt> importing a sample project

I'm just barely after 2 hours of trying to force it to work and looking for answers online.
How in the world do you import a sample gwt application into your eclipse and make it run?
by the way, I cannot find "projectCreator.cmd" anywhere in my files, where is it suppose to be assumming i've used eclipse plugin updater to d/l gwt 1.7.1?
Well, this is what I ended up doing though it ugly and probably not how it was meant to be:
I create a new application called it "bla" or whatever
then right on project > import... > general\file system... (as in import files into projects)
then I selected the top folder of one of the sample applications, for example ..gwt..samples/Mail
selected all folders and files.
selected option "override without warning\asking"
de-selected option "copy entire folder structure"
that's about it. I went to build.XML to rename the project name to "bla" and then I clicked run as a web application.
good luck.
For GWT 2.4: In every project's root you will find a README.txt. If you follow its directions (involving creation of Eclipse project configuration via Ant) you can import the project easily. To run it I additionally had to configure the project's GWT settings (project's context menu -> Google -> WebToolkit settings).
First, Create an Eclipse project for your source, if you haven't already done so, by selecting File > New > Java Project. Then choose Create project from existing source and set up your project. At this point, your source will be loaded in Eclipse, but the project's build path may not be set up properly, and you may see build errors.
Alternatively, if your application's source tree already contains a .project file, either because you had previously worked on it in Eclipse or because it was generated by a tool like GWT's webAppCreator, you can import the project by going to File > Import > General and selecting Existing Projects into Workspace
To enable Google Web Toolkit, right-click your project and select Google > Web Toolkit Settings. Check the Use Google Web Toolkit box and click OK to apply the change.
Enabling App Engine for your project is similar: right-click your project and select Google > App Engine Settings. Check the Use Google App Engine box and click OK.
Source : https://developers.google.com/eclipse/docs/existingprojects
What I did to start it:
My workspace is at: /Users/ievgennaloiko/Documents/helpdesk/
I have downloaded the gwt to Downloads folder. Extracted it. Navigated from terminal to samples and run
ant eclipse.generate
for each sample project I need to import to Eclipse. Even you can run this command on whole sample project.
Next I've copied the samples folder to /Users/ievgennaloiko/Documents/helpdesk
Started Eclipse.
File import -> Existing proj into ws -> /Users/ievgennaloiko/Documents/helpdesk/samples/DynaTable
Copy project into ws - Unchecked.
Next I had to go to properties of the project Google-WebToolkit->Use web toolkit.
Here are the arguments I run with, check for correspondence:
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -port
auto - codeServerPort 9997 -war
/Users/ievgennaloiko/Documents/helpdesk/samples/DynaTable/war
com.google.gwt.sample.dynatable.DynaTable