import

What's the syntax to import a class in a default package in Java?

Possible Duplicate: How to access java-classes in the default-package? Is it possible to import a class in Java which is in the default package? If so, what is the syntax? For example, if you have package foo.bar; public class SomeClass { // ... in one file, you can write package baz.fonz; import foo.bar.SomeClass; pu...

How can I play a library item with four keyframes as a single animation?

I'm using AS3, and have one simple layer with 4 keyframes If I import it to another fla file as a library item, it keeps showing me all keyframes, I don't want that I want it to show me the whole animation. Like, if I have an animation of me swinging a baseball bat, I don't want to see all the keyframes seperately imported into the libr...

Where is java.nio.file

I'm new to java so I am not familiar with the framework yet. I am reading java documentation that tells me there should be a java.nio.file namespace. But when I attempt to import it the precompiler is complaining that it doesn't exist. What's up? ...

Avoid repeated imports in Java: Inherit imports?

Is there a way to "inherit" imports? Example: Common enum: public enum Constant{ ONE, TWO, THREE } Base class using this enum: public class Base { protected void register(Constant c, String t) { ... } } Sub class needing an import to use the enum constants convenient (without enum name): import static Constant.*; /...

Importing UML Diagrams into Visual Studio

In school I have learned that creating UML Diagrams/Models is great design practice before taking on a project. I have found it quite useful myself, in doing so I tackle projects much faster, and my overall design tends to be better. I've noticed a basic redundancy issue when it comes to writing code. In Visio you can be very descriptiv...

Avoiding #import of header for abstract-only parent class

I develop CHDataStructures, a library of Cocoa data structures to supplement those in Foundation. It includes a fair number of classes (stacks, queues, and dequeues) that share common implementation details, so it makes sense to design them with a common parent class which I treat as abstract (Objective-C doesn't natively enforce this co...

Importing txt files to excel makes linebreaks disappear

Hi everyone! I am trying to import a text file into excel (2007). The file was exported from a C# text box and it contains linebreaks. Although when I import it (with the text import wizard that comes with excel), the linebreaks disappears completely. I would prefer not to have to write a VBA file and place in an excel file to run but i...

How to find out if I have installed a Python module in Linux?

I tried to install a Python module by typing: sudo python setup.py install After I typed this command I got a lot of output to the screen. The lest few lines are bellow: writing manifest file 'scikits.audiolab.egg-info/SOURCES.txt' removing '/usr/lib/python2.5/site-packages/scikits.audiolab-0.10.2-py2.5.egg-info' (and everything under i...

SQL Server 2005: Improving performance for thousands or Insert requests. logout-login time= 120ms.

Can somebody shed some lights on how SQL Server 2005 deals with may request issued by a client using ADO.NET 2.0. Below is the shortend output of SQL Trace. I can see that connection pooling is working (I believe there is only one connection being pooled). What is not clear to me is why we have so many sp_reset_connection calls i.e a ser...

How to use imported css styles in GWT correctly

Imagine you created the following simple widget with UiBinder: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"&gt; <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style type="my.package.Widget1.Widget1Style"> .childWidgetStyle { ...

AS3 Import FLA file

Hi, I have two as3 projects. Project A has 2 files (fla with 1 frame and some components and as with some behavior and a default constructor). I want to use project A in my project B through as3 code. But when I do something like A a = new A(x, y, z); I receive lots of errors that in my A.as I am using undefined properties (those define...

How to execute sql-script file using hibernate?

I gonna write several intergration tests which will test interatcion with db. For each test I need to have a certain snapshot of db. Each db snapshot saved in .sql file. What I want is to execute certain script file in certain test method, like this: @Test public void test_stuff(){ executeScript(finame.sql); ... testing logic ......

Python thread for pre-importing modules

I am writing a Python application in the field of scientific computing. Currently, when the user works with the GUI and starts a new physics simulation, the interpreter immediately imports several necessary modules for this simulation, such as Traits and Mayavi. These modules are heavy and take too long to import, and the user has to wai...

Import Visual Studio TFS workspaces

Is there a way to import Visual Studio TFS workspace, I have over 30 workspace and I need to import them to a TFS on new machine. Thanks ...

Use function from Python script in OS path

I have a third-party Python script (foo.py) in a folder that is in my system path (but not the Python sys.path). foo.py is not part of any Python module. I am writing another script (bar.py) in which I'd like to call a function located in foo.py. Is this possible? Can it be done without explicitly naming the folder of foo.py? Thanks. ...

What are the common imports I have to use in Java for any program?

I created a class in NetBeans that will be used for string manipulation only. What imports should I use. I can't even declare a string variable because it didn't autogenerate imports for me. :P Since I'm new, I have no clue what is the bare necesities in the Java world. This isn't working: /* * To change this template, choose Tools |...

SVN import confusion

I downloaded the SVN source, got it installed and added to my path for easy access. So far, so good. svn --version svn, version 1.6.6 (r40053) compiled Oct 22 2009, 14:13:09 Reading the documentation (that everyone will want to point me to anyway), it instructs me to create a project: svnadmin create tdl Then, to add an unversio...

lift import net.liftweb returns an error "not found: value net"

Hi, I'm new with scala and lift but I already got the pocketchangeapp up and running and playing around with the RestAPI thing in it. Now I created a new project and it worked quite well until last night. I made my latest changes and commited them in svn but hat a problem with my workspace so I deleted my projects and did a checkout of ...

A few questions regarding Pythons 'import' feature.

I just downloaded Beautiful Soup and I've decided I'll make a small library (is that what they call them in Python?) that will return results of a movie given and IMDB movie search. My question is, how exactly does this import thing work? For example, I downloaded BeautifulSoup and all it is, is a .py file. Does that file have to be in...

Objective-C #import a whole directory

Hey guys, sure hope you can help me. I've got around 50 Model-Classes stored in a seperate Folder (not only a group) and I really don't want to write an #import for each of these classes. Is there a way to import a whole directory? I know it's possible within other programming languaged and perhabs I simply used wrong syntax. Plz hel...