eclipse

Maven project with PI4J library - error in opening zip file

那年仲夏 提交于 2021-01-27 07:36:28
问题 I've got quite strange problem with pi4j library to Raspberry Pi. I have Maven project in Eclipse and just added repository and dependency for pi4j like this: <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> <dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.0-SNAPSHOT

Coverage fatal error (EclEmma)

岁酱吖の 提交于 2021-01-27 07:23:49
问题 I am using Eclipse Mars 4.5.2. When running coverage tests for my application, which has 317 test methods so far, when it's about to finish (around 274 methods run), I am getting errors I can't find a solution to. First a popup window saying: No Coverage Data No coverage data has been collected during this coverage session. Please do not terminate the Java process manually from Eclipse. A secon popup window: 'com.mountainminds.eclemma.internal.core.launching.AgentServer' has encountered a

Changes in .xhtml file not reflected in browser, restart and build needed

空扰寡人 提交于 2021-01-27 06:28:56
问题 If I make changes in my .xhtml file, the changes are not getting reflected on the screen in my browser. To get it to work, I have to restart the server everytime. This seems unwieldy to me. I have added the following context parameters in my web.xml : <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name> <param-value>1</param-value> </context-param>

Changes in .xhtml file not reflected in browser, restart and build needed

旧时模样 提交于 2021-01-27 06:28:11
问题 If I make changes in my .xhtml file, the changes are not getting reflected on the screen in my browser. To get it to work, I have to restart the server everytime. This seems unwieldy to me. I have added the following context parameters in my web.xml : <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <context-param> <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name> <param-value>1</param-value> </context-param>

Eclipse content assist not working in enum constant parameter list

痴心易碎 提交于 2021-01-27 06:08:35
问题 Using eclipse, when I enter the following: public enum Foo { A(Integer.); private final Integer integer; private Foo(Integer integer) { this.integer = integer; } } And position my cursor after Integer. and ask for content assist (^space) I get nothing. In fact content assist does not seem to work at all inside enum constant argument lists. Is this a known problem or expected behaviour? If the latter, why? EDIT: I'm wondering if this is a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id

Eclipse content assist not working in enum constant parameter list

做~自己de王妃 提交于 2021-01-27 06:08:17
问题 Using eclipse, when I enter the following: public enum Foo { A(Integer.); private final Integer integer; private Foo(Integer integer) { this.integer = integer; } } And position my cursor after Integer. and ask for content assist (^space) I get nothing. In fact content assist does not seem to work at all inside enum constant argument lists. Is this a known problem or expected behaviour? If the latter, why? EDIT: I'm wondering if this is a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id

Show notifications on Screen in Android

核能气质少年 提交于 2021-01-27 05:56:27
问题 i am using this code for sending local notifications mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, i, PendingIntent.FLAG_ONE_SHOT); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_launcher) .setLargeIcon(BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher)) .setContentTitle(title) .setDefaults(Notification

On Eclipse-Java EE, how do I change the color settings for selected elements on a tree view?

穿精又带淫゛_ 提交于 2021-01-27 05:52:55
问题 I've recently switched to the dark theme on Eclipse Java EE Luna, even tried other dark themes such as moonrise, but I always end up having to tune some settings in order to be able to read things (which by the way I have to set up again every time I restart eclipse, I hope they fix that ticket soon!) However, I couldn't figure out how to fix the most annoying problem. On some views, such as Navigator view I can read the selected item properly: On others though (such as package explorer,

On Eclipse-Java EE, how do I change the color settings for selected elements on a tree view?

眉间皱痕 提交于 2021-01-27 05:51:37
问题 I've recently switched to the dark theme on Eclipse Java EE Luna, even tried other dark themes such as moonrise, but I always end up having to tune some settings in order to be able to read things (which by the way I have to set up again every time I restart eclipse, I hope they fix that ticket soon!) However, I couldn't figure out how to fix the most annoying problem. On some views, such as Navigator view I can read the selected item properly: On others though (such as package explorer,

Using OpenCV in eclipse

主宰稳场 提交于 2021-01-27 05:26:47
问题 I am trying to setup opencv in eclipse Luna. I have written a sample application as follows : #include <cv.h> #include <highgui.h> #include<iostream> using namespace cv; int main( int argc, char** argv ) { Mat image; image = imread( argv[1], 1 ); if( argc != 2 || !image.data ) { printf( "No image data \n" ); return -1; } namedWindow( "Display Image", CV_WINDOW_AUTOSIZE ); imshow( "Display Image", image ); waitKey(0); return 0; } In my project properties i have included /usr/local/include