litesoft
Diff Revisions
950
vs
955
for /trunk/Java/GWT/Dev/src/org/litesoft/GWT/client/dev/ui/testplan/TestPlanActionScreenView.java
|
@@ -5,41 +5,34 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.*; |
7 |
7 |
|
|
8 |
|
- |
public class TestPlanActionScreenView implements TestPlanAction |
9 |
|
- |
{ |
|
8 |
+ |
public class TestPlanActionScreenView implements TestPlanAction { |
10 |
9 |
|
private static final long serialVersionUID = 1L; |
11 |
10 |
|
|
12 |
11 |
|
private /* final */ String mURL; |
13 |
12 |
|
|
14 |
13 |
|
@SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */ |
15 |
|
- |
protected TestPlanActionScreenView() |
16 |
|
- |
{ |
|
14 |
+ |
protected TestPlanActionScreenView() { |
17 |
15 |
|
} |
18 |
16 |
|
|
19 |
|
- |
public TestPlanActionScreenView( String pURL ) |
20 |
|
- |
{ |
|
17 |
+ |
public TestPlanActionScreenView( String pURL ) { |
21 |
18 |
|
mURL = pURL; |
22 |
19 |
|
} |
23 |
20 |
|
|
24 |
|
- |
public String getURL() |
25 |
|
- |
{ |
|
21 |
+ |
public String getURL() { |
26 |
22 |
|
return mURL; |
27 |
23 |
|
} |
28 |
24 |
|
|
29 |
25 |
|
@Override |
30 |
|
- |
public String toString() |
31 |
|
- |
{ |
|
26 |
+ |
public String toString() { |
32 |
27 |
|
return "ScreenView w/ URL: " + mURL; |
33 |
28 |
|
} |
34 |
29 |
|
|
35 |
|
- |
public boolean execute( Object pClickHandlerSharedObject ) |
36 |
|
- |
{ |
|
30 |
+ |
@Override |
|
31 |
+ |
public boolean execute() { |
37 |
32 |
|
int zFragmentAt = mURL.indexOf( '#' ); |
38 |
|
- |
if ( zFragmentAt != -1 ) |
39 |
|
- |
{ |
|
33 |
+ |
if ( zFragmentAt != -1 ) { |
40 |
34 |
|
String zFragment = mURL.substring( zFragmentAt + 1 ).trim(); |
41 |
|
- |
if ( zFragment.length() != 0 ) |
42 |
|
- |
{ |
|
35 |
+ |
if ( zFragment.length() != 0 ) { |
43 |
36 |
|
History.newItem( zFragment, true ); |
44 |
37 |
|
return true; |
45 |
38 |
|
} |