Hello Eric,
Are there plans to support RCP standalone apps?
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
jleotta wrote:Are there plans to support RCP standalone apps?
jleotta wrote:Okay what I currently have in mind and would be quite helpful is a Form EditorPart. Currently there is a RCP EditorPart but it doesnt have the flat look or have the form widgets available.
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.part.EditorPart;
public class FormEditorPart extends EditorPart {
public void createPartControl(Composite parent) {
FormToolkit toolkit = new FormToolkit(Display.getCurrent());
Composite container = toolkit.createComposite(parent, SWT.NONE);
toolkit.paintBordersFor(container);
}
public void setFocus() {
}
public void doSave(IProgressMonitor monitor) {
}
public void doSaveAs() {
}
public void init(IEditorSite site, IEditorInput input)
throws PartInitException {
}
public boolean isDirty() {
return false;
}
public boolean isSaveAsAllowed() {
return false;
}
}
Users browsing this forum: No registered users and 1 guest