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

CHE-682: Enable debug buttons when debugger open file without source #657

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

AndrienkoAleksandr
Copy link
Contributor

Signed-off-by: Aleksandr Andrienko aandrienko@codenvy.com

@@ -211,7 +211,7 @@ public void initializeAndInitEditor() throws EditorInitException {

embeddedTextEditorPresenter.injectAsyncLoader(loaderFactory);
embeddedTextEditorPresenter.initialize(configuration, notificationManager);
embeddedTextEditorPresenter.init(editorInput);
embeddedTextEditorPresenter.init(editorInput, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid passing null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll fix it

@@ -197,11 +198,17 @@ public void onReady(final String content) {
@Override
public void onError() {
displayErrorPanel(constant.editorInitErrorMessage());
if (callback != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think yes, because for example in class RecipeEditorPanel we creates simple editor panel but we don't need OpenEditorCallback, or we can use empty implementation. What do you think?

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
@vparfonov
Copy link
Contributor

ok

AndrienkoAleksandr added a commit that referenced this pull request Mar 10, 2016
CHE-682: Enable debug buttons when debugger open file without source
@AndrienkoAleksandr AndrienkoAleksandr merged commit 2b891e6 into master Mar 10, 2016
@AndrienkoAleksandr AndrienkoAleksandr deleted the CHE-682 branch March 10, 2016 11:13
Katka92 pushed a commit to Katka92/che that referenced this pull request Jun 27, 2018
…h-che6

Revert "remove ability to override prod docker registry"
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.

None yet

4 participants