how to import zxing source for android into eclipse? - zxing

I have checked out the source of zxing from Subversion, and I would like to import the source to Eclipse IDE so I can examine the code and then make my project, which uses zxing.
How can I import the source?
If I choose File->Import->Existing Project into workspace, Eclipse doesn't seem to find the project!
Also, do I have to import the project to the workspace or simply add some libraries to my project in order to use it?

I followed this tutorial Click here but instead of dowloading the 2.1 version, I downloaded the 2.2 and dowload the core.jar from here. If you dont know how to import the library check this.

Related

Importing Swift framework in Xcode - where to put "import" instructions?

I am trying to import an existing SDK for ClickSend (https://github.com/ClickSend/clicksend-swift) into my existing iOS Swift project in Xcode, but the installation doesn't say much (at least not for me that comes from Visual Studio and C#).
This is the installation instruction:
Put the package under your project folder and add the following in
import:
"./clicksend-swift"
I can't seem to find any places called "import" where I can add ./clicksend-swift. I have been trying to add the files/folders to my project, but it doesn't compile (can't find the Alamo framework)
I guess this is something that is very trival and everyone understands, since the installation is so short and there are no Google results for doing a simple import project.
The ClickSend team has now updated library and installation instructions, so everything is clear on how to install the library. :)

How to import RESTful Server Hapi Fhir?

I want to build the simple RestServer Fhir. So for this, I have read this article http://jamesagnew.github.io/hapi-fhir/doc_rest_server.html.
At the end of the article, there is the link to download the simple server FHIR. This is the link
https://github.com/jamesagnew/hapi-fhir/tree/master/restful-server-example
Now I have this folder on my local pc and I have try to import this project on my workspace through eclipse but I'm not able to do this. I have this situation when I try to import this project
How can I import this project?
Old question, but in Eclipse you probably want to try to use: Import -> Existing Maven Project and point it to the pom.xml file in the folder you downloaded.

how to work with Eclipse Source Code in Eclipse itself

I have download entire Eclipse Helios/Indigo version Source Code. Now I want to work on it like some modifications and all. So I imported the entire sourceCode but now I am getting n number of errors while compiling. Moreover I am trying to RunAs> Plug-in is confusing me about the output I am getting is the changed one or what.
My Problems are-
How to import entire Eclipse SOurceCode in eclipse?
How to build the Eclipse SourceCode properly?
After modification in the SC of Eclipse , how to check the changes feasility?
I would define a target definition for your Eclipse distribution. Include all the features (including source) in the definition. Then you can use you importer to import plugins from your target definition into your workspace with sources and work from that. Having target definition is easier because you can change your setup on-demand.
Edit: Forgot to mention that in import wizard (File -> Import -> Plug-in Development -> Plug-ins and Fragments) make sure you select "Project with source folders" under "Import as". Otherwise class files will be imported as jars and not deflated into your project. Just makes it easier to work with them this way.

How the Eclipse implements importing project?

How the Eclipse implements importing project and which part of the Eclipse's codes works?
OK, we all know EC has function:file->import ->exsit project ...I am looking into the code of EC, but i cant find which part of it is used to implement this loading work.
In the part of Eclipse that you want learn more about (in this case for example in the Import Projects Wizard), you can open the Plug-in Spy using Alt+Shift+F1. It will tell you the class and the plug-in contributing the functionality. You can then check out the plug-in from the Eclipse CVS.

How can I import eclipse JDT classes in a project

I want to do the following imports in a class.
import org.eclipse.jdt.core.dom.*;
import org.eclipse.jdt.core.compiler.CharOperation;
import org.eclipse.jdt.core.compiler.IProblem;
import org.eclipse.jdt.internal.compiler.ClassFile;
import org.eclipse.jdt.internal.compiler.CompilationResult;
import org.eclipse.jdt.internal.compiler.Compiler;
import org.eclipse.jdt.internal.compiler.DefaultErrorHandlingPolicies;
import org.eclipse.jdt.internal.compiler.ICompilerRequestor;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException;
import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
import org.eclipse.jdt.internal.compiler.env.INameEnvironment;
import org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory;
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.text.edits.TextEdit;
How can I import the JDT within Eclipse?
Cheers.
I think I found an easier way to do this:
right-click on your project in the Package Explorer;
choose "Build Path...";
choose "Configure Build Path";
choose the Libraries tab;
click the "Add Variable..." button;
in the list box, choose the "ECLIPSE_HOME" entry, and then click the "Extend" button;
in the list box, open up the "plugins" folder entry, scroll way down, and shift-click all the org.eclipse.jdt.* JAR files that are in the file listing beneath the folders;
click OK until you're all the way back out.
That should do it.
Unless I'm misunderstanding you, you just need to include the JDT JAR files on your classpath; they're all available in your Eclipse plugins directory. So for your project, right-click on the project's name in the Package Explorer, go to the Build Path... submenu, and choose Configure Build Path. Then in the Libraries tab, use the "Add External JARs" button to add each of the relevant JAR files from the Eclipse plugins directory.
If your'e writing plugins for Eclipse, you shouldn't really be trying to instantiate the internal packages. According to this API Rules of Engagement
Stick to officially documented APIs. Only reference packages that are documented in the published API Javadoc for the component. Never reference a package belonging to another component that has "internal" in its name---these are never API. Never reference a package for which there is no published API Javadoc---these are not API either.
For the others, add the package name to the Import-Package entry in your manifest.
There are extension points into the JDT, but if what you want to do falls outside of these, then I'm afraid you're out of luck.
If you're just looking to use a compiler in your code, without relying on the JDK (i.e. on a JRE), then I would consider shipping with a more standalone Java based Java compiler like Janino.
If you need these classes, you are probably in a plug-in project already. You should be able to import these classes by applying the quick fix "Fix project setup..." (Ctrl+1) on the line where Eclipse is complaining about the imports. That will add the required plug-ins to your MANIFEST.MF file in the META-INF directory (org.eclipse.jdt.core and org.eclipse.jface.text in your case). You can also add them manually in your MANIFEST.MF file. If your project is no plug-in project (and you have no MANIFEST.MF file) you can convert it by right-click on the project -> PDE Tools -> Convert Projects to Plug-in Project first. If you add dependencies to plug-in projects in the normal way ("configure build path") the classloading won't work properly at runtime (though it will compile).