w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Eclipse Java Autocomplete for Drools
You can get this happening by going to Preferences -> General -> Content types and adding *.drl as a sub-type of Java source. This will get Java content assist working in .drl files, but it will unfortunately do a whole lot more. It will send your drl files to the Java compiler and it will show error markers for malformed Java code (and drl files contain lots of that). You can turn off lots of this through various preferences: add *.drl files to the exclusion filters of your classpath or place them outside of the classpath altogether. Go to Preferences -> Java -> Editor and disable "Report problems as you type". No error markers in drl file. But, this will also affect your java files. So, there is no complete solution here, but you can get some of what you want.

Categories : Java

How to parse json using sapui5
Try something like var oControl = new sap.ui.commons.TextView().bindProperty("text", "user/usernme"); oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "User Name"}), template: oControl})); var oControl = new sap.ui.commons.TextView().bindProperty("text", "user/id"); oTable.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "UserID"}), template: oControl})); https://sapui5.hana.ondemand.com/sdk/#docs/guide/JSONModel.html

Categories : Javascript

How to display Gridview in SapUI5
Use the following code to create a image and then place it in a grid layout: var oImage = new sap.ui.commons.Image("image"); oImage.setSrc("source of image"); oImage.setTooltip("tooltip"); oImage.placeAt("grid layout");

Categories : HTML

SapUi5 + Phonegap - loading Sap libraries
UI5 does not seem to officially support Windows Phone Browsers at all: https://openui5.hana.ondemand.com/#docs/guide/BrowserSupport.html Anyways since it is supporting IE9+ it should work on Windows Phone as well. At least starting from IE10 the mobile version shouldn't differ from the desktop version: http://en.wikipedia.org/wiki/Internet_Explorer_Mobile#Version_10

Categories : Javascript

sapui5 table shows only the same record
My understanding is every entity/entry in the collection should have a unique id <entry><id>...</id></entry>. And in my case, the returned collection had no ids set for the entities. So the bound ui element finds multiple objects with same id (in this case empty id) and ends up displaying value which it finds the last. The same should apply even if the id is same across all entities. Hope it helps, if you have not already found what the problem is. Thanks,

Categories : Jquery

How do I re-initiate AutoComplete on a WinForm Text Box, after a successful initial AutoComplete?
Set Auto complete mode to suggest append so that it will suggest one or more suggested completion strings it has. TextBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend

Categories : C#

jQuery autocomplete remote data using getJson with autocomplete.filter
You should only use the "filter" if your data is locally stored. If it is remote, you should filter it on the server side first before sending it over. From the jQuery UI documentation: The Autocomplete plugin does not filter the results, instead a query string is added with a term field, which the server-side script should use for filtering the results. For example, if the source option is set to "http:// example.com" and the user types foo, a GET request would be made to http:// example.com?term=foo. The data itself can be in the same format as the local data described above. http://api.jqueryui.com/autocomplete/ Your first example works well for this scenario.

Categories : Jquery

How do I run autocomplete directly from the server instead of the default JQuery UI autocomplete?
Jquery auto-completer gives you the option to load the data from server. Checkout this link http://jqueryui.com/autocomplete/#remote

Categories : Jquery

