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

Update UI to display different instructions for different error codes #1137

Merged
merged 4 commits into from
Jul 26, 2022

Conversation

ttanatb
Copy link
Contributor

@ttanatb ttanatb commented Jun 24, 2022

Failed to validate trace file:
Screen Shot 2022-06-24 at 5 25 32 PM

Consistently fails to validate trace file (after 3 tries):
Screen Shot 2022-06-24 at 5 16 58 PM

Precondition error:
Screen Shot 2022-06-24 at 5 55 47 PM

Other kinds of error
Screen Shot 2022-06-24 at 5 57 32 PM

Validation Passes:
Screen Shot 2022-06-24 at 5 21 55 PM

@ttanatb
Copy link
Contributor Author

ttanatb commented Jun 24, 2022

Also ran gapic/src/main/com/google/gapid/views/DeviceValidationView.java through google-java-format

withLayoutData(
createGroup(this, ""), withSpans(new GridData(SWT.FILL, SWT.TOP, true, false), 3, 1));
Text errText =
withLayoutData(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Is this line break after assignment a java style?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the Google Java style guide:
When a line is broken at an assignment operator the break typically comes after the symbol, but either way is acceptable.

I think there's nothing prohibiting withLayoutData to be on the same line as Text errText = but I ran the java formatter and this is what it produced

@ttanatb ttanatb merged commit a9e748f into google:master Jul 26, 2022
sonakshisaxena1 pushed a commit to sonakshisaxena1/agi that referenced this pull request Aug 2, 2022
rosasco-wk pushed a commit to rosasco-wk/agi that referenced this pull request Sep 3, 2022
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.

3 participants