Skip to main content

Errors with extends a class

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
kkt8
Offline
Joined: 2010-11-17

Hello
I word under eclipse and java
I've some errors that I don't understand :

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;

public class TestForm extends FormPage{

public TestForm(FormEditor editor, String id, String title) {
super(editor, id, title);
// TODO Auto-generated constructor stub
}
public TestForm(String id, String title) {
super(id, title);
// TODO Auto-generated constructor stub
}
}

So simple ... isn't it ?
And I've :
under TestForm : The hierarchy of the type TestForm is inconsistent
under FormPage :
- The type org.eclipse.ui.IEditorPart cannot be resolved. It is indirectly referenced from required .class files
- The type org.eclipse.ui.part.EditorPart cannot be resolved. It is indirectly referenced from required .class files

Do you have an idea ?
Thank in advance