Permalink
Browse files

[320637] HTTP Server Overview HTTP port: input does not allow ports

over 100
  • Loading branch information...
1 parent 4eded85 commit 9572dc4745affbc4a927af4d604766d89611e926 @elsony elsony committed Aug 21, 2012
View
2 plugins/org.eclipse.wst.server.http.ui/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.wst.server.http.ui;singleton:=true
-Bundle-Version: 1.0.200.qualifier
+Bundle-Version: 1.0.300.qualifier
Bundle-Activator: org.eclipse.wst.server.http.ui.internal.HttpUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
View
8 ...g.eclipse.wst.server.http.ui/src/org/eclipse/wst/server/http/ui/internal/HttpSection.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
+ * Copyright (c) 2007, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -45,6 +45,8 @@
protected Spinner portSpinner;
protected PropertyChangeListener listener;
+ protected static int MAXIMUM_PORT = 999999;
+
public HttpSection() {
super();
}
@@ -117,7 +119,9 @@ public void modifyText(ModifyEvent e) {
portSpinner = new Spinner(composite, SWT.BORDER);
portSpinner.setMinimum(0);
- portSpinner.setMinimum(999999);
+ portSpinner.setMaximum(MAXIMUM_PORT);
+ portSpinner.setTextLimit((Integer.toString(MAXIMUM_PORT)).length());
+
data = new GridData(GridData.FILL_HORIZONTAL);
portSpinner.setLayoutData(data);
portSpinner.addModifyListener(new ModifyListener() {

0 comments on commit 9572dc4

Please sign in to comment.