Skip to content

Instantly share code, notes, and snippets.

@Tak31337
Created April 4, 2013 20:52
Show Gist options
  • Save Tak31337/5314262 to your computer and use it in GitHub Desktop.
Save Tak31337/5314262 to your computer and use it in GitHub Desktop.
SWT subclass check override H4x ;D
package com.taksmind.subnetting;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
public class NetText extends Text {
private String name;
public NetText(Composite parent, int style) {
super(parent, style);
}
public void setNetName(String newName) {
name = newName;
}
public String getNetName() {
return name;
}
protected void checkSubclass() {
// Disable the check that prevents subclassing of SWT components
//HAACCCKKKKSSSS!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment