为何视频里代码能编译通过并正常运行,小弟我的却不能

为何视频里代码能编译通过并正常运行,我的却不能?
我用的最新的eclipse luna 4.4.2
在看网上那个《eclipse操作详解视频教程》时,他写了这么一段代码可以正常通过;

private static void initShell(final Shell shell) {

shell.setSize(320, 160);
GridLayout layout = new GridLayout();
shell.setLayoutData(layout);

1、 final Text text = new Text(shell, SWT.SINGLE | SWT.BORDER);
text.setTextContent(程序员!");

2、 final Button b = new Button(shell , SWT.BORDER);

}
我在编译时,第1处却显示Cannot instantiate the type Text的错误
第2处显示The constructor Button(Shell, int) is undefined的错误,包全部导入绝无问题,
为什么??eclipse版本不同引起??


------解决思路----------------------

Constructors 
Constructor and Description
Button()
Constructs a button with an empty string for its label.
Button(String label)
Constructs a button with the specified label.
zhi you zhe liangge o!
haiyou wo zhaobudao text zhege lei.ni shangmian ziji xie le zhege lei le ba,nanikan ta de gou zao fang da la
------解决思路----------------------
1、text.setTextContent(程序员!"); 缺失前面的引号
2、应该是button没有那个构造器