eclipse

Legacy C++ project using Makefile ..moving to Eclipse IDE?

I have a legacy C++ project on Linux which uses the typical: ./configure make make install to build and install. I would really like to build it instead with an IDE like Eclipse. Is this doable? Is there something in Eclipse that can parse the original Makefile(s) and turn it into an Eclipse project? ...

What are the exact versions of stuff you have to install in order to be able to step-debug a Scala program?

How do YOU debug a Scala program? I mean YOU as in the person posting the Answer :) Please answer only from personal experience, not from stuff you've heard or read on the Internet. You should not believe everything you read on the Internet, especially tales of complex open-source software configurations that actually work :-) The are...

Eclipse won't save new files in the original project folder

I created a new project from an ant file that was in a folder outside of the Eclipse workspace, under version control. If I change a file that was already part of the project, it gets updated in its original location. BUT, when I create a new folder, it gets created outside of the original project folder, inside the Eclipse workspace, ou...

Django Development Environment Setup Questions

Hello, I'm trying to set up a good development environment for a Django project that I will be working on from two different physical locations. I have two Mac machines, one at home and one at work that I do most of my development on. I currently host a Ubuntu virtual machine on one of the machines to host the Django environemnt, install...

Does Visual Studio 2010 support something like Eclipse's "Generate delegate methods"?

Eclipse allows us to define a class as: interface MyInterface { void methodA(); int methodB(); } class A : MyInterface { MyInterface myInterface; } and then with this "Generate delegate methods", it will implement all needed methods for the interface, redirecting their logic to myInterface's methods: class A : MyInterfac...

Is there a way put a timestamp in the file header automatically when saving in Eclipse?

I am a PHP developer using Eclipse PDT. I would like a timestamp put automatically in my file headers whenever I save the file. Maybe as a replacement of a variable. Let's say I use this header in a file: /** * ${filename} * ${timestamp} */ When I save the file I would this to be replaced with: /** * Myfile.php * 4/20/2010 19:04...

Eclipse CDT -- How to map Linux path's to Windows paths?

We have a C-code project written for a Linux environment but we also want the ability to view and edit the code on Eclipse for Windows and have the headers be resolved. The problem we are facing is that a lot of the headers are included with absolute paths in the Linux format such as: #include "/path/to/custom/header.h" What I would l...

How call hierarchy is implemented

hi, i just want to know how the call hierarchy is implemented in eclipse IDE ?am not able to get any good links for that. Help ...

Want to create an open file with filter in eclipse3.4

I am using eclipse 3.4.I often keep searching for files in my project.I wanted to create a file search with filter.Like i should be able to configure the filter in preferences.later when i press ctrl+shift+ F (Assuming this is what i give the shortcut) it should display only those files. Why i came up with this is bcos i might want to av...

.so build error coming - please suggest (eclipse CDT cygwin)

Build of configuration Debug for project myso ** make all filename.d:1: * multiple target patterns. Stop. The makefile looks like: # All Target all: libmyso.so # Tool invocations libmyso.so: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @echo 'Invoking: GCC C++ Linker' g++ -L"E:\cygwin\lib" -shared -o"libmyso.so" ...

How to import a package from Eclipse?

In one of my directories I have all .java files which belong to one package ("game"). Now I want to create one .java file which does not belong to this package and which imports the "game" package. If I create a new file and write import game; then Eclipse complains that it does not know what the "game" package means. Can somebody please...

Unnecessary 'else' statement

As you know, in Eclipse you can turn on "Unnecessary 'else' statement" check that will trigger on if-then-else with premature return. And, from my experience, there are two most possible situations when use such statement: 1) Pre-check: if (!validate(arg1)) { return false; } doLotOfStuff(); 2) Post-check: doLotOfStuff(); if (con...

Eclipse uses 100 % CPU randomly

Hi everyone! My eclipse sometimes starts using 100 % of my CPU very spontaneously. I can't figure out why it needs that much CPU usage. There is no background task like "building workspace" running. After some time the CPU load drops to 0 and everything is normal. I can't find any information related to the problem in workspace/.metad...

How to force my method to accept objects from external software?

I have a method which needs to take a callback object as an argument and then (at the moment when it's needed) my method will call a specific method of the callback object. I wrote a class called Manager which has a method called addListener. As the argument for this method I need to use a callback object which is defined by the externa...

automatically generate header

Hello, I wonder if you could automatically generate header header class functions automatically for a given package (make a batch processing) ..? Thank you. ...

JApplet loading problem

Hi all, I want to convert an java application to applet, but I an having problems to load it in the browser I presume this is because of the package. package com.applet; import java.applet.Applet; import javax.swing.JApplet; import javax.swing.SwingUtilities; //import javax.swing.JOptionPane; @SuppressWarnings("serial") public clas...

Debugging my Maven2 plugin in Eclipse

I've written a plugin for Maven2 in Eclipse. How can I run the plugin in debug mode in Eclipse? If possible, I'd like to avoid remote debugging an external process and I'd also like to avoid installing plugins into Eclipse. ...

Eclipse BIRT - Unnecessary inline style with external CSS when rendering HTML

Hello! I am designing a report using external CSS with BIRT 2.5. When BIRT renders the html report, it creates copies of each external style to inline styles (name style_x) in the resulting html. The report.design contains: <list-property name="cssStyleSheets"> <structure> <property name="fileName">… mycss.css</property> <property nam...

Doing a loop on android (Audio)

I have a track I want to play 'megadeth', i'm calling it by... final MediaPlayer mp = MediaPlayer.create(this, R.raw.megadeth); And playing it by using 'mp.start' And I just want to know, how can I get this audio mp3 to loop? -Can you give me the code? Thanks alot, ...

Getting a variable out of a Public Void (Android)

I have this code: hubSpinner.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { final MediaPlayer mp2 = MediaPlayer.create(Textbox.this, R.raw.hero); mp2.start(); } public void onNothingSelecte...