1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
public class NewEditorPart extends EditorPart {
public static final String ID_VIEW =
"webSiteFactory.NewEditorPart"; //$NON-NLS-1$
Composite composite1;
public NewEditorPart() {
super();
// TODO Auto-generated constructor stub
}
public void createPartControl(Composite parent) {
composite1 = new Composite(parent, SWT.NULL);
composite1.setLayout(new GridLayout(4, false));
}
public void setFocus() {
}
public void dispose() {
super.dispose();
}
public void doSave(IProgressMonitor arg0) {
}
public void doSaveAs() {
}
public void init(IEditorSite arg0, IEditorInput arg1) throws PartInitException
{
setSite(arg0);
setInput(arg1);
setPartName(arg1.getName());
}
public boolean isDirty() {
return false;
}
public boolean isSaveAsAllowed() {
return false;
}
} |
Partager