| DMG | Anybody here use antclipse? |
| DMG | I can see it putting the *.jar files into the fileset in verbose mode but when I read from the fileset i get nada |
| wwmorgan | When I right-click a project and select "Run as JUnit test", my tests run in 1/5 the time it takes to run the junit ant task from the command line. Why is this? |
| toulmean | ho hi |
| toulmean | I am using Eclipse SDK 3.6 M6 and I see that org.eclipse.core.contenttype seems to be missing the schema for contenttype ? |
| toulmean | that's kinda weird to me |
| FauxFaux | wwmorgan: Fork. |
| FauxFaux | toulmean: I'm on that. Why would I notice / care? |
| toulmean | FauxFaux: sorry ? |
| FauxFaux | I'm running 3.6M6, yet have no idea what you claim is missing. Why would I have noticed? |
| toulmean | FauxFaux: it's rather simple. I am using the extension point contentTypes defined in that plugin |
| toulmean | because I develop against PDE sets a warning |
| toulmean | and at runtime it just deactivates my extension point |
| FauxFaux | Oh, plugin stuff. |
| toulmean | leaving me crashing. |
| briandealwis | toulmean: file a bug. |
| toulmean | FauxFaux: ya. Most likely a packaging issue. |
| briandealwis | toulmean: how does it crash? |
| toulmean | !ENTRY org.eclipse.core.contenttype 4 0 2010-04-05 15:03:39.825 |
| toulmean | !MESSAGE Could not create content describer for org.eclipse.stp.bpmn.content-type. Content type has been disabled. |
| toulmean | briandealwis: ^^ |
| toulmean | will file a bug |
| briandealwis | toulmean: weird. And if you add the schema, it then works fine? |
| toulmean | briandealwis: I can't add the schema. The schema is supposed to be packaged in the jar of org.eclipse.core.contentTypes |
| briandealwis | toulmean: it's just a zip file; I'm pretty sure the milestone jars aren't signed. Just extract it from the source jar and stick it in |
| toulmean | lol. |
| toulmean | thanks for the help guys. I'll get to it, no worries |
| toulmean | ~308126 |
| Arbalest | Bug 308126 - https://bugs.eclipse.org/bugs/show_bug.cgi?id=308126 - Platform / Resources / 3.6 - PC / Mac OS X - NEW / normal / - Assignee: platform-resources-inbox - org.eclipse.core.contenttype is missing the schema folder |
| sinecure | Hello, all. |
| sinecure | Anyone around? |
| multiHYP | why are my save and cancel buttons on the save dialog not responding? im on a mac. |
| lystra | Is http://wiki.eclipse.org/Platform-releng-sourcebuild35 sufficient to build eclipse-3.5.2 from source? I'm using eclipse-sourceBuild-srcIncluded-3.5.2.zip which I presume means nothing needs to be fetched from CVS but a cvs checkout is done against -dkmoir@dev.eclipse.org:/cvsroot/eclipse which fails when prompting for a password. Admittedly, I don't have the correct path to the CDC foundation class libraries set in org.eclipse.releng.eclipsebui |
| lystra | lder/eclipse/buildConfigs/sdk/srcBuild/build.properties but is that enough to cause the CVS problem? I'm building on RHEL5/x86-64 with Sun Java 1.6u19. |
| webuser | hi all |
| webuser | how to make the tableviewer to show a list of input elements and at the same time have the first element be empty ( null) |
| webuser | is there any cocher way for it? |
| webuser | ok i did some hack |
| NetHawk | 'lo everyone :D |
| satyr | what should i do if i have to debug a full screen sdl game which cannot be closed with any key stroke?? |
| satyr | can anybody help me? |
| erdal | set a breakpoint which will make the ide to get window focus? |
| FauxFaux | Is the UDC collected vm versions and OS versions not public? I can't see any public reports. |
| Kupoo | hi, in a C project in linux i have "?" icons at the corner of all of my files in the project explorer |
| Kupoo | and my header files arnt being found when i build |
| Kupoo | even though they are there in the mark file |
| Kupoo | what does the "?" mean? |
| satyr | i have to debug a full screen game..can i kill its window except having to do ctrl+alt+bkspc ever time i have to continue? or can i debug in a separate window??? |
| satyr | can anybody help me here |
| satyr | i have to debug a full screen game..but during debugging how should i kill the game window as the game is full screen and no key combination works except for ctrl+alt+del?? |
|
|
| erdal | satyr: did you try to set up a breakpoint? |
| kaprasanna | Have added a new option to the pop menu of java editor. How do I know the right click has occured in which method's body? Thanks. |
| erdal | kaprasanna: you should obtain the active selection |
| erdal | you should know how to use jdt, i guess |
| kaprasanna | erdal : Using ISelectionService? |
| erdal | yeah, should be possible |
| satyr | erdal:yes i have set up a breakpoint till where window is called but how should i kill that inactive window as keypresses are not functioning |
| kaprasanna | erdal : Since my class implements IEditorActionDelegate I already have the currently selected item. So question is, how can I convert it to a method-in-currently-open-java-class? |
| erdal | kaprasanna: i am not familiar with jdt |
| kaprasanna | erdal : oh i see. thanks |
| erdal | satyr: the debug perspective is visible? |
| satyr | nopes |
| satyr | erdal: sorry! the debug perspective is visible in eclipse |
| erdal | satyr: you can use the "Display" view to evaluate any java expressions |
| satyr | erdal : this is a c+sdl based game :-( |
| satyr | erdal: can i debug in a small window |
| erdal | so, you are using cdt? |
| satyr_ | yep i am using cdt |
| erdal | i am not sure cdt can evaluate any c expressions :-( |
| erdal | though, are there no command line tools for closing windows? |
| satyr_ | erdal: the problem is that the game can be closed only through esc key and in game quit menu ...since i have set up the break point earlier in the program there is no way to kill the misbehaving app |
| satyr_ | erdal:the problem is that the x server allows full screen games to take over all the keyboard shortcuts and hotkeys except ctrl+alt+bkspc |
| erdal | do you want to kill the app or just a window? |
| satyr_ | the window |
| erdal | maybe, the linux channel can help? |
| satyr_ | erdal:so the solution can be if i debug in a separate window? |
| erdal | what do you mean by "debugging in a seperate window"? |
| paulweb515 | satyr_: you can switch to a tty and kill it with "kill" |
| erdal | paulweb515: he wants to close the window, not the app |
| paulweb515 | oh, he's gone? |
| erdal | oh, yes... |
| paulweb515 | well, on X I guess he could have run 2 X sessions. run it in one, debug it in the other |
| rcjsuen | FauxFaux: I didn't think UDC collected that kind of system info. |
| FauxFaux | rcjsuen: I was going on #5 on http://www.eclipse.org/epp/usagedata/faq.php , even though it contradicts the other FAQ. |
| erdal | oh, i guess that is what he wanted to say by "debugging in a separate window" |
| rcjsuen | kaprasanna: JDT has APIs to find members based on document offset location AFAIK. |
| kaprasanna | rcjsuen: I undesratand. Having used jdt api before to convert selected project to a JavaProject and then to find its different types of elements I believe I can do this. But can't seem to understand what route should I take. Since I don't know have the java project. All I have is what has been selected in the java editor instead. |
| rcjsuen | the IFile itself can be a IJavaElement (I suppose an IType maybe) |
| rcjsuen | actually |
| rcjsuen | i guess more appropriately, an ICU |
| kaprasanna | rcjsuen: Yes ICU. right. Thanks.. |
| briandealwis | kaprasanna: you might want to look at org.eclipse.jdt.internal.ui.actions.SelectionConverter.getStructuredSelection() -- it's internal, but it will pull out the IJavaElement corresponding to the current selection in an editor. |
| kaprasanna | briandealwis: oh.. Its that easy? Let me try it out.. Thanks. |
| davy_ | hi all, i'm developing a eclipse rcp application, and have trouble exporting the product (using the built-in eclipse export wizard) |
| davy_ | i get the following error: "Bundle org.eclipse.equinox.launcher_1.0.201.R35x_v20090715 failed to resolve.:Missing Constraint: Bundle-RequiredExecutionEnvironment: OSGi/Minimum-1.2" |
| davy_ | checked the executionenvironment of the product, and of my target |
| davy_ | they are both specified as OSGI/Minimum-1.2 |
| davy_ | if i launch the application from within the product editor, i have no problems |
| davy_ | i searched the fora , faq's, mailing lists, etc, but didn't found anything usefull |
| davy_ | does anyone have an idea of the possible reason? things i can check? Thanks in advance |
| briandealwis | davy_: I haven't seen that problem. Have you checked that your installed JREs list compatibility with OSGi/Minimum-1.2? |
| briandealwis | (AFAIK, the product export does a PDE build under the hood, which is a separate process) |
| davy_ | hi brian, how can i check the jres list compatibility? |
| davy_ | i checked the preferences, and the jre used is listed there as possibility for osgi/minimum 1.2 |
| briandealwis | davy_: Preferences > Java > Installed JREs, I believe |
| davy_ | doublechecked,: that is ok |
| davy_ | i suspected that the product export is another process |
| davy_ | are there configuration files used by the pde build that could contain another value, overriding what i specified? |
| briandealwis | davy_: I think the build.properties is used, but I don't have any suggestions; the product export seems a bit of a black box. |
| briandealwis | I fought with the product export for one project and eventually gave up and switched to invoking the PDE Build externally. On the bright side, it wasn't wasted effort as it was a necessary part of nightly builds etc. |
| davy_ | i'm facing the black box right now |
| davy_ | i'm thinking about using the pde build externally also. Do you have some hints / pointers / helpfull links? |
| briandealwis | davy_: Patrick Paulin has a worked example at <http://www.modumind.com/2007/06/06/getting-started-with-pde-build> -- get that working and then modify it incrementally for your needs, testing at every step. |
| erdal | it may be worth it investigating on buckminster for headless builds |
| erdal | and use hudson as CI platform |
| davy_ | ty brian, i will check that |
| briandealwis | davy_: you might also want to look through the following page for debugging pointers: http://wiki.eclipse.org/index.php/PDEBuild |
| briandealwis | davy_: before you proceed; the first question seems to address some issues relating to the product export |
| davy_ | hi erdal, i guess buckmister will be difficult to combine with maven (the project is planned to migrate with maven) |
| erdal | afaik, buckminster can handle maven repos |
| davy_ | and i did a quick check of hudson before: we use git for version control, and i'm not sure if it can be combined |
| davy_ | i will keep them in mind though |
| erdal | afaik, buckminster has support for git, too, though not sure |
| erdal | you should ask on #eclipse-b3 |
| briandealwis | davy_: it may be that PDE Build doesn't know about OSGi/Minimum-1.2: the page of known environments for R3.5 doesn't list it <http://help.eclipse.org/galileo/topic/org.eclipse.pde.doc.user/tasks/pde_compilation_env.htm> |
| Guest70323 | hi |
| Guest70323 | i want two editor windows side by side... is this possible? |
| rcjsuen | click the tab |
| rcjsuen | drag it to the side |
| rcjsuen | same thing you do with views |
| Guest70323 | omg thats it... thx |
| kaprasanna | briandealwis: Problem! Can't convert from ITextSelection to IStructuredSelection! Here is my code in the class that implements IEditorActionDelegate. Avoided org.eclipse.jdt.internal.ui.actions.SelectionConverter.getStructuredSelection() as it also does the same thing and I won't have 'discouraged access' warnings. Any idea what's wrong? Thanks. |
| kaprasanna | briandealwis: http://pastebin.com/T4nFf2ZP |
| rcjsuen | if you can't cast, then don't |
| briandealwis | kaprasanna: an ITextSelection isn't a IStructuredSelection |
| briandealwis | What I did is: if the SelectionConverter failed, then use the JDT SearchEngine to try to resolve the text selection as a type |
| erdal | maybe, the contains the ITextSelection |
| rcjsuen | That class seems to have a wide variety of other methods you can use. |
| erdal | the IStructuredSelection ... |
| briandealwis | kaprasanna: If it helps, that class has been stable since at least R3.1. Perhaps it should be requested to be made public API... |
| kaprasanna | briandealwis: rcjsuen : Yes I won't cast it... |
| kaprasanna | briandealwis: rcjsuen : Will try with SelectionConverter.getStructuredSelection() next. In the mean while would you all recommend the way this has been used here :http://bit.ly/aInPH5 Thanks |
| briandealwis | kaprasanna: I think it looks ok; it's been years since I've used this stuff though |
| kaprasanna | briandealwis: Ok... |
| briandealwis | Actually, hold on: EditorUtility.getEditorInputJavaElement returns the java element corresponding to the source file (i.e., if editing Foo.java, it will return an IType for Foo). SelectionConverter.getStructuredSelection() and getElementAtOffset() return the IJE at *the cursor*. |
| erdal | in the component.xml editor, i can set the referenced services: how can i get an instance of them in the implementing class? |
| red1 | hello.. wonder if anyone knows how to break during debugging when a certain value changes? |
| erdal | i can get an instance through BundleContext.getService, but that is too complicated |
| red1 | instead of breaking at a line, i like to breakpoint when watching a variable |
| rcjsuen | i think you can put a breakpoint in a field |
| rcjsuen | and it'd be a "watchpoint" or something |
| rcjsuen | I tried before, it didn't work for me tho >_> |
| erdal | try a conditional breakpoint |
| red1 | ok googling for that |
| erdal | right click on the breakpoint, choose properties, and enter an expression |
| red1 | thanks a zillion. That is right |
| red1 | many regards erdal |
| erdal | and there is a "when value changes" |
| red1 | but what if the value is not associated at that breakpoint? |
| red1 | anyway i will try |
| briandealwis | red1: the alternative is to use a watchpoint: select a field definition, and then select Run > Toggle Watchpoint. You can then inspect the watchpoint's properties to only kick in on modification, or on any access, etc. |
| rcjsuen | the breakpoint knows the context of the object so assuming it's a field and not a local parameter should still work |
| red1 | trying it out briandealwis and rcjsuen |
| erdal | as usual, lars has a good tutorial on declarative services as well... |
| rcjsuen | erdal: Sometimes I wonder, not "What does Lars have", but "What does Lars not have" |
| erdal | hehe |
| kaprasanna | briandealwis: rcjsuen : erdal : I do get the name of selected method in the editor. Here is the code : http://pastebin.com/eQFLA9aa Hope it is in good shape |
| briandealwis | kaprasanna: I have no idea what you're trying to accomplish. But your code is assuming it's provided a JavaEditor -- I'd at least do an instanceof check. |
| briandealwis | kaprasanna: another minor style issue (again, with no idea what you're trying to accomplish): I'm seemingly one of the few people who like to use multiple windows. The use of getActiveWorkbenchWindow.getActivePage.getActiveEditor introduces a race condition where the action can (and sometimes does!) get invoked after the focus has switched to a different window, resulting in the wrong editor being referenced. If you can (e.g., you're |
| briandealwis | implementing an IEditorActionDelegate), hold onto and use the active editor provided through setActiveEditor(). |
| kaprasanna | briandealwis: I understand.. Will do the changes |
| kaprasanna | briandealwis: All I am trying to achive is get the fully qualified name of the method selected by the user in the (java) editor |
| briandealwis | kaprasanna: you might need to use SelectionConverter.resolveEnclosingElement() instead -- I suspect that getElementAtOffset() will return the IJE corresponding to that. So for example, if you are on a method call, you will get the method in whatever class, rather than the surrounding method making the call. |
| kaprasanna | briandealwis: Oh ok.. Let me try that out.. |
| kaprasanna | briandealwis: Hope this sounds more like it : http://pastebin.com/Y9EFjBRJ |
| kaprasanna | briandealwis: But I didn't see much difference in results of two method calls: getElementAtOffset and in resolveEnclosingElement |
| briandealwis | kaprasanna: You definitely need an instanceof test in your setActiveEditor(): that method will be called every time you change between *any* kind of editor. |
| kaprasanna | briandealwis: i understand.. I'll do that.. All I need is qualified name of the method |
| briandealwis | kaprasanna: try spitting out both results, one from resolveEnclosingElement and the other from getElementAtOffset and then try it out on different locations. |
| kaprasanna | briandealwis: Trying on two methods with same name one in inner class and another in its container |
| kaprasanna | briandealwis: Hmmm javaElement.getElementName() is same in both cases! And both spit out just the name of the method. Guess fullyQualified name is the answer? |
| packagedeliverer | Hi, I'm very new to java and I'm having some difficulties fetching a mysql connection from java using eclipse |
| briandealwis | kaprasanna: that's right: the element name is the very base level name. |
| packagedeliverer | even though the mysql jar is in my referenced libraries, the command class.forname("com.mysql.jdbc.Driver"); returns an error |
| rcjsuen | packagedeliverer: You're running from within Eclipse? |
| packagedeliverer | rcjsuen: using the 'play' button? If so, yes |
| rcjsuen | Yes, that's what I meant. |
| rcjsuen | "returns an error" is very vague, you need to ~elaborate more |
| Arbalest | Please elaborate further. What are you trying to do? Is something failing? What do you see? What did you expect to see? Are you following a guide? Is there a link to this guide? If this is programming related, what programming language is it? If you have actual code, paste it to a ~pastebin, if you have screenshots, upload it to an ~imagebin. If you haven't described your Eclipse setup yet, please provide this ~info. Help us help you! |
| packagedeliverer | I have right clicked the project, build path, external libraries, selected the jar |
| packagedeliverer | I have also imported the java.sql connection, drivermanager, sqlexception libs + the one I referenced (com.mysql.*) |
| packagedeliverer | but the class.forname returns an error (exception = the given path) |
| packagedeliverer | Other than that it's a basic new example project |
| rcjsuen | you should put your code an error in a ~pastebin |
| Arbalest | Please paste the relevant information onto a pastebin. The submission will then generate a URL, please copy/paste the generated URL back to the channel - http://www.pastebin.cz/ - http://papernapkin.org/pastebin/home - http://pastebin.com - http://pastebin.ca |
| packagedeliverer | Ok |
| erdal | are actions automatically availalable as commands? |
| paulweb515 | erdal: no |
| erdal | is there some wrapper class? |
| erdal | to conveniently wrap an action |
Popular searches: