Skip to content

Instantly share code, notes, and snippets.

import java.util.Observable;
public class MyDataStore extends Observable{
public void updateMeSomehow(){
setChanged();
notifyObservers();
}
}
public class RequestExectutionView extends ViewPart{
TreeViewer myTreeViewer;
...
public void createPartControl(Composite parent) {
Tree myTree = new Tree(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
myTree.setHeaderVisible(true);
myTreeViewer = new TreeViewer(executionTree);
myTreeViewer.setLabelProvider(new MyLabelProvider());
@cybersonic
cybersonic / gist:3904685
Created October 17, 2012 09:35
Anatomy of a Test Case
<cfcomponent extends="mxunit.framework.TestCase">
<!--- this will run before every single test in this test case --->
<cffunction name="setUp" returntype="void" access="public" hint="put things here that you want to run before each test">
<cfset obj = createObject("component","ObjectUnderTest")>
</cffunction>
<!--- this will run after every single test in this test case --->
<Directory "/Users/markdrew/Sites">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<cfquery name = "getAgain" datasource="DSN">
select * from Table2 where ID in (<cfqueryparam cfsqltype="cf_sql_varchar" value="#ValueList(get.anotherID)#" list="true">)
</cfquery>