Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Dash"

 
Line 2: Line 2:
  
 
We've published our first experimental script over on our [[ http://eclipse-projects.blogspot.com/2005/11/our-first-published-script.html | blog ]]. We're also putting it here on the wiki:
 
We've published our first experimental script over on our [[ http://eclipse-projects.blogspot.com/2005/11/our-first-published-script.html | blog ]]. We're also putting it here on the wiki:
--- Came wiffling through the eclipsey wood ---
+
--- Came wiffling through the eclipsey wood ---
/*
+
/*
* Menu: Find System.outs
+
  * Menu: Find System.outs
  */
+
  */
 +
   
 +
function main() {
 +
  var files = resources.filesMatching(".*\\.java");
 +
  var match;
 +
 
 +
  for each( file in files ) {
 +
    file.removeMyTasks(  );
 +
    for each( line in file.lines ) {
 +
      if (match = line.string.match(/System\.out\.print(ln)? *\(.*\)/)) {
 +
          line.addMyTask( match[0] );
 +
      }
 +
    }
 +
  }
 +
  window.getActivePage().showView("org.eclipse.ui.views.TaskList");
 +
}
 +
--- And burbled as it ran! ---
  
function main() {
+
The idea is to be able to publish and share these scripts easily.
  var files = resources.filesMatching(".*\\.java");
+
  var match;
+
 
+
  for each( file in files ) {
+
    file.removeMyTasks(  );
+
    for each( line in file.lines ) {
+
      if (match = line.string.match(/System\.out\.print(ln)? *\(.*\)/)) {
+
        line.addMyTask( match[0] );
+
      }
+
    }
+
  }
+
  window.getActivePage().showView("org.eclipse.ui.views.TaskList");
+
}
+
--- And burbled as it ran! ---
+

Revision as of 17:09, 30 November 2005

The Dash project is still a proposal, but here are some words about it.

We've published our first experimental script over on our blog . We're also putting it here on the wiki:

--- Came wiffling through the eclipsey wood ---
/*
 * Menu: Find System.outs
 */

function main() {
  var files = resources.filesMatching(".*\\.java");
  var match;
  
  for each( file in files ) { 
    file.removeMyTasks(  );
    for each( line in file.lines ) {
      if (match = line.string.match(/System\.out\.print(ln)? *\(.*\)/)) {
         line.addMyTask( match[0] );
      }
    }
  }
  window.getActivePage().showView("org.eclipse.ui.views.TaskList");
}
--- And burbled as it ran! ---

The idea is to be able to publish and share these scripts easily.

Back to the top