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

Add project label to report view header #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vodorok
Copy link
Collaborator

@vodorok vodorok commented Jul 25, 2019

Now there is a label that shows which projects reports are currently viewed.

Now there is a label that shows which projects reports are currently viewed.
@vodorok vodorok requested review from gamesh411 and gyorb July 25, 2019 15:44
@@ -3,39 +3,51 @@
import java.util.HashMap;
import java.util.LinkedList;

Copy link
Collaborator Author

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;

Copy link
Collaborator Author

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);
Copy link
Collaborator Author

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();
Copy link
Collaborator Author

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.

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

Successfully merging this pull request may close these issues.

1 participant