How to fill in an autocomplete inputbox using Selenium? (Why an automated input does not load autocomplete options BUT a manual input does?)
I tried your code, it does exactly what the manual walkthough does. "Associated Press, The" returns only a "No Match, please try sources". In your code you then try to click on the next form list item, not the results popup. The autosuggest popup is dynamically populated at the top of your html page positioned under the input form. The following code does select the first option on your drop down. @Test public void test() throws InterruptedException { WebDriver driver = new ChromeDriver(); driver.get("http://www.lexisnexis.com/hottopics/lnacademic/?verb=sf&sfi=AC00NBGenSrch"); driver.switchTo().frame("mainFrame"); WebDriverWait waitst = new WebDriverWait(driver, 0); waitst.until(ExpectedConditions.visibilityOfElementLocated(By.name("sourceTitl

Categories : Java

autocomplete ='off' is not working when the input type is password and make the input field above it to enable autocomplete
Browser's normally have two related yet different features regarding forms: Form auto-complete, where items of <input type="text"> type (and similar) collect typed values and offer them back in the form of a drop-down list.(It's a simple feature that works pretty well.) Password manager, where browser prompts to remember username/password combinations when it detects you've submitted a login form. When returning to the site, most browsers display available usernames in a drop-down box (Firefox, Chrome, Internet Explorer...) but some have a toolbar button (Opera). Also, Chrome highlights the fields in hard-coded yellow. (This depends on heuristics and might fail on certain pages.) There's an edge case with forms tagged as autocomplete="off". What happens if it's a login form and t

Categories : HTML

eclipse:clean eclipse:eclipse - maven command usage
I am not sure the reason behind your problem " when i tried to access any of the generated class in my src directory, i get compiler error stating that the class is not defined. " But I can tell you the meaning of command you are using As far as I know in maven we can define more than one goal at a time to execute so eclipse:clean \Deletes the .project, .classpath, .wtpmodules files and .settings folder used by Eclipse. eclipse:eclipse \build the project into eclipse project like structure.

Categories : Eclipse

How can I do Autocomplete in Typescript ? Have jquery.d.ts & jquery.autocomplete.d.ts files
You need to add a reference to the autocomplete.d.ts file e.g.: /// <reference path="path/to/your/jquery.autocomplete.d.ts" /> Although I suspect that you are using the wrong definition file and should be using this one: https://github.com/borisyankov/DefinitelyTyped/blob/master/jqueryui/jqueryui.d.ts It contains your required definition: interface JQuery { // ... autocomplete(): JQuery; autocomplete(methodName: string): JQuery; autocomplete(methodName: 'close'): void; autocomplete(methodName: 'destroy'): void; autocomplete(methodName: 'disable'): void; autocomplete(methodName: 'enable'): void; autocomplete(methodName: 'search', value?: string): void; autocomplete(methodName: 'widget'): JQuery; autocomplete(options: JQueryUI.AutocompleteOptions): JQuery;

Categories : Javascript

Error when installing "Maven Integration for Eclipse (Juno and newer)" in Eclipse Kepler
If you downloaded the EE version, then the m2e is already installed along with the IDE. On another note, with concise question content and proper formatting, your question is allowed.

Categories : Eclipse

how come an Eclipse plugin that targets Eclipse version 3.5 works with Juno but not Indigo or Kepler?
The <?eclipse version="3.5"?> tag in plugin.xml file does not specifies what version of Eclipse you want to target. It just specifies the version of plugin.xml syntax that you wish to use. Newer versions of Eclipse will support old syntax, but not the other way around. What really controls the version of Eclipse that your plugin supports are the dependencies specified in plugin MANIFEST.MF files and feature dependencies in feature.xml files. A common problem is being unable to meet the version constraint specified in one of those dependencies. The trouble with using dropins folder installation method is that you don't see the problem that documents why your plugin could not be activated. Instead, use the "install additional software" wizard in Eclipse and you will see the issue whe

Categories : Eclipse

Opening source code instead of decompiled class in eclipse 3.5 and jd-eclipse plugin
In this blog post, the author describes two problems the jd-eclipse plugin has: The generated source code doesn’t line up with the debug line numbers because the generated code can’t include the original comments. If you choose to associate the “*.class” file type within Eclipse with the “Class File Editor” then you always get decompiled output even if you have real source attached. I guess 2. is the problem you are facing and it appears that jd-eclipse is not capable of what you need. It looks like the Mchr3k - JDEclipse-Realign might help you here. (I am not sure if it is available for your eclipse version though. Time to get an updated Eclipse perhaps...)

Categories : Eclipse

Can't install plugin in eclipse due to dependency on bundle org.eclipse.core.runtime 3.8.0
I solved this by simply modifying the name that I had entered for the plugin that I was installing. In the name text field option available after clicking add new on help > Install new software, make sure the name you provide is one word(could include underscores) without any spaces in it.

Categories : Android

Eclipse Kepler startup error "NoClassDefFoundError: org/eclipse/swt/widgets/Display"
Go to the properties of your eclipse shortcut and add a -clean parameter. "C:Program Files(x86)Eclipseeclipse.exe" -clean Open eclipse with that shortcut and then remove the -clean parameter again. In Ubuntu you have to run eclipse from your teminal and add -clean at the end.

Categories : Java

Tycho and Eclipse: How to resolve OSGI dependencies to my own bundles at development time within Eclipse, without opening all of them in the IDE
As indicated by Nick Wilson, you will need to install the m2e Tycho Configurator, which basically "links up" Eclipse and Tycho (i.e., makes Tycho available in Eclipse). You should've been pointed towards it after having installed m2e, but you can also install it manually: Go to Window > Preferences > Maven > Discovery. Click the "Open Catalog" button. This will open the "m2e Marketplace" window. Search for "tycho", this should give you the "Tycho Configurator" as sole search result. Click "Finish", you're done. I've had this issue as well, and it isn't simple to find the solution, so I hope this helps!

Categories : Eclipse

This code datasource configurarion in tomme is running without eclipse fine but when i run in eclipse then its giving error
if you configure the datasource in tomee.xml and with eclipse then you have to do this steps also. Locate your TomEE server configuration in Workspace / Servers(Eclipse) Right-click the server project and select Import Select General - File System and click Next Browse to your <TomEE>/conf folder Select the following files for import: logging.properties, system.properties and tomee.xml Click Finish to import the files. In the Servers tab, right-click the TomEE server and select Publish to publish the files to the Eclipse metadata folder this will work.

Categories : Java

PyLint 1.0.0 with PyDev + Eclipse: "include-ids" option no longer allowed, breaks Eclipse integration
This should be already fixed in the latest nightly build. Please grab it there. See: http://pydev.org/download.html for details on how to get it.

Categories : Python

Installing AJDT I got a Plug-in org.eclipse.jdt.ui was unable to load class org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
I've got the same error after upgrading to Win 8.1. In my case the %workspace%/.metadata/.plugins directory was suddenly write-protected. To remove the lock I had to rename the directory, create a new directory name .plugins and finally the contents from the renamed to the new directory.

Categories : Eclipse

org.eclipse.core dependency to org.eclipse.runtime suddenly changed
The problem is likely caused by version ranges. These ranges do not even have to be used for the Eclipse artifacts. Assume you depend on [1,2) and 1.1, and 1.2 are available. At a moment in time, 1.3 is added that has different dependencies. If it finds multiple groupId:artifactId with a different version then it picks the first it finds. Maven follows a breadth first strategy to find dependencies so that you can override it in your top level pom. This is of course very obscure and error prone. A better way is to specify all your app dependencies in one pom so you can ensure valid versions.

Categories : Eclipse

Nodeclipse - org.eclipse.wst.jsdt.core not found when installing into Eclipse
Try again after some time As said in Aptana Studio - can't update to 0.4 , try install NJSDT or get Enide to install NJSDT http://marketplace.eclipse.org/content/enide-eclipse-nodejs-ide

Categories : Eclipse

Is there a way to change the default eclipse toolbar icons built into eclipse?
I don't think this is possible. The standard icons are declared using the org.eclipse.ui.commandImages extension point in the org.eclipse.ui plugin and reference icons in that plugin.

Categories : Eclipse

I used m2eclipse plugins in eclipse.why the imported package still cannot be resolved by eclipse?
First of all, you're not using the m2e plugin; while it may be installed, it's not activated for this project: There is no little "M" on the project's icon The classpath doesn't include an entry org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER From what I can see, Eclipse can't resolve the dependencies since the variable M2_REPO isn't defined (if it could, you would see the absolute path to the JARs in the upper image after the symbolic path). To fix this, go to Preferences and search for "Classpath Variables". Add M2_REPO there with the correct path (default is $HOME/.m2/repository). If it already exists, make sure the path is correct. Alternatively, right click on project and select "Convert to Maven Project" under "Configuration".

Categories : Java

Eclipse upgrade juno to kepler. Eclipse wont start
If we have eclipse.ini -Xms2048m -Xmx512m Kelpler will crash on start. Juno is working with this settings. But when we have lower eclipse.ini. Eclipse is starting. -Xms512m -Xmx512m The only problem left is to how force Kepler to dont crash -Xms bigger than 512m (I have 8gb of ram) And 512m is to small for me to build workspace :/ EDIT Solution is also increase Xmx to 2048

Categories : Java

What's the use of the configuration in classpath for Eclipse project: "org.eclipse.jdt.junit.JUNIT_CONTAINER/4"
Your project needs to use JUnit libraries to run JUnit tests. The entry in CLASSPATH specifies the location of these libraries; in this case it's JUnit 4 from Eclipse. You can use some other version (3, for example) or libraries which are not part of Eclipse. To add this library you can use Eclipse UI. Open project properties, go to Java Build Path, then open Libraries tab. Then click Add Library, you'll get a list of libraries where you can choose JUnit. You have to do it every time you create a new project with JUnit tests.

Categories : Java

Eclipse: Problems View: Warnings: Eclipse Not Seeing JSTL libraries
You have to add your jstl jars to the project's classpath in eclipse. Look here (http://stackoverflow.com/tags/jstl/info) to choose the right jar set according to your configuration.

Categories : Eclipse

What is this Eclipse view and how to implement it in other Eclipse-based products?
this window is called JavaDoc View http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fviews%2Fref-view-javadoc.htm any developer that uses the eclipse IDE knows this windows, it's shown the javadoc content of selected element, it's part of Eclipse Java development tools (JDT)

Categories : Eclipse

eclipse xtext plugin versions compatibility with eclipse IDE
If an Eclipse installation does not contain Xtext, you need to provide Eclipse with the URL of the plugin repository (sometimes called update site) where it is located. That will enable Eclipse to discover and install your dependencies when installing your plugin. You can find the URLs that you need on Xtext website. http://www.eclipse.org/Xtext/download.html

Categories : Eclipse

NoClassDefFoundError org.eclipse.m2e.wtp.WTPProjectsUtil upon Maven build Eclipse
This answer is a temporary fix / hack. Same problem for me since WDT upgrade : "Web Development Tools" version 8.5.1002.v20130402_2058 with "m2e-wtp" version 1.0.0.20130613-0136 Root cause : Versioning rules for plugins dependencies Solution : Open file eclipsepluginscom.ibm.etools.maven.javaee.core_1.0.0.v20121205_2240.jar Edit META-INFMANIFEST.MF Change in Require-Bundle section org.eclipse.m2e.wtp;bundle-version="[0.16.0,1.0.0)" By org.eclipse.m2e.wtp;bundle-version="[0.16.0,2.0.0)" Or something like that greater than 1.0.0.xx ... and without change number of characters in column Save file, jar and restart Eclipse with -clean option. m2e v1.0.0 and wdt 8.5.1 (not 002) were working fine, but com.ibm.etools.maven.javaee.core-xx.jar was not in this version ... so the

Categories : Eclipse

Java Eclipse open 2 tabs eclipse.exe and project
i was able to solve my problem adding the line to the FIRST LINE in eclipse.ini file something like -vm C:/Program Files/Java/jdk1.7.0_21/jre/bin/javaw.exe yes in 2 lines not in a single line. my eclipse.ini is like this ready now. -vm C:/Program Files/Java/jdk1.7.0_21/jre/bin/javaw.exe -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m i hope really helps somebody.

Categories : Java

mvn eclipse:eclipse versus regular maven build
When you import an existing Maven project, it is done by m2e, the official Eclipse Maven plugin (when I say official I mean it is in the Eclipse incubation process). It offers more features and can be more convenient to use in my experience When you do it by eclipse:eclipse, it is done by a Maven Eclipse mojo which creates a simple Java project. The problem is that you have to re-do this again every time you change your pom. With m2e, this is usually done automatically.

Categories : Eclipse

My source folders are deleted after executing mvn eclipse:eclipse
I'm not sure what you are doing exactly but the eclipse plugin handles only eclipse configuration and does not touch any source folders. If the source folders are removed from your eclipse project, then the project/pom file is not set up correctly. Since Juno, eclipse contains the m2e maven integration plugin. I suggest you create your first projects using that. It will take care of handling the build process and project setup for you. Use the New->Project...->Maven Project menu and create the project using the wizard. When it is complete, copy all your existing sources into the new one and manipulate the pom file with the pom editor (eclipse will open the pom file with this editor by default.) Important note: If you start using m2e, then don't use the command line eclipse:eclips

Categories : Java

eclipse plugin fails to load org.eclipse.pde.ui:Disabled
Bundles can be disabled by PDE in a number of ways, but the most likely cause is through the UI. They can also be enabled through the UI. To do so, open up the Plugin registry view and find the disabled bundle. Right click -> Show advanced operations Right click again -> enable

Categories : Eclipse

Eclipse: How to install uml2 Tools SDK in Eclipse 4.3 (kepler)?
Just installed this today.... Help -> Install New Software Work With: --All Available Sites-- Expand 'Modeling' branch in the tree. Select 'UML2 Extender SDK' Then hit the Next button to install....

Categories : Eclipse

Eclipse RCP 3.x plugin doesn't work correct with Eclipse 4.x
If you migrate to Kepler you will have to add org.eclipse.e4.ui.model.workbench to dependecies and also add an addon in the application model (see table). In eclipse e4, you don't need to extend to viewpart anymore because of the dependency injection. I my self tryed migration but soon I realised that adaption is better, most importantly to understand the differences between e3 and e4. If you do the tutorial you will understand and be able to change your code so that it will work.

Categories : Java

How can I Browse Eclipse Juno Source Code from within Eclipse?
From the link: For other Eclipse projects you usually find a "SDK" bundle on the project update site which contains the source code. Install those before you do the Import of Plug-ins.

Categories : Eclipse

Can't make eclipse open even after change eclipse.ini
According to this Eclipse document: Note the format of the -vm option - it is important to be exact: The -vm option and its value (the path) must be on separate lines. The value must be the full absolute or relative path to the Java executable, not just to the Java home directory. The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM. Note the first requirement. So, try using this somewhere in your .ini file: -vm C:Program FilesJavajdk1.7.0injavaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m Note: this is obviously a fragile way to enforce .ini file syntax, and I believe a later version of Eclipse has fixed this potential problem. But, looking at your file, you seem to have a May 2011 build, and if it

Categories : Java

adding appengine eclipse plugin to ADT eclipse
I have to answer you based on intuition here, but I think you should be able to add GAE plugin to Eclipse you have (With ADT). Just install the plugin from local directory and try doing some basic GAE operations like deploying an app and it should be clear if it works!

Categories : Eclipse



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.