Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ManifestResourceTransformer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<parent>
<groupId>com.openwebstart</groupId>
<artifactId>openwebstart-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<relativePath>../</relativePath>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>ManifestResourceTransformer</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<parent>
<groupId>com.openwebstart</groupId>
<artifactId>openwebstart-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>openwebstart-documentation</artifactId>
Expand Down
5 changes: 3 additions & 2 deletions openwebstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<parent>
<groupId>com.openwebstart</groupId>
<artifactId>openwebstart-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>openwebstart</artifactId>
Expand All @@ -16,7 +17,7 @@
<description>Additional Java Code which is only available in OWS and not in ITW</description>

<properties>
<icedtea-web.version>2.0.0-SNAPSHOT</icedtea-web.version>
<icedtea-web.version>3.0.0-SNAPSHOT</icedtea-web.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ public interface Images {

URL JVM_64_URL = Images.class.getResource("jvm-64.png");

URL QUESTION_64_URL = Images.class.getResource("question-64.png");

URL ERROR_64_URL = Images.class.getResource("error-64.png");

URL NETWORK_64_URL = Images.class.getResource("network-64.png");

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import net.adoptopenjdk.icedteaweb.ProcessUtils;
import net.adoptopenjdk.icedteaweb.i18n.Translator;
import net.adoptopenjdk.icedteaweb.jnlp.element.resource.JREDesc;
import net.adoptopenjdk.icedteaweb.jnlp.element.security.ApplicationPermissionLevel;
import net.adoptopenjdk.icedteaweb.jnlp.element.security.ApplicationEnvironment;
import net.adoptopenjdk.icedteaweb.jnlp.version.VersionId;
import net.adoptopenjdk.icedteaweb.jnlp.version.VersionString;
import net.adoptopenjdk.icedteaweb.jvm.JvmUtils;
Expand Down Expand Up @@ -143,7 +143,7 @@ private void launchExternal(
}

private List<String> extractVmArgs(final JNLPFile jnlpFile) {
if (jnlpFile.getSecurity().getApplicationPermissionLevel() == ApplicationPermissionLevel.ALL) {
if (jnlpFile.getSecurity().getApplicationEnvironment() == ApplicationEnvironment.ALL) {
final List<String> result = new ArrayList<>();
final Map<String, String> properties = jnlpFile.getResources().getPropertiesMap();
properties.keySet().forEach(property -> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.openwebstart.ui;

import com.openwebstart.jvm.ui.Images;
import net.adoptopenjdk.icedteaweb.Assert;
import net.adoptopenjdk.icedteaweb.i18n.Translator;
import net.adoptopenjdk.icedteaweb.image.ImageGallery;
import net.adoptopenjdk.icedteaweb.logging.Logger;
import net.adoptopenjdk.icedteaweb.logging.LoggerFactory;
import net.adoptopenjdk.icedteaweb.ui.swing.SwingUtils;

import javax.swing.ImageIcon;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import java.io.PrintWriter;
Expand All @@ -30,7 +29,7 @@ private static JTextArea createStackTraceDetailsComponent(final Exception error)
}

public ErrorDialog(final String message, final Exception error) {
super(Translator.getInstance().translate("dialog.error.title"), new ImageIcon(Images.ERROR_64_URL), message, createStackTraceDetailsComponent(error));
super(Translator.getInstance().translate("dialog.error.title"), ImageGallery.ERROR.asImageIcon(), message, createStackTraceDetailsComponent(error));
}

private static String getStackTrace(final Exception exception) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void setContentPane(final Container contentPane) {
public void showAndWait() {
pack();
setLocationRelativeTo(null);
setAlwaysOnTop(true);
setVisible(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.openwebstart.jvm.ui.Images;
import com.openwebstart.ui.IconComponent;
import com.openwebstart.util.LayoutFactory;
import net.adoptopenjdk.icedteaweb.image.ImageGallery;

import javax.swing.BorderFactory;
import javax.swing.Box;
Expand All @@ -22,7 +23,7 @@ public class SimpleDialogWithResult<R> extends ButtonBasedDialogWithResult<R> {
private final ImageIcon imageIcon;

public SimpleDialogWithResult(final String title, final String message, final DialogButton<R>... buttons) {
this(title, message, new ImageIcon(Images.QUESTION_64_URL), buttons);
this(title, message, ImageGallery.QUESTION.asImageIcon(), buttons);

}

Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.openwebstart</groupId>
<artifactId>openwebstart-parent</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>OpenWebStart Parent</name>
Expand Down