-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add project label to report view header #174
base: master
Are you sure you want to change the base?
Conversation
Now there is a label that shows which projects reports are currently viewed.
@@ -3,39 +3,51 @@ | |||
import java.util.HashMap; | |||
import java.util.LinkedList; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto import reorganization.
@@ -48,17 +60,20 @@ | |||
private String currentFilename; | |||
private IProject currentProject; | |||
private ShowFilterConfigurationDialog showfilterconfigurationdialog; | |||
|
|||
private Label message; | |||
private Composite client; | |||
public ReportListView() { | |||
} | |||
|
|||
public void createPartControl(Composite parent) { | |||
|
|||
this.parent = parent; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a client area to place widgets to. There is a new message Label to display the project name
@@ -276,6 +292,7 @@ private void reloadReports(String currentFileName) { | |||
//Optional<Long> runId = Optional.absent(); | |||
|
|||
CodeCheckerContext.getInstance().runReportJob(this, currentFileName); | |||
refresh(parent); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had to be added, otherwise the label wouldn't display correctly.
@@ -240,6 +255,7 @@ public void clearModel() { | |||
} | |||
|
|||
public void refresh(Object parent) { | |||
client.layout(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will trigger the invalidation.
Now there is a label that shows which projects reports are currently viewed.