/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/**
*
* @author Jan S Berg
*/
public class OpenGrokTrayApp {
private boolean agentConnected = false;
/**
* @param args the command line arguments
*/
@SuppressWarnings("PMD.SystemPrintln")
try {
} else {
}
}
}
} catch (IOException ex) {
}
}
loadImages();
if (tryAgentConnect()) {
} else {
}
}
public void actionPerformed(ActionEvent e) {
trayIcon.displayMessage("OpenGrok Indexer", "Files have been deleted/added", TrayIcon.MessageType.INFO);
}
};
return actionListener;
}
public void actionPerformed(ActionEvent e) {
agent.unregister();
}
}
};
return exitListener;
}
public void actionPerformed(ActionEvent e) {
try {
sf.setVisible(true);
} catch (IOException ex) {
}
}
};
return configListener;
}
public void mouseClicked(MouseEvent e) {
}
public void mouseEntered(MouseEvent e) {
}
public void mouseExited(MouseEvent e) {
}
public void mousePressed(MouseEvent e) {
}
public void mouseReleased(MouseEvent e) {
}
};
return mouseListener;
}
}
}
} else {
}
}
}
}
}
}
};
return notificationWindowListener;
}
public void actionPerformed(ActionEvent e) {
sf.setVisible(true);
}
};
return settingsListener;
}
}
}
if (!agentConnected) {
}
if (agentConnected) {
} else {
}
}
}
}
}
}
};
return settingsWindowListener;
}
private ActionListener getShowNotificationListener(final WindowListener notificationWindowListener) {
public void actionPerformed(ActionEvent e) {
long starttime = 0;
long endtime = 0;
}
sf.setVisible(true);
}
};
return showNotificationsListener;
}
private void loadImages() {
}
private boolean tryAgentConnect() {
boolean retval = false;
try {
}
retval = true;
agentConnected = true;
}
return retval;
}
private void enableSystemTray() {
if (SystemTray.isSupported()) {
final ActionListener showNotificationsListener = getShowNotificationListener(notificationWindowListener);
} else {
}
trayIcon.setImageAutoSize(true);
try {
} catch (AWTException e) {
}
} else {
// System Tray is not supported
}
}
}