File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Thu Aug 28 17:36:28 EDT 2008
1+ # Mon Apr 13 07:44:22 EST 2009
22eclipse.preferences.version =1
33org.eclipse.jdt.core.compiler.codegen.targetPlatform =1.5
44org.eclipse.jdt.core.compiler.compliance =1.5
@@ -77,6 +77,9 @@ org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
7777org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch =false
7878org.eclipse.jdt.core.formatter.indentation.size =2
7979org.eclipse.jdt.core.formatter.insert_new_line_after_annotation =insert
80+ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable =insert
81+ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member =insert
82+ org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter =do not insert
8083org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer =do not insert
8184org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing =do not insert
8285org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement =do not insert
Original file line number Diff line number Diff line change @@ -2237,11 +2237,39 @@ void exit2() {
22372237 //////////////////////////////////////////////////////////////
22382238
22392239
2240- //new Thread() {
2241- //public void run() {
2242- //}
2243- //}.start();
2240+ public void method (String name ) {
2241+ // final Object o = this;
2242+ // final Class<?> c = getClass();
2243+ try {
2244+ Method method = getClass ().getMethod (name , new Class [] {});
2245+ method .invoke (this , new Object [] { });
22442246
2247+ } catch (IllegalArgumentException e ) {
2248+ e .printStackTrace ();
2249+ } catch (IllegalAccessException e ) {
2250+ e .printStackTrace ();
2251+ } catch (InvocationTargetException e ) {
2252+ e .getTargetException ().printStackTrace ();
2253+ } catch (NoSuchMethodException nsme ) {
2254+ System .err .println ("There is no " + name + "() method " +
2255+ "in the class " + getClass ().getName ());
2256+ } catch (Exception e ) {
2257+ e .printStackTrace ();
2258+ }
2259+ }
2260+
2261+
2262+ public void thread (final String name ) {
2263+ Thread later = new Thread () {
2264+ public void run () {
2265+ method (name );
2266+ }
2267+ };
2268+ later .start ();
2269+ }
2270+
2271+
2272+ /*
22452273 public void thread(String name) {
22462274 final Object o = this;
22472275 final Class<?> c = getClass();
@@ -2271,6 +2299,7 @@ public void run() {
22712299 e.printStackTrace();
22722300 }
22732301 }
2302+ */
22742303
22752304
22762305
You can’t perform that action at this time.
0 commit comments