Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part Name is not updated #201

Open
phermsdorf opened this issue Jul 17, 2024 · 0 comments
Open

Part Name is not updated #201

phermsdorf opened this issue Jul 17, 2024 · 0 comments

Comments

@phermsdorf
Copy link
Contributor

Hi,

i have a problem programatically updating a part name. Depending on the active editor we update the part name of a view.
We do that by calling setPartName on the ViewPart class.

Which then calls
org.eclipse.ui.part.WorkbenchPart.firePropertyChange(IWorkbenchPartConstants.PROP_PART_NAME)
-> org.eclipse.ui.internal.WorkbenchPartReference.partPropertyChanged(Object, int)
-> org.eclipse.ui.internal.WorkbenchPartReference.refreshFromPart()

the actual value for the part name are produced correctly, it just seems that the ui is not updated by refreshFromPart().
Only closing and reopening the view shows the correct part name.

Any ideas?

Thanks, bye Peter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant