<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DZone Forums - Eclipse</title>
		<link>http://forums.dzone.com</link>
		<description />
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 02:47:20 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.dzone.com/images/bluesaint/misc/rss.jpg</url>
			<title>DZone Forums - Eclipse</title>
			<link>http://forums.dzone.com</link>
		</image>
		<item>
			<title>Disposable Temporary E-Mail Address</title>
			<link>http://forums.dzone.com/showthread.php?t=1955&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 12:32:29 GMT</pubDate>
			<description>Deagot.com provides you with disposable e-mail addresses which expire after 10 Minutes. You can read and reply to e-mails that are sent to the...</description>
			<content:encoded><![CDATA[<div>Deagot.com provides you with disposable e-mail addresses which expire after 10 Minutes. You can read and reply to e-mails that are sent to the temporary e-mail address within the given time frame.</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>kepolego</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1955</guid>
		</item>
		<item>
			<title>Register a Context Menu from a Dialog</title>
			<link>http://forums.dzone.com/showthread.php?t=1947&amp;goto=newpost</link>
			<pubDate>Tue, 17 Nov 2009 21:08:53 GMT</pubDate>
			<description>I currently have a wizard page that summarizes the actions that the wizard is about to perform in a table.  I would like to add my Copy command to...</description>
			<content:encoded><![CDATA[<div>I currently have a wizard page that summarizes the actions that the wizard is about to perform in a table.  I would like to add my Copy command to the context menu for this table.<br />
<br />
I know how to register context menus when those menus exist in a view or editor <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">viewPart.getSite().registerContextMenu(menuManger, viewer)</code><hr />
</div> and then associate Commands with that those menus.<br />
<br />
However, a wizard page is not a view or editor part and therefore does not have a Site associated with it.  Because of this I cannot register the context menu for the wizard page.<br />
<br />
Is it possible to register this context menu so that I can contribute Commands to the menu via the Command, Menu and Handler extension points in the plugin.xml file?<br />
<br />
If this is not possible, is the next best solution, to create an Action that invokes a Command via <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">handlerService.executeCommand()</code><hr />
</div> and manually add the Action to the context menu in the wizard page?\<br />
<br />
Any help would be greatly appreciated.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>WhoDat</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1947</guid>
		</item>
		<item>
			<title>BIRT Chart scaling issue</title>
			<link>http://forums.dzone.com/showthread.php?t=1943&amp;goto=newpost</link>
			<pubDate>Mon, 16 Nov 2009 22:40:34 GMT</pubDate>
			<description>I use scripteddatasource and in my rptdesign, the scale for y axis is set to AUTO. It works most of the time, but I have this special case, when all...</description>
			<content:encoded><![CDATA[<div>I use scripteddatasource and in my rptdesign, the scale for y axis is set to AUTO. It works most of the time, but I have this special case, when all of my values in y axis are between 0 and -1.2%. In this case, the y axis scale ranges from 0 to -100% making the actual chart squeezed and so unusable. <br />
<br />
I think this is related to all values being less than or equal to zero. I have another chart where the values range from -0.3 to +0.3% and it works fine. <br />
<br />
Is there any workaround for this? Any help is greatly appreicated.<br />
<br />
Thanks,<br />
<br />
- Raja.</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>rkannappan</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1943</guid>
		</item>
		<item>
			<title>Make Table fill entire composite</title>
			<link>http://forums.dzone.com/showthread.php?t=1941&amp;goto=newpost</link>
			<pubDate>Mon, 16 Nov 2009 16:57:22 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm new to SWT and JFace and I'm having a problem with TableViewer and Table. 
 
I want my table to fill it's parent composite horizontally,...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm new to SWT and JFace and I'm having a problem with TableViewer and Table.<br />
<br />
I want my table to fill it's parent composite horizontally, but I can't get it to work. See code below:<br />
<br />
<font color="Red">Composite composite = new Composite(parent, SWT.NONE);<br />
GridLayout gl = new GridLayout();<br />
int ncol = 1;<br />
gl.numColumns = ncol;<br />
composite.setLayout(gl);<br />
<br />
TableViewer myTableViewer = new TableViewer( composite, SWT.MULTI | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.H_SCROLL | SWT.TOP);<br />
	<br />
            // Set up the table	<br />
             GridData gd;<br />
	gd = new GridData(GridData.FILL_BOTH);<br />
    	gd.horizontalSpan = 1;<br />
     	gd.verticalAlignment = GridData.FILL_BOTH;<br />
     	gd.horizontalAlignment = GridData.BEGINNING;<br />
     	gd.grabExcessHorizontalSpace = true;<br />
     	gd.grabExcessVerticalSpace = true;        <br />
     	<br />
     	Table table = myTableViewer.getTable();     	<br />
     	table.setLayoutData(gd);<br />
     	table.setLinesVisible(true);<br />
     	table.setHeaderVisible(true);  <br />
     	<br />
             // Add columns     	<br />
     	for(int i=0; i&lt;myHeaders.length; i++){<br />
               TableColumn tc = new TableColumn(table, SWT.LEFT);<br />
               tc.setText(myHeaders[i]);               <br />
            }     	<br />
<br />
     	myTableViewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH, GridData.FILL_BOTH, true, true));<br />
        <br />
     	// Pack the columns<br />
     	for (int i = 0, n = table.getColumnCount(); i &lt; n; i++) {<br />
               table.getColumn(i).pack();<br />
            }<br />
        fillTable();</font><br />
The table does not fill the composite horizontally and if I remove <i>table.getColumn(i).pack();</i> I dont see any columns.<br />
<br />
Please assist!</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>matwe</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1941</guid>
		</item>
		<item>
			<title>Need help in Building Tree in eclipse RCP</title>
			<link>http://forums.dzone.com/showthread.php?t=1937&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 19:27:18 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I am trying to use eclipse RCP to build a "tree" which takes in the content (Parent, Child) from user using a SWT controls like Text field,...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to use eclipse RCP to build a &quot;tree&quot; which takes in the content (Parent, Child) from user using a SWT controls like Text field, combo etc. The controls will enable the user to enter the names of parents, child and sub-child etc. <br />
<br />
What is the best way to do this? I have tried researching about taking dynamic input to build the tree and also tried the famous treeviewer plugin &quot;MovingBox&quot;. I have not had much success.<br />
<br />
I just have the code of the view and using the treeviewer content and label providers. But I am lost as to how to start editing the sample code. <br />
<br />
I am new to eclipse RCP platform. Kindly assist me in building this tree.</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>shafali</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1937</guid>
		</item>
		<item>
			<title>running crystal reports</title>
			<link>http://forums.dzone.com/showthread.php?t=1931&amp;goto=newpost</link>
			<pubDate>Sun, 15 Nov 2009 10:03:12 GMT</pubDate>
			<description>i have developed a swing project using eclipse 3.2.1 .it uses crystal reports for reporting.everything is working fine within eclipse. 
             ...</description>
			<content:encoded><![CDATA[<div>i have developed a swing project using eclipse 3.2.1 .it uses crystal reports for reporting.everything is working fine within eclipse.<br />
              i want to run this project from command prompt. when i run this project from cmd prompt,forms with &quot;import com.crystaldecisions.reports.sdk.*; statements&quot; are not displayed.should i change my classpath settings? please help</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>renjini</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1931</guid>
		</item>
		<item>
			<title>build.xml, classpath and Sphinx4</title>
			<link>http://forums.dzone.com/showthread.php?t=1927&amp;goto=newpost</link>
			<pubDate>Fri, 13 Nov 2009 22:23:31 GMT</pubDate>
			<description>Hello :-)! 
 
I downloaded CMU Sphinx files (Sphinx4 speech recognition system written in Java). There are two directories, sphinx4-1.0beta3-bin and...</description>
			<content:encoded><![CDATA[<div>Hello :-)!<br />
<br />
I downloaded CMU Sphinx files (Sphinx4 speech recognition system written in Java). There are two directories, sphinx4-1.0beta3-bin and sphinx4-1.0beta3-src. In bin directory I've got working jar files and in src java files with code of those applications. I'd like to create jar files from java files by my own. I'd like to make some changes in the code and see whether it works. I tried to do it with NetBeans but I had many difficulties with doing that so I decided to download Eclipse and now it's much easier! However there are still some problems.<br />
<br />
If you're interested in my attempts to solve this issue in NetBeans: <a href="https://sourceforge.net/projects/cmusphinx/forums/forum/382337/topic/3453042" target="_blank">https://sourceforge.net/projects/cmu.../topic/3453042</a> . The procedure of what I need to do in Eclipse/NetBeans is here and now I try to follow it in Eclipse: <a href="http://cmusphinx.sourceforge.net/sphinx4/#setupide" target="_blank">Sphinx-4 - A speech recognizer written entirely in the Java(TM) programming language</a> . I followed first and second step and I don't know how to do what is later. You can download Sphinx4 for free in order to see what is inside it here: <a href="https://sourceforge.net/projects/cmusphinx/files/sphinx4/" target="_blank">https://sourceforge.net/projects/cmu...files/sphinx4/</a> .<br />
<br />
I would be greatful if you can tell me how to add this build.xml as project ant file and add the src/apps folder to my classpath. The last step of the instruction is as follows: &quot;To perform common tasks (like deployment of  the sphinx4.jar, the models or the demo-jars) directly from within your IDE you might also want to add the bundled build.xml as project ant file. This can be done in most cases by just right-clicking the build.xml in the file navigator pane of your IDE and selecting &quot;Add as project ant file&quot;. To debug the demo applications you also need to add the src/apps folder and the acoustic model jars (that can be deployed to the lib-directory with a simple ant all) to your classpath&quot;.<br />
<br />
Thanks in advance for your help!<br />
Greetings :-)!<br />
<br />
PS I also founds <a href="http://www.tm.tfh-wildau.de/~omayer/Mustererkennung/SphinxWebDokumente/Sphinx-4%20Setup%20on%20Eclipse.pdf" target="_blank">http://www.tm.tfh-wildau.de/~omayer/...%20Eclipse.pdf</a> but for me it looks like it is about building the whole Sphinx4 in Eclipse. What I'd like to do is to build application which uses Sphinx4, e.g. HelloWorld.java or HelloDigits.java. (Download Sphinx4 to see it).</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>johnyjj2</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1927</guid>
		</item>
		<item>
			<title>App Runs in eclipse, wish to run from command line now(With dependencies)</title>
			<link>http://forums.dzone.com/showthread.php?t=1925&amp;goto=newpost</link>
			<pubDate>Fri, 13 Nov 2009 18:38:05 GMT</pubDate>
			<description><![CDATA[Hello, I have an application that is 8 projects large and has many jar dependencies for each project.  
 
I'm trying to create a batch file on my...]]></description>
			<content:encoded><![CDATA[<div>Hello, I have an application that is 8 projects large and has many jar dependencies for each project. <br />
<br />
I'm trying to create a batch file on my second computer that will <br />
<br />
1.XCopy my workspace to the second computer.(I have this part down)<br />
2.Run JFCUnit Tests on my second computer.<br />
<br />
I'm wondering if there is an easy way that I can run an application that is developed in eclipse from the command line that includes all dependencies(such as maybe using an external program, possibly such as one that is what eclipse uses to run this program with all dependencies from the .classpath files).<br />
<br />
Mostly I guess I'm wondering if eclipse has an external program(Hopefully one that's already in my eclipse folder). that can be called from the command line along with a class(Or maybe it needs to point to wherever run configurations are stored inside a workspace and run one of them).<br />
<br />
Any help is appreciated thank you.</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>boneless1213</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1925</guid>
		</item>
		<item>
			<title>Help needed eclipse editor plugin:</title>
			<link>http://forums.dzone.com/showthread.php?t=1917&amp;goto=newpost</link>
			<pubDate>Wed, 11 Nov 2009 20:06:03 GMT</pubDate>
			<description>I downloaded the eclipse plugin development source http://www.realsolve.co.uk/site/tech/jfacetext/editorarticle.zip from the website Realsolve -...</description>
			<content:encoded><![CDATA[<div>I downloaded the eclipse plugin development source <a href="http://www.realsolve.co.uk/site/tech/jfacetext/editorarticle.zip" target="_blank">http://www.realsolve.co.uk/site/tech...torarticle.zip</a> from the website <a href="http://www.realsolve.co.uk/site/tech/jface-text.php" target="_blank">Realsolve - Building an Eclipse Text Editor with JFace Text</a> which details how to build a eclipse based xml editor. <br />
       When I tried running the plugin after building it by opening the xml file I dont see the keyword highlighting or the error highlighting(except for mispelt words) for xml as mentioned in the article.<br />
   I already have spent a lot of time to figure out what's happening behind but with no success. Can anyone tell me what's wrong. <br />
<br />
Thanks to all,<br />
Aravindan</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>aravindous</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1917</guid>
		</item>
		<item>
			<title>Remote deploy and work with JBoss AS</title>
			<link>http://forums.dzone.com/showthread.php?t=1915&amp;goto=newpost</link>
			<pubDate>Wed, 11 Nov 2009 13:20:28 GMT</pubDate>
			<description>Hello, 
 
I would like ask whether somebody has got experience with remote work with JBoss AS from Eclipse? 
 
Is some possibility to have JBoss...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I would like ask whether somebody has got experience with remote work with JBoss AS from Eclipse?<br />
<br />
Is some possibility to have JBoss installed on remote server and work with it from Eclipse that runs on some user computer. Generally I would like to run more instances of JBoss AS on remote server and create some comfortable way for testers/programmers that would launch their Eclipse locally and connect to remote JBoss, deploy enterprise archives on the server, debug the code on remote desktop...<br />
<br />
I have read article about remote debugging and it works but remote deploy is unsolvable for me as well as whether some possible for remote start of JBoss from Eclipse exists. <br />
<br />
Thank you</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>chalda</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1915</guid>
		</item>
		<item>
			<title>JFace TreeViewer: How to refresh properly???</title>
			<link>http://forums.dzone.com/showthread.php?t=1913&amp;goto=newpost</link>
			<pubDate>Wed, 11 Nov 2009 10:45:34 GMT</pubDate>
			<description><![CDATA[Hi, 
I'm creating an App which main part consists of a JFace TreeViewer. My users must have the possibilities to completely refresh the displayed...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I'm creating an App which main part consists of a JFace TreeViewer. My users must have the possibilities to completely refresh the displayed data, so the domain model is completely renewed.<br />
I'm cleaning my domain model, reloading it and refreshing the interfaces to the viewer as visible in the follwing method calls:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; disposeTreeColumns();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frontendModuleService.clean();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; load();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; createTreeColumns();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frontendModuleService.refresh();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; treeviewer.setInput(ModelProvider.getInstance().getModules());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; treeviewer.refresh(true);</code><hr />
</div>frontendModuleService.refresh() refreshes the LabelProvider by adding the new columns. <br />
Everything works fine until from treeviewer.setInput(ModelProvider.getInstance().ge  tModules())  is called. It produces a NullPointerException, which is thrown by org.eclipse.jface.viewers.ViewerColumn.refresh(Vie  werColumn.java:145). In that method getLabelProvider() is called, which is null, but when treeviewer.setInput() was called, everything was fine!!! My domain model object as well is properly refilled. <br />
So what happens there? :confused: Am I completely wrong with my approach to refresh TreeViewer?<br />
<br />
Here the stack trace, to be complete: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">java.lang.NullPointerException<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:145)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:932)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.Platform.run(Platform.java:880)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:1012)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.core.runtime.Platform.run(Platform.java:880)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2041)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:827)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:802)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:634)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1702)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1712)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1491)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:823)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1365)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:397)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at de.doxanize.divsddrcp.treeviewer.View.refresh(View.java:318)</code><hr />
</div>Any help would be great!<br />
Thx<br />
Dagmar</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>trash@dagmarbuggle.de</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1913</guid>
		</item>
		<item>
			<title><![CDATA[Any way to save "derived object" working settings?]]></title>
			<link>http://forums.dzone.com/showthread.php?t=1911&amp;goto=newpost</link>
			<pubDate>Wed, 11 Nov 2009 01:53:29 GMT</pubDate>
			<description><![CDATA[I worked out how to tell eclipse to ignore directories that are built in my build.xml, so it - 
a. doesn't include them when I'm searching; and 
b....]]></description>
			<content:encoded><![CDATA[<div>I worked out how to tell eclipse to ignore directories that are built in my build.xml, so it -<ol style="list-style-type: lower-alpha"><li>doesn't include them when I'm searching; and</li>
<li>doesn't try to add them into SCM</li>
</ol><br />
Is there any way I can save these settings as part of the project?</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>mr_r_dzone</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1911</guid>
		</item>
		<item>
			<title>Eclipse RCP</title>
			<link>http://forums.dzone.com/showthread.php?t=1909&amp;goto=newpost</link>
			<pubDate>Tue, 10 Nov 2009 06:33:07 GMT</pubDate>
			<description>Hi! I am new to Eclipse RCP.I have a requirement to develop RCP Application. 
 
   I am trying to create project structure similar to Java project...</description>
			<content:encoded><![CDATA[<div>Hi! I am new to Eclipse RCP.I have a requirement to develop RCP Application.<br />
<br />
   I am trying to create project structure similar to Java project nature.Can anyone suggest ideas.<br />
<br />
Thanks,<br />
Venkatesh</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>venkateshaare</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1909</guid>
		</item>
		<item>
			<title>Problems with OSGi PostEvent</title>
			<link>http://forums.dzone.com/showthread.php?t=1903&amp;goto=newpost</link>
			<pubDate>Mon, 09 Nov 2009 10:16:46 GMT</pubDate>
			<description><![CDATA[Hi: 
 
I am having troubles with OSGi;I'm using Eclipse and creating Bundles.  
 
My problem is that I want to create two bundles, one to POST...]]></description>
			<content:encoded><![CDATA[<div>Hi:<br />
<br />
I am having troubles with OSGi;I'm using Eclipse and creating Bundles. <br />
<br />
My problem is that I want to create two bundles, one to POST events, and another one to listen to them. <br />
<br />
My most frecuent error is that EventAdmin is null and cannot post any event, but I really do not know what is happening. <br />
I post you my codes for the Event Poster and Event Listener, which I took from <a href="http://kenai.com/projects/posteventvssendevent/sources/subversion/show" target="_blank">here</a>:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package posteventos;<br />
import java.util.logging.Level;<br />
import java.util.logging.Logger;<br />
import org.osgi.framework.BundleActivator;<br />
import org.osgi.framework.BundleContext;<br />
import java.util.Date;<br />
import java.util.Dictionary;<br />
import java.util.Properties;<br />
import org.osgi.service.event.Event;<br />
import org.osgi.service.event.EventAdmin;<br />
import org.osgi.util.tracker.ServiceTracker;<br />
<br />
public class Activator implements BundleActivator {<br />
<br />
&nbsp; &nbsp; private EventAdmin eventAdmin;<br />
&nbsp; &nbsp; private ServiceTracker eventAdminTracker;<br />
&nbsp; &nbsp; private static final String POST_EVENT_QUEUE = &quot;An Event&quot;;<br />
<br />
&nbsp;  <br />
&nbsp; &nbsp; private void postEvent() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dictionary props = new Properties();<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (true) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Date d = new Date();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; props.put(&quot;property&quot;, &quot;&quot; + i++ + &quot; : &quot; + d);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;before post : &quot; + d);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Event event = new Event(POST_EVENT_QUEUE, props);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eventAdmin.postEvent(event);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  System.out.println(&quot;after post : &quot; + d);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thread.sleep(10 * 1000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (InterruptedException ex) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void start(BundleContext bundleContext) throws Exception {<br />
&nbsp; &nbsp; &nbsp; &nbsp; eventAdminTracker = new ServiceTracker(bundleContext, EventAdmin.class.getName(), null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; eventAdminTracker.open();<br />
&nbsp; &nbsp; &nbsp; &nbsp; eventAdmin =&nbsp; (EventAdmin) eventAdminTracker.getService();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (eventAdmin != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Thread() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void run() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; postEvent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }.start();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;eventAdmin is null&quot;);&nbsp;  //this one to see if it's NULL<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void stop(BundleContext bundleContext) throws Exception {<br />
&nbsp; &nbsp; &nbsp; &nbsp; eventAdminTracker.close();<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div><br />
<br />
<br />
And this one is the listener: <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package listenereventos;<br />
<br />
import java.util.Dictionary;<br />
import java.util.Hashtable;<br />
import java.util.Properties;<br />
import java.util.logging.Level;<br />
import java.util.logging.Logger;<br />
import org.osgi.framework.BundleActivator;<br />
import org.osgi.framework.BundleContext;<br />
import org.osgi.service.event.Event;<br />
import org.osgi.service.event.EventConstants;<br />
import org.osgi.service.event.EventHandler;<br />
<br />
/**<br />
&nbsp;* Hello world!<br />
&nbsp;*<br />
&nbsp;*/<br />
public class Activator implements&nbsp; BundleActivator {<br />
<br />
&nbsp; &nbsp; private static final String POST_EVENT_QUEUE = &quot;Hola&quot;;<br />
&nbsp;<br />
<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void start(BundleContext context) throws Exception {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dictionary dp = new Hashtable();<br />
&nbsp; &nbsp; &nbsp; &nbsp; dp.put(EventConstants.EVENT_TOPIC, POST_EVENT_QUEUE);<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; 50000; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  context.registerService(EventHandler.class.getName(), new <b>PostEventHandler</b>(), dp); //code for this behind<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void stop(BundleContext context) throws Exception {<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div><br />
POSTEVENTHANDLER: <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package listenereventos;<br />
import java.util.logging.Level;<br />
import java.util.logging.Logger;<br />
import org.osgi.service.event.Event;<br />
import org.osgi.service.event.EventHandler;<br />
public class PostEventHandler {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void handleEvent(Event event) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  String value = event.getProperty(&quot;property&quot;).toString();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thread.sleep(30 * 1000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (InterruptedException ex) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Logger.getLogger(Activator.class.getName()).log(Level.SEVERE, null, ex);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;----------------&gt;Post value : &quot; + value);&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</code><hr />
</div><br />
<br />
I really don't know what's happening since it's my first time using OSGi events, and I would really thank any help from you.<br />
<br />
Regards, <br />
<br />
Asier</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>Aranbarri</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1903</guid>
		</item>
		<item>
			<title>Eclipse, BeanShell and OSGi</title>
			<link>http://forums.dzone.com/showthread.php?t=1901&amp;goto=newpost</link>
			<pubDate>Mon, 09 Nov 2009 09:25:26 GMT</pubDate>
			<description><![CDATA[Heya, 
 
At the moment I'm working on a project, where I'm developing a RCP application. A simple GUI based on SWT and JFace. As it is a RCP...]]></description>
			<content:encoded><![CDATA[<div>Heya,<br />
<br />
At the moment I'm working on a project, where I'm developing a RCP application. A simple GUI based on SWT and JFace. As it is a RCP application, the whole has been build in compliance with the OSGi standards.<br />
<br />
Point is, if I hit a 'start' button on the GUI, an instance of a (jBPM) class is created and run. That instance uses BeanShell via jBPM, and that is were things go desperatly wrong. It seems that BeanShell can't handle OSGi, because it continuously returns null objects when a Script is processed.<br />
<br />
After debugging, it seems that BeanShell does something with the OSGi classpath(s). Just can't figure out what, as source code (of my version) is not available.<br />
<br />
So, if anyone nows how to force this Eclipse RCP to make its component use correct OSGi based classpaths... please share your knowledge :).<br />
<br />
<br />
<br />
Things that might be relevant to know:<br />
Java version = 1.6.0_17<br />
Eclipse version = 3.4.2<br />
BeanShell versoin = 1.3.0 (there is a newer version, but I'm bound to this one due to already existing code)<br />
jBPM version = 3.0<br />
<br />
<br />
The exception thrown is: &quot;<i>org.jbpm.graph.def.DelegationException: script evaluation exception</i>&quot;.<br />
This exception thrown is caused by BeanShell, as it returns null (and that's something the jBPM part can't handle).</div>

]]></content:encoded>
			<category domain="http://forums.dzone.com/forumdisplay.php?f=37">Eclipse</category>
			<dc:creator>Jarka</dc:creator>
			<guid isPermaLink="true">http://forums.dzone.com/showthread.php?t=1901</guid>
		</item>
	</channel>
</rss>
