Example usage for com.google.gwt.user.client Window open

List of usage examples for com.google.gwt.user.client Window open

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window open.

Prototype

public static void open(String url, String name, String features) 

Source Link

Usage

From source file:org.eclipse.che.ide.actions.RedirectToFeedbackAction.java

License:Open Source License

/** {@inheritDoc} */
@Override//from w w w . j a  v a2s.co m
public void actionPerformed(ActionEvent e) {
    eventLogger.log(this);
    Window.open(locale.actionRedirectToFeedbackUrl(), "_blank", "");
}

From source file:org.eclipse.che.ide.actions.RedirectToForumsAction.java

License:Open Source License

/** {@inheritDoc} */
@Override/*from  w ww.j a  v a 2s  .  c o  m*/
public void actionPerformed(ActionEvent e) {
    eventLogger.log(this);
    Window.open(locale.actionRedirectToForumsUrl(), "_blank", "");
}

From source file:org.eclipse.che.ide.actions.RedirectToHelpAction.java

License:Open Source License

/** {@inheritDoc} */
@Override//from ww w. j  a va 2  s.c  o  m
public void actionPerformed(ActionEvent e) {
    eventLogger.log(this);
    Window.open(locale.actionRedirectToHelpUrl(), "_blank", "");
}

From source file:org.eclipse.che.ide.command.toolbar.previews.PreviewsPresenter.java

License:Open Source License

@Override
public void onUrlChosen(PreviewUrl previewUrl) {
    Window.open(previewUrl.getUrl(), "_blank", null);
}

From source file:org.eclipse.che.ide.ext.help.client.RedirectToSupportAction.java

License:Open Source License

@Override
public void actionPerformed(ActionEvent e) {
    Window.open(productInfoDataProvider.getSupportLink(), "_blank", null);
}

From source file:org.eclipse.che.ide.ext.runner.client.manager.RunnerManagerViewImpl.java

License:Open Source License

/** {@inheritDoc} */
@Override
public void showLog(@Nonnull String url) {
    Window.open(url, "_blank", "");
}

From source file:org.eclipse.che.ide.ext.runner.client.manager.RunnerManagerViewImpl.java

License:Open Source License

@UiHandler("appReference")
public void onAppReferenceClicked(@SuppressWarnings("UnusedParameters") ClickEvent clickEvent) {
    if (url != null) {
        Window.open(url, "_blank", "");
    }/*w  ww  .j  av a2  s  . c o m*/
}

From source file:org.eclipse.che.ide.ext.runner.client.runneractions.impl.CheckRamAndRunAction.java

License:Open Source License

private boolean isSufficientMemory(@Nonnegative int totalMemory, @Nonnegative int usedMemory,
        @Nonnegative final int requiredMemory) {
    int availableMemory = totalMemory - usedMemory;
    if (availableMemory < requiredMemory) {
        dialogFactory.createChoiceDialog(constant.messagesAvailableLessOverrideMemoryTitle(),
                constant.messagesAvailableLessOverrideMemoryContent(),
                constant.messagesAvailableLessOverrideMemorySettingsLink(),
                constant.messagesAvailableLessOverrideMemoryBackToConfig(), new ConfirmCallback() {
                    @Override/*from w w w  .  j  av  a  2  s  .  com*/
                    public void accepted() {
                        Window.open("/dashboard/#/organizations", "_blank", null);
                    }
                }, null).show();
        return false;
    }

    return true;
}

From source file:org.eclipse.che.ide.ext.runner.client.runneractions.impl.CheckRamAndRunAction.java

License:Open Source License

private boolean isOverrideMemoryCorrect(@Nonnegative int totalMemory, @Nonnegative int usedMemory,
        @Nonnegative final int overrideMemory) {
    int availableMemory = totalMemory - usedMemory;
    if (availableMemory < overrideMemory) {
        dialogFactory.createChoiceDialog(constant.messagesAvailableLessOverrideMemoryTitle(),
                constant.messagesAvailableLessOverrideMemoryContent(),
                constant.messagesAvailableLessOverrideMemorySettingsLink(),
                constant.messagesAvailableLessOverrideMemoryBackToConfig(), new ConfirmCallback() {
                    @Override/*w  w w .j  a  v  a 2 s  .c o  m*/
                    public void accepted() {
                        Window.open("/dashboard/#/organizations", "_blank", null);
                    }
                }, null).show();
        return false;
    }

    if (overrideMemory > MB_4000.getValue()) {
        consoleContainer.printInfo(runner, constant.messagesLargeMemoryRequest());
    }

    return true;
}

From source file:org.eclipse.che.ide.ext.ssh.client.manage.SshKeyManagerPresenter.java

License:Open Source License

private void downloadPrivateKey(final String privateKey) {
    dialogFactory.createConfirmDialog(constant.downloadPrivateKeyTitle(), constant.downloadPrivateKeyMessage(),
            new ConfirmCallback() {
                @Override//from www . j  av a2 s .c  om
                public void accepted() {
                    Window.open("data:application/x-pem-key," + URL.encodePathSegment(privateKey), "_blank",
                            null);
                }
            }, getCancelCallback()).show();
}