Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Make ui elements not package private
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Chepeliuk committed Feb 15, 2018
1 parent 1622bdf commit 66115fa
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected ValidationInfo doValidate() {

try {
MobileClient mobileClient = this.mobileAPI.getClient(clientId);
return new ValidationInfo("Client name and type duplicate");
return new ValidationInfo(String.format("Client name and type duplicate: %s", mobileClient.spec.name));
} catch (CLIException e) {
// this is fine https://i.imgur.com/mtGc7Sl.gif
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javax.swing.JTextField;
import com.intellij.openapi.ui.TextFieldWithBrowseButton;

class NewFileForm extends javax.swing.JPanel {
public class NewFileForm extends javax.swing.JPanel {

public NewFileForm() {
initComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

public class ServiceDeployedNotification extends Notification {
private final Project project;
private final Object deployOutput;

public ServiceDeployedNotification(Project project, ServiceClass sc) {
public ServiceDeployedNotification(Project project, ServiceClass sc, Object obj) {
super(MobileNotificationsService.AEROGEAR_NOTIFICATION_GROUP,sc.getDisplayName() + " deployment complete", "deployment", NotificationType.INFORMATION);

this.project = project;
this.deployOutput = obj;


String content = this.createContent();
Expand All @@ -29,7 +31,7 @@ public ServiceDeployedNotification(Project project, ServiceClass sc) {

private String createContent() {
String sdkConfigPath = Objects.requireNonNull(AeroGearMobileConfiguration.getInstance(this.project)).getConfigPath();
StringBuilder content = new StringBuilder(); // TODO ADD template files if notification is redundant
StringBuilder content = new StringBuilder(); // TODO issues/19
if (sdkConfigPath == null || sdkConfigPath.isEmpty()) {
content.append("<p>SDK config settings are not set.</p>");
content.append("<p>If you haven't already, <a href=\"create-config\">add sdk config file</a></p>");
Expand Down Expand Up @@ -64,4 +66,8 @@ private NotificationListener getNotificationListener() {
}
};
}

public Object getDeployOutput() {
return deployOutput;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.swing.*;

class ViewSDKConfigPanel extends javax.swing.JPanel {
public class ViewSDKConfigPanel extends javax.swing.JPanel {

public ViewSDKConfigPanel() {
initComponents();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void onError(Exception e) {

@Override
public void onSuccess(Object obj) {
notifier.notify(new ServiceDeployedNotification(project, sc));
notifier.notify(new ServiceDeployedNotification(project, sc, obj));
}
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* To edit this file, open the ServicePanel.form file in the NetBeans GUI Builder.
* To view the generated source code, choose Source within the Netbeans GUI Builder.
*/
class ServicePanel extends javax.swing.JPanel {
public class ServicePanel extends javax.swing.JPanel {

/**
* Creates new form ServicePanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* To edit this file, open the ServicePanel.form file in the NetBeans GUI Builder.
* To view the generated source code, choose Source within the Netbeans GUI Builder.
*/
class IdentityConfigurationPanel extends javax.swing.JPanel {
public class IdentityConfigurationPanel extends javax.swing.JPanel {

/**
* Creates new form KeycloakConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.intellij.openapi.ui.TextFieldWithBrowseButton;


class SettingsPanel extends javax.swing.JPanel {
public class SettingsPanel extends javax.swing.JPanel {

public SettingsPanel() {
initComponents();
Expand Down

0 comments on commit 66115fa

Please sign in to comment.