/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public synchronized void init() {
gb = new GridBagLayout();
GridBagConstraints c = new GridBagConstraints();
c.weightx = 1.0;
c.gridwidth = 1;
serialversion_t.setEditable(false);
/* Give the focus to the type-in area */
}
public void start() {
/* Give the focus to the type-in area */
}
return true;
return true;
}
return false;
}
return rc;
}
/**
* Lookup the specified classname and display it.
*/
try {
return;
}
if (s != null) {
} else {
}
} catch (ClassNotFoundException cnf) {
}
}
/*
* A class loader that will load from the CLASSPATH environment
* variable set by the user.
*/
/*
* Create a URL class loader that will load classes from the
* specified classpath.
*/
throws MalformedURLException, IOException {
for (int i = 0; i < count; i++) {
}
}
/*
* From the classname find the serialVersionUID string formatted
* for to be copied to a java class.
*/
boolean classFound = false;
// If using old style of qualifyling inner classes with '$'s.
} else {
/* Try to resolve the fully qualified name and if that fails, start
* replacing the '.'s with '$'s starting from the last '.', until
* the class is resolved.
*/
try {
classFound = true;
} catch (ClassNotFoundException e) {
/* Class not found so far */
}
if (!classFound) {
int i;
try {
classFound = true;
} catch (ClassNotFoundException e) {
/* Continue searching */
}
}
}
if (!classFound) {
throw new ClassNotFoundException();
}
}
return ret;
}
return " static final long serialVersionUID = " +
} else {
return null;
}
}
boolean show = false;
int i = 0;
usage();
}
show = true;
usage();
}
i++;
usage();
} else {
break; // drop into processing class names
}
}
/*
* Get user's CLASSPATH environment variable, if the -classpath option
* is not defined, and make a loader that can read from that path.
*/
/*
* If environment variable not set, add current directory to path.
*/
envcp = ".";
}
}
try {
} catch (MalformedURLException mue) {
} catch (IOException ioe) {
}
if (!show) {
/*
* Check if there are any class names specified, if it is not a
* invocation with the -show option.
*/
usage();
}
/*
* The rest of the parameters are classnames.
*/
boolean exitFlag = false;
try {
else {
args[i]));
exitFlag = true;
}
} catch (ClassNotFoundException cnf) {
exitFlag = true;
}
}
if (exitFlag) {
}
} else {
}
Frame f = new SerialVerFrame();
// f.setLayout(new FlowLayout());
f.pack();
f.show();
}
}
/**
* Usage
*/
public static void usage() {
}
}
/**
* Top level frame so serialVer can be run as an main program
* and have an exit menu item.
*/
/*
* Construct a new Frame with title and menu.
*/
SerialVerFrame() {
/* Create the file menu */
/* Now add the file menu to the menu bar */
/* Add the menubar to the frame */
// Bug in JDK1.1 setMenuBar(menu_mb);
}
/*
* Handle a window destroy event by exiting.
*/
exit(0);
}
return super.handleEvent(e);
}
/*
* Handle an Exit event by exiting.
*/
exit(0);
}
return false;
}
/*
* Cleanup and exit.
*/
}
}
/**
* Utility for integrating with serialver and for localization.
* Handle Resources. Access to error and warning counts.
* Message formatting.
*
* @see java.util.ResourceBundle
* @see java.text.MessageFormat
*/
class Res {
/**
* Initialize ResourceBundle
*/
static void initResource() {
try {
} catch (MissingResourceException e) {
throw new Error("Fatal: Resource for serialver is missing");
}
}
/**
* get and format message string from resource
*
* @param key selects message from resource
*/
}
/**
* get and format message string from resource
*
* @param key selects message from resource
* @param a1 first argument
*/
}
/**
* get and format message string from resource
*
* @param key selects message from resource
* @param a1 first argument
* @param a2 second argument
*/
}
/**
* get and format message string from resource
*
* @param key selects message from resource
* @param a1 first argument
* @param a2 second argument
* @param a3 third argument
*/
initResource();
}
try {
} catch (MissingResourceException e) {
throw new Error("Fatal: Resource for serialver is broken. There is no " + key + " key in resource.");
}
}
}