This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A) get list of current installed plugins | |
return eclipse.registry.views_Ids().sort() | |
// B) get findings view | |
def findings = eclipse.views.open("com.ouncelabs.osa.ui.base.views.findings"); | |
return findings; | |
// C) view findings object (properties, fields and methods) | |
def findings = eclipse.views.open("com.ouncelabs.osa.ui.base.views.findings"); | |
show(findings) // return value: com.ouncelabs.osa.ui.extended.views.FindingsView@1d4e177 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def firebaseJsonData = "https://incandescent-fire-1320.firebaseio.com/.json?print=pretty" | |
def data = firebaseJsonData.toURL().getText() | |
return data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//run these first (so that the code below compiles) | |
eclipseAPI.extraGroovyJars = | |
[ "/Users/plugin/_Dev/eclipses/Kepler/plugins/org.eclipse.swtbot.eclipse.finder_2.1.2.201311041021.jar" , | |
"/Users/plugin/_Dev/eclipses/Kepler/plugins/org.eclipse.swtbot.swt.finder_2.1.2.201311041021.jar" , | |
"/Users/plugin/_Dev/eclipses/Kepler/plugins/org.apache.log4j_1.2.15.v201012070815.jar" ] | |
def groovyExecution = view.groovyExecution; | |
def groovyShell = groovyExecution.groovyShell; | |
//def jar = "asd"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.browser.Browser; | |
import org.eclipse.swt.widgets.*; | |
import org.eclipse.swt.graphics.Rectangle; | |
import org.eclipse.jface.action.Action; | |
import org.eclipse.ui.internal.about.*; | |
def panel = eclipseAPI.panels.add_Panel("asd_2 123"); | |
for (def control : panel.composite.getChildren()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def editorTitle = "Firebase_Login.html" | |
import java.nio.file.*; | |
import com.sun.nio.file.* | |
def refreshBrowser = { path -> | |
eclipse.log("Opening browser with: " + path); | |
eclipse.views.create(path).clear().add.browser().open(path); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ng-app="project"> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js" ></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular-route.js"></script> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" > | |
<script src="app.js"></script> | |
</head> | |
<body> |
OlderNewer