<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>news.eclipse.tools.jdt</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/maillist.html</link>
		<description>NewsGroup: news.eclipse.tools.jdt</description>
		<language>en-us</language>
		<pubDate>Fri, 18 Sep 2009 15:21:09 GMT</pubDate>
		<lastBuildDate>Fri, 18 Sep 2009 15:21:09 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>news.eclipse.tools.jdt</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/maillist.html</link>
		</image>
 

	<item>
		<title>[news.eclipse.tools.jdt] Re: Running the GUI part of an application</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24941.html</link>
		<description>Ida a &amp;#xC3;crit : You can add &amp;quot;dummy&amp;quot; static main() method and show the frames/dialogs in these main methods. </description>
		<content:encoded><![CDATA[<tt>Ida a &#xC3;crit :
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hallo,</pre><br>
<tt>How do I go about running just a part of an application in Eclipse.<br>
In this case the part I'm referring to is the GUI. The whole application 
isn't complete but the GUI is. Is ther a way to view the GUI client? 
Thank you.
</tt></blockquote><tt><br>You can add &quot;dummy&quot; static main() method and show the frames/dialogs in 
these main methods.</tt><br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 15:14:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24941.html</guid>
		<author>none@xxxxxxx (Name)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Correct Indentation</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24940.html</link>
		<description>Dmitry Guriev a &amp;#xE9;crit : the correct indentation must be using the fomratter preferences. You need to set them like your workspace. </description>
		<content:encoded><![CDATA[<tt>Dmitry Guriev a &#xE9;crit :
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Sorry. Tabs displays correctly.</pre><br>
<pre style="margin: 0em;">So, this is what I get using my code:</pre><br>
<pre style="margin: 0em;">class a {
   static String s = &quot;a&quot;
   +&quot;{&quot;
       +&quot;{&quot;
       +&quot;{&quot;
           ;
       // comment
       }</pre><br>
<pre style="margin: 0em;">and this is what I expect:</pre><br>
<pre style="margin: 0em;">class a {
   static String s = &quot;a&quot;
       +&quot;{&quot;
       +&quot;{&quot;
       +&quot;{&quot;
       ;
   // comment
}</pre><br>
<br>
</blockquote><tt><br>the correct indentation must be using the fomratter preferences. You 
need to set them like your workspace.</tt><br>
<br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 15:13:23 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24940.html</guid>
		<author>none@xxxxxxx (Name)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Which Eclipse project files to be	placed under source code control?</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24939.html</link>
		<description>I usually do this, too, even when checking in the JARs. It just makes it easy to always know exactly what version is being used. Note that when using User Libraries (ULs) or Classpath Variables (CVs), including version numbers in JARs doesn't really help. ...</description>
		<content:encoded><![CDATA[<tt>On 9/17/09 2:35 PM, Michael Ludwig wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Eric,</pre><br>
<pre style="margin: 0em;">you've made me reconsider the issue. What I had in mind were JARs
including the version number, like:</pre><br>
<pre style="margin: 0em;">xom-1.2.1.jar
xom-1.2.2.jar
log4j-1.2.15.jar
</pre></blockquote><tt><br>I usually do this, too, even when checking in the JARs. It just makes it 
easy to always know exactly what version is being used.<br>
Note that when using User Libraries (ULs) or Classpath Variables (CVs), 
including version numbers in JARs doesn't really help. You could name 
the ULs or CVs to include version numbers, I guess. But I find it 
simpler to just check in JARs as I've described. Even though ULs and CVs 
are an option, they still require an extra manual step when setting up a 
new workspace, whereas checking in with the project adds no additional 
steps.</tt><br>
<br>
<pre style="margin: 0em;">Glad to have helped,
Eric</pre><br>
<br>
<blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"><br>With those, the version is in the filename - so there does not seem to
be any point in versioning the file. Of course, Joe Evil could rename
the file - but he really shouldn't.</pre><br>
<pre style="margin: 0em;">(Okay, in order for this to be safe, there should be something in the
build mechanism that ensures the JAR file is there with the correct
version to prevent the build from succeeding with another version.)</pre><br>
<pre style="margin: 0em;">On the other hand, it's true that many JARs are not distributed with a
version number or only with a partial version number:</pre><br>
<pre style="margin: 0em;">saxon9.jar
xercesImpl.jar
xalan.jar</pre><br>
<pre style="margin: 0em;">For those, there has to be some sort of versioning. Joe Evil would
probably rename them, but I'll hitherforth consider putting them under
version control.</pre><br>
<tt>Thanks for your thoughts.
</tt></blockquote><pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 15:03:18 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24939.html</guid>
		<author>eclipse-bugs@xxxxxxx (Eric Rizzo)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Correct Indentation</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24938.html</link>
		<description>Sorry. Tabs displays correctly. So, this is what I get using my code: class a { static String s = &amp;quot;a&amp;quot; +&amp;quot;{&amp;quot; +&amp;quot;{&amp;quot; +&amp;quot;{&amp;quot; ; // comment } and this is what I expect: class a { static String s = &amp;quot;a&amp;quot; +&amp;quot;{&amp;quot; +&amp;quot;{&amp;quot; +&amp;quot;{&amp;quot; ; // comment } </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Sorry. Tabs displays correctly.</pre><br>
<pre style="margin: 0em;">So, this is what I get using my code:</pre><br>
<pre style="margin: 0em;">class a {
   static String s = &quot;a&quot;
   +&quot;{&quot;
       +&quot;{&quot;
       +&quot;{&quot;
           ;
       // comment
       }</pre><br>
<pre style="margin: 0em;">and this is what I expect:</pre><br>
<pre style="margin: 0em;">class a {
   static String s = &quot;a&quot;
       +&quot;{&quot;
       +&quot;{&quot;
       +&quot;{&quot;
       ;
   // comment
}</pre><br>
<pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 11:40:29 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24938.html</guid>
		<author>gurdm@xxxxxxx (Dmitry Guriev)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Correct Indentation</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24937.html</link>
		<description>Hello! I write my eclipse based program which generate java code. I would like to use org.eclipse.jdt.internal.ui.actions.IndentAction to correct indentation. But I have a problem when with the following example: String src = &amp;quot;class a {&amp;quot; +EOL+ uot;static S...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hello!</pre><br>
<tt>I write my eclipse based program which generate java code. I would like to 
use </tt><br>
<br>
<pre style="margin: 0em;">org.eclipse.jdt.internal.ui.actions.IndentAction to correct indentation.</pre><br>
<pre style="margin: 0em;">But I have a problem when with the following example:</pre><br>
<pre style="margin: 0em;">String src = &quot;class a {&quot; +EOL+
&quot;static String s = \&quot;a\&quot;\n&quot;+
&quot;+\&quot;{\&quot;\n&quot;+
&quot;+\&quot;{\&quot;\n&quot;+
&quot;+\&quot;{\&quot;\n&quot;+
&quot;;\n&quot;+
&quot;// comment\n&quot;+
&quot;}&quot;+EOL;
IDocument document = new Document(src);</pre><br>
<pre style="margin: 0em;">IndentAction.indent(document, project);</pre><br>
<pre style="margin: 0em;">I get the following output:</pre><br>
<pre style="margin: 0em;">&lt;pre&gt;
class a {
	static String s = &quot;a&quot;
	+&quot;{&quot;
		+&quot;{&quot;
		+&quot;{&quot;
			;
		// comment
		}
&lt;/pre&gt;</pre><br>
<tt>but when I select &quot;Correct Indentaton&quot; in editor menu I have the following 
output:</tt><br>
<br>
<pre style="margin: 0em;">&lt;pre&gt;
class a {
	static String s = &quot;a&quot;
		+&quot;{&quot;
		+&quot;{&quot;
		+&quot;{&quot;
		;
	// comment
}
&lt;/pre&gt;</pre><br>
<pre style="margin: 0em;">Is there any option in the project settings which can correct indentation?</pre><br>
<pre style="margin: 0em;">Thanks</pre><br>
<pre style="margin: 0em;"><br></pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 11:17:10 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24937.html</guid>
		<author>gurdm@xxxxxxx (Dmitry Guriev)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Running the GUI part of an application</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24936.html</link>
		<description>Hallo, How do I go about running just a part of an application in Eclipse. In this case the part I'm referring to is the GUI. The whole application isn't complete but the GUI is. Is ther a way to view the GUI client? Thank you. </description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Hallo,</pre><br>
<pre style="margin: 0em;">How do I go about running just a part of an application in Eclipse.
In this case the part I'm referring to is the GUI. The whole application isn't complete but the GUI is. Is ther a way to view the GUI client? Thank you.</pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 08:55:19 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24936.html</guid>
		<author>idaachi@xxxxxxx (Ida)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Getting superclass/superinterfaces	from an IType or CompilationUnit</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24935.html</link>
		<description>exquisitus schrieb: For a pointer take a look at the methods in org.eclipse.jdt.internal.corext.util.JavaModelUtil. Dani Got it. Just for Thread completion: IMethod method = ... IType type = method.getDeclaringType(); ITypeHierarchy typeHierarchy = type.ne...</description>
		<content:encoded><![CDATA[<tt>exquisitus schrieb:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>Daniel Megert schrieb:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>exquisitus wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<tt>Sorry if the question has been already answered, but I didn't found 
the (entry) point... :-(</tt><br>
<br>
<tt>How may I determine the superclass(es) from a given source IType. I'm 
finally interested in deciding, if a IMethod overrides a derived one 
and/or implements an interface method.
</tt></blockquote><tt>For a pointer take a look at the methods in 
org.eclipse.jdt.internal.corext.util.JavaModelUtil.</tt><br>
<br>
<tt>Dani
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"><br>Thanks in advance,
Sven
</pre></blockquote></blockquote><pre style="margin: 0em;"><br>Got it. Just for Thread completion:</pre><br>
<pre style="margin: 0em;">IMethod method = ...
IType type = method.getDeclaringType();
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null);
IType superclass = typeHierarchy.getSuperclass(type);
while(superclass != null) {
    IMethod[] methods = superclass.getMethods();
                  for (IMethod superMethod : methods) {
                     if (equals(method, superMethod)) {
                        // is derived method
                     }
                  }
</pre></blockquote><tt>superclass = typeHierarchy.getSuperclass(superclass); // of curse
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">}</pre><br>
<tt>   static boolean equals(IMethod m1, IMethod m2) throws 
JavaModelException {<br>
      if (m1 == m2) return true;<br>
      if (m1 == null || m2 == null) return false;</tt><br>
<br>
<pre style="margin: 0em;">      boolean b = m1.getElementName().equals(m2.getElementName());</pre><br>
<pre style="margin: 0em;">      String r1 = m1.getReturnType();
      String r2 = m2.getReturnType();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; equals(r1, r2); // null safe equals</pre><br>
<pre style="margin: 0em;">      String[] p1 = m1.getParameterTypes();
      String[] p2 = m2.getParameterTypes();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; Arrays.deepEquals(p1, p2);</pre><br>
<pre style="margin: 0em;">      String[] e1 = m1.getExceptionTypes();
      String[] e2 = m2.getExceptionTypes();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; Arrays.deepEquals(e1, e2);</pre><br>
<pre style="margin: 0em;">      return b;
   }</pre><br>
<pre style="margin: 0em;">   static boolean equals(String s1, String s2) {
      if (s1 == s2) return true;
      if (s1 == null || s2 == null) return false;
      return s1.equals(s2);
   }
</pre></blockquote><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 08:28:35 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24935.html</guid>
		<author>no.spam@xxxxxxx (exquisitus)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Getting superclass/superinterfaces	from an IType or CompilationUnit</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24934.html</link>
		<description>Daniel Megert schrieb: For a pointer take a look at the methods in org.eclipse.jdt.internal.corext.util.JavaModelUtil. Dani Got it. Just for Thread completion: IMethod method = ... IType type = method.getDeclaringType(); ITypeHierarchy typeHierarchy = type...</description>
		<content:encoded><![CDATA[<tt>Daniel Megert schrieb:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><tt>exquisitus wrote:
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">Hi,</pre><br>
<tt>Sorry if the question has been already answered, but I didn't found 
the (entry) point... :-(</tt><br>
<br>
<tt>How may I determine the superclass(es) from a given source IType. I'm 
finally interested in deciding, if a IMethod overrides a derived one 
and/or implements an interface method.
</tt></blockquote><tt>For a pointer take a look at the methods in 
org.eclipse.jdt.internal.corext.util.JavaModelUtil.</tt><br>
<br>
<tt>Dani
</tt><blockquote style="border-left: #5555EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"><br>Thanks in advance,
Sven
</pre></blockquote></blockquote><pre style="margin: 0em;"><br>Got it. Just for Thread completion:</pre><br>
<pre style="margin: 0em;">IMethod method = ...
IType type = method.getDeclaringType();
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null);
IType superclass = typeHierarchy.getSuperclass(type);
while(superclass != null) {
	IMethod[] methods = superclass.getMethods();
                  for (IMethod superMethod : methods) {
                     if (equals(method, superMethod)) {
                        // is derived method
                     }
                  }
}</pre><br>
<tt>   static boolean equals(IMethod m1, IMethod m2) throws 
JavaModelException {<br>
      if (m1 == m2) return true;<br>
      if (m1 == null || m2 == null) return false;</tt><br>
<br>
<pre style="margin: 0em;">      boolean b = m1.getElementName().equals(m2.getElementName());</pre><br>
<pre style="margin: 0em;">      String r1 = m1.getReturnType();
      String r2 = m2.getReturnType();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; equals(r1, r2); // null safe equals</pre><br>
<pre style="margin: 0em;">      String[] p1 = m1.getParameterTypes();
      String[] p2 = m2.getParameterTypes();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; Arrays.deepEquals(p1, p2);</pre><br>
<pre style="margin: 0em;">      String[] e1 = m1.getExceptionTypes();
      String[] e2 = m2.getExceptionTypes();</pre><br>
<pre style="margin: 0em;">      b = b &amp;&amp; Arrays.deepEquals(e1, e2);</pre><br>
<pre style="margin: 0em;">      return b;
   }</pre><br>
<pre style="margin: 0em;">   static boolean equals(String s1, String s2) {
      if (s1 == s2) return true;
      if (s1 == null || s2 == null) return false;
      return s1.equals(s2);
   }</pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 08:27:45 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24934.html</guid>
		<author>no.spam@xxxxxxx (exquisitus)</author>
	</item>


	<item>
		<title>[news.eclipse.tools.jdt] Re: Database conectivity for J2EE through Eclipse</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24933.html</link>
		<description>http://www.vogella.de/articles/EclipseDataToolsPlatform/arti cle.html I know, this is Derby, and you didn't want Derby. But as far as Eclipse DTP (Data Tools Project) is concerned, which is what you use to set up database adapters in Eclipse, it's not much...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;"><a  href="http://www.vogella.de/articles/EclipseDataToolsPlatform/arti">http://www.vogella.de/articles/EclipseDataToolsPlatform/arti</a> cle.html</pre><br>
<pre style="margin: 0em;">I know, this is Derby, and you didn't want Derby. But as far as Eclipse DTP (Data Tools Project) is concerned, which is what you use to set up database adapters in Eclipse, it's not much different for Oracle, MySQL, Firebird. So this should get you started.</pre><br>
]]></content:encoded>
		<pubDate>Fri, 18 Sep 2009 00:22:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24933.html</guid>
		<author>louisseize@xxxxxxx (Michael Ludwig)</author>
	</item>
	<item>
		<title>[news.eclipse.tools.jdt] Re: Which Eclipse project files to be placed under source code control?</title>
		<link>http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24932.html</link>
		<description>Eric, you've made me reconsider the issue. What I had in mind were JARs including the version number, like: xom-1.2.1.jar xom-1.2.2.jar log4j-1.2.15.jar With those, the version is in the filename - so there does not seem to be any point in versioning the f...</description>
		<content:encoded><![CDATA[<pre style="margin: 0em;">Eric,</pre><br>
<pre style="margin: 0em;">you've made me reconsider the issue. What I had in mind were JARs including the version number, like:</pre><br>
<pre style="margin: 0em;">xom-1.2.1.jar
xom-1.2.2.jar
log4j-1.2.15.jar</pre><br>
<pre style="margin: 0em;">With those, the version is in the filename - so there does not seem to be any point in versioning the file. Of course, Joe Evil could rename the file - but he really shouldn't.</pre><br>
<pre style="margin: 0em;">(Okay, in order for this to be safe, there should be something in the build mechanism that ensures the JAR file is there with the correct version to prevent the build from succeeding with another version.)</pre><br>
<pre style="margin: 0em;">On the other hand, it's true that many JARs are not distributed with a version number or only with a partial version number:</pre><br>
<pre style="margin: 0em;">saxon9.jar
xercesImpl.jar
xalan.jar</pre><br>
<pre style="margin: 0em;">For those, there has to be some sort of versioning. Joe Evil would probably rename them, but I'll hitherforth consider putting them under version control.</pre><br>
<pre style="margin: 0em;">Thanks for your thoughts.</pre><br>
]]></content:encoded>
		<pubDate>Thu, 17 Sep 2009 18:35:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.tools.jdt/msg24932.html</guid>
		<author>louisseize@xxxxxxx (Michael Ludwig)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->
