Im working on a RAP application that shows both ViewParts and EditorParts. Im trying to find a way to prevent "All" Editor parts from closing. Is there a way to either remove or disable the "X" close button shown on a Editor part?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
you can do like this(what I have written is about the same like :http://wiki.eclipse.org/RCP_Custom_Look_and_Feel): In your ApplicationWorkbenchWindowAdvisor class ,you can register your own PresentationFacory like:
the class UnCloseableEditorPresentationFactory extends WorkbenchPresentationFactory,you can simply overrid the method
then you can remove the "X" button in the EditorPart .It works in my machine~~
This is possible through implementing a presentation layer - see http://wiki.eclipse.org/RCP_Custom_Look_and_Feel and http://e-rcp.blogspot.ca/2007/09/prevent-that-rcp-editor-is-closed.html.