gamo
gamo

Reputation: 1577

Modify a view in RCP

In eclipse have a function that when I'm modifying a class that will implements a * in the title like this: enter image description here

And when I select Save button that * is no more.

The question is I want add that function into my application but have no idea or any key word to search it on google. Any suggestion?

Upvotes: 0

Views: 47

Answers (1)

Basilevs
Basilevs

Reputation: 23939

Implement IEditorPart interface in your own editor and override its isDirty() and doSave() methods. Send notifications about content changes to workbench with firePropertyChange() (with PROP_DIRTY argument). Don't forget to contribute your editor to org.eclipse.ui.editors extension point.

Upvotes: 3

Related Questions