diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 08:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:28 +0200 |
commit | 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch) | |
tree | 218eba20dd23c6a865cf01aa7532bf1261a69bc8 /scripting | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'scripting')
53 files changed, 109 insertions, 0 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java index 16ba11e8fe93..01eda4dcd276 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java @@ -165,6 +165,7 @@ public class ParcelBrowseNode extends PropertySet return BrowseNodeTypes.CONTAINER; } + @Override public String toString() { return getName(); diff --git a/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java index c83237c5cdfc..2ef57466457e 100644 --- a/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/PkgProviderBrowseNode.java @@ -39,6 +39,7 @@ public class PkgProviderBrowseNode extends ProviderBrowseNode } + @Override public String getName() { String name = "Unknown"; if ( container != null ) diff --git a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java index 7c53fae52bbb..3000ece25e64 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ProviderBrowseNode.java @@ -157,6 +157,7 @@ public class ProviderBrowseNode extends PropertySet return BrowseNodeTypes.CONTAINER; } + @Override public String toString() { return getName(); diff --git a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java index 5b6ef9d1d55e..f59b9594c1a1 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java @@ -137,6 +137,7 @@ public class ScriptBrowseNode extends PropertySet return BrowseNodeTypes.SCRIPT; } + @Override public String toString() { return getName(); } diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java index b02e3624577f..ddd3fa712ebf 100644 --- a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java +++ b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java @@ -70,6 +70,7 @@ public class ScriptEntry implements Cloneable { this("Java", languagename, location); } + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } @@ -113,6 +114,7 @@ public class ScriptEntry implements Cloneable { return description; } + @Override public String toString() { return "\nLogicalName = " + logicalname + "\nLanguageName = " + languagename + "\nLocation = " + location + "\nLanguaguageProperties = " + languagedepprops; } diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java index 48cb3edd25b4..71d0ed285536 100644 --- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java +++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java @@ -90,6 +90,7 @@ public class ScriptMetaData extends ScriptEntry { } } + @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } @@ -230,6 +231,7 @@ public class ScriptMetaData extends ScriptEntry { } + @Override public String toString() { return "\nParcelLocation = " + getParcelLocation() + "\nLocationPlaceHolder = " + locationPlaceHolder + super.toString(); diff --git a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java index fb470a25fe15..34fc62f5bbe0 100644 --- a/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java +++ b/scripting/java/com/sun/star/script/framework/container/UnoPkgContainer.java @@ -178,6 +178,7 @@ public class UnoPkgContainer extends ParcelContainer } + @Override public ScriptMetaData findScript( ParsedScriptUri psu ) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException { diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java index 613b628d8687..2dd7381f2bb7 100644 --- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java +++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java @@ -46,6 +46,7 @@ public class UCBStreamHandler extends URLStreamHandler { this.m_xSimpleFileAccess = xSFA; } + @Override public void parseURL(URL url, String spec, int start, int limit) { LogUtils.DEBUG("**XUCBStreamHandler, parseURL: " + url + " spec: " + spec + " start: " + start + " limit: " + limit ); @@ -60,6 +61,7 @@ public class UCBStreamHandler extends URLStreamHandler { setURL(url, m_ucbscheme, null, -1, null, null, file, null, null); } + @Override public URLConnection openConnection(URL u) throws IOException { return new UCBConnection(u); } @@ -70,9 +72,11 @@ public class UCBStreamHandler extends URLStreamHandler { super(url); } + @Override public void connect() { } + @Override public InputStream getInputStream() throws IOException { LogUtils.DEBUG("UCBConnectionHandler GetInputStream on " + url ); String sUrl = url.toString(); @@ -88,6 +92,7 @@ public class UCBStreamHandler extends URLStreamHandler { return getUCBStream(file, path); } } + @Override public OutputStream getOutputStream() throws IOException { LogUtils.DEBUG("UCBConnectionHandler getOutputStream on " + url ); OutputStream os = null; diff --git a/scripting/java/com/sun/star/script/framework/io/XInputStreamWrapper.java b/scripting/java/com/sun/star/script/framework/io/XInputStreamWrapper.java index a482e0bb138b..a1e27793f4f1 100644 --- a/scripting/java/com/sun/star/script/framework/io/XInputStreamWrapper.java +++ b/scripting/java/com/sun/star/script/framework/io/XInputStreamWrapper.java @@ -27,6 +27,7 @@ public class XInputStreamWrapper extends InputStream { m_xInputStream = xInputStream; } + @Override public int read() throws java.io.IOException { byte[][] byteRet = new byte[1][0]; @@ -45,6 +46,7 @@ public class XInputStreamWrapper extends InputStream { return byteRet[0][0]; } + @Override public int read( byte[] b ) throws java.io.IOException { byte[][] byteRet = new byte[1][]; @@ -59,6 +61,7 @@ public class XInputStreamWrapper extends InputStream { } } + @Override public long skip(long n) throws java.io.IOException { try { @@ -70,6 +73,7 @@ public class XInputStreamWrapper extends InputStream { } } + @Override public int available() throws java.io.IOException { try { @@ -80,6 +84,7 @@ public class XInputStreamWrapper extends InputStream { } } + @Override public void close() throws java.io.IOException { try { diff --git a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java index 17c0869cb5e0..e3c561cff48d 100644 --- a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java +++ b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java @@ -25,6 +25,7 @@ public class XOutputStreamWrapper extends OutputStream { public XOutputStreamWrapper(XOutputStream xOs ) { this.m_xOutputStream = xOs; } + @Override public void write(int b) throws java.io.IOException { @@ -43,6 +44,7 @@ public class XOutputStreamWrapper extends OutputStream { throw new java.io.IOException(ioe.getMessage()); } } + @Override public void write(byte[] b) throws java.io.IOException { @@ -60,6 +62,7 @@ public class XOutputStreamWrapper extends OutputStream { throw new java.io.IOException(ioe.getMessage()); } } + @Override public void write( byte[] b, int off, int len ) throws java.io.IOException { @@ -82,6 +85,7 @@ public class XOutputStreamWrapper extends OutputStream { } } + @Override public void flush() throws java.io.IOException { @@ -98,6 +102,7 @@ public class XOutputStreamWrapper extends OutputStream { throw new java.io.IOException(ioe.getMessage()); } } + @Override public void close() throws java.io.IOException { diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java index 3d886215d807..9fb9f15f12aa 100644 --- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java +++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java @@ -443,6 +443,7 @@ public abstract class ScriptProvider return BrowseNodeTypes.CONTAINER; } + @Override public String toString() { return getName(); diff --git a/scripting/java/com/sun/star/script/framework/provider/SwingInvocation.java b/scripting/java/com/sun/star/script/framework/provider/SwingInvocation.java index fae371605de0..74e95546af35 100644 --- a/scripting/java/com/sun/star/script/framework/provider/SwingInvocation.java +++ b/scripting/java/com/sun/star/script/framework/provider/SwingInvocation.java @@ -27,6 +27,7 @@ import javax.swing.SwingUtilities; public final class SwingInvocation { public static void invoke(final Runnable doRun) { new Thread("SwingInvocation") { + @Override public void run() { SwingUtilities.invokeLater(doRun); } }.start(); } diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java index 78459c2d0409..04ca755a6a72 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java @@ -175,6 +175,7 @@ class GlyphGutter extends JComponent { setSize(d); } + @Override public void paintComponent(Graphics g) { JTextArea textArea = view.getTextArea(); diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java index ff85de923605..fb88968159a8 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java @@ -278,6 +278,7 @@ public class ScriptEditorForBeanShell frame.addWindowListener( new WindowAdapter() { + @Override public void windowClosing(WindowEvent e) { doClose(); } diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java index cf4bcf114cf3..7df4f5cf645e 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java @@ -56,6 +56,7 @@ public class ScriptProviderForBeanShell super (ctx, "BeanShell"); } + @Override public XScript getScript( /*IN*/String scriptURI ) throws com.sun.star.uno.RuntimeException, ScriptFrameworkErrorException @@ -74,11 +75,13 @@ public class ScriptProviderForBeanShell } } + @Override public boolean hasScriptEditor() { return true; } + @Override public ScriptEditor getScriptEditor() { return ScriptEditorForBeanShell.getEditor(); diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java index 2f795fba27a6..98f29c08c2b7 100644 --- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java +++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptDescriptor.java @@ -174,6 +174,7 @@ public class ScriptDescriptor * * @return The scriptName including the parameters. */ + @Override public String toString() { StringBuffer description = new StringBuffer( m_name ); diff --git a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java index 07bde156c7b8..0ae4247bb982 100644 --- a/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java +++ b/scripting/java/com/sun/star/script/framework/provider/java/ScriptProviderForJava.java @@ -52,6 +52,7 @@ public class ScriptProviderForJava super (ctx, "Java"); } + @Override public XScript getScript( /*IN*/String scriptURI ) throws com.sun.star.uno.RuntimeException, ScriptFrameworkErrorException @@ -77,11 +78,13 @@ public class ScriptProviderForJava } + @Override public boolean hasScriptEditor() { return false; } + @Override public ScriptEditor getScriptEditor() { return null; diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java index 0bd3a25192e2..28c6a4f6e4f3 100644 --- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java +++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptEditorForJavaScript.java @@ -266,11 +266,13 @@ public class ScriptEditorForJavaScript implements ScriptEditor }); Context.addContextListener(sdb); sdb.setScopeProvider(new ScopeProvider() { + @Override public Scriptable getScope() { return org.mozilla.javascript.tools.shell.Main.getScope(); } }); sdb.addWindowListener( new WindowAdapter() { + @Override public void windowClosing(WindowEvent e) { shutdown(); } diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java index 25b0da6fd550..b8625a6bc804 100644 --- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java +++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java @@ -57,6 +57,7 @@ public class ScriptProviderForJavaScript super(ctx, "JavaScript"); } + @Override public XScript getScript( /*IN*/String scriptURI ) throws com.sun.star.uno.RuntimeException, ScriptFrameworkErrorException @@ -75,11 +76,13 @@ public class ScriptProviderForJavaScript } } + @Override public boolean hasScriptEditor() { return true; } + @Override public ScriptEditor getScriptEditor() { return ScriptEditorForJavaScript.getEditor(); diff --git a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java b/scripting/java/org/openoffice/idesupport/OfficeInstallation.java index 11d15fb99813..abc08bf185ed 100644 --- a/scripting/java/org/openoffice/idesupport/OfficeInstallation.java +++ b/scripting/java/org/openoffice/idesupport/OfficeInstallation.java @@ -94,6 +94,7 @@ public class OfficeInstallation implements java.io.Serializable { return true; } + @Override public String toString() { return getName(); } diff --git a/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java b/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java index e8e7a87696fe..a27400342d6b 100644 --- a/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java +++ b/scripting/java/org/openoffice/idesupport/filter/AllFilesFilter.java @@ -32,6 +32,7 @@ public class AllFilesFilter implements FileFilter { return true; } + @Override public String toString() { return "<all files>"; } diff --git a/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java b/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java index abecd9e8e389..9f4610bb252d 100644 --- a/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java +++ b/scripting/java/org/openoffice/idesupport/filter/BinaryOnlyFilter.java @@ -36,6 +36,7 @@ public class BinaryOnlyFilter implements FileFilter { return false; } + @Override public String toString() { /* StringBuffer buf = new StringBuffer(DESCRIPTION + ": "); diff --git a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java b/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java index 9110562a6342..36bee314c47d 100644 --- a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java +++ b/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java @@ -40,6 +40,7 @@ public class ExceptParcelFilter implements FileFilter { return false; } + @Override public String toString() { StringBuffer buf = new StringBuffer(DESCRIPTION + ": "); diff --git a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java index a8d0b973131b..5f598d500046 100644 --- a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java +++ b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java @@ -61,6 +61,7 @@ public final class LocalOfficeImpl * to the office distribution. * @param port is a communication port. */ + @Override protected void connect(String officePath, int port) throws ConnectException { @@ -76,6 +77,7 @@ public final class LocalOfficeImpl * * @param uri is an identifier of storage has to be refreshed. */ + @Override public void refreshStorage(String uri) { try { @@ -95,6 +97,7 @@ System.out.println("*** LocalOfficeImpl.refreshStorage: DONE"); /** * Closes the connection to the running office. */ + @Override public void disconnect() { /* diff --git a/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java b/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java index ffa1b61041ae..15f472188b80 100644 --- a/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java +++ b/scripting/java/org/openoffice/idesupport/ui/ScriptPanel.java @@ -89,6 +89,7 @@ public class ScriptPanel extends JPanel { column.setCellEditor(new DefaultCellEditor(new JTextField())); table.addFocusListener(new FocusAdapter() { + @Override public void focusLost(FocusEvent evt) { tableFocusLost(); } @@ -138,6 +139,7 @@ public class ScriptPanel extends JPanel { return scripts.size(); } + @Override public String getColumnName(int col) { return columnNames[col]; } @@ -178,6 +180,7 @@ public class ScriptPanel extends JPanel { return result; } + @Override public boolean isCellEditable(int row, int col) { if (col == 0) return false; @@ -185,6 +188,7 @@ public class ScriptPanel extends JPanel { return true; } + @Override public void setValueAt(Object value, int row, int col) { ScriptEntry entry = scripts.get(row); entry.setLogicalName((String)value); diff --git a/scripting/workben/ifc/scripting/SecurityDialogUtil.java b/scripting/workben/ifc/scripting/SecurityDialogUtil.java index d0858dfc4c72..8c95fc165ac0 100644 --- a/scripting/workben/ifc/scripting/SecurityDialogUtil.java +++ b/scripting/workben/ifc/scripting/SecurityDialogUtil.java @@ -73,6 +73,7 @@ public boolean hasErrorMessage() /** * Press the named button in the currently visible dialog box. */ +@Override public void run() { // wait for the message box to appear diff --git a/scripting/workben/ifc/scripting/_XFunction.java b/scripting/workben/ifc/scripting/_XFunction.java index eb0d9c96a949..e4c04b257c0d 100644 --- a/scripting/workben/ifc/scripting/_XFunction.java +++ b/scripting/workben/ifc/scripting/_XFunction.java @@ -36,6 +36,7 @@ public class _XFunction extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { log.println("getting provider"); oProvider = (XFunctionProvider) tEnv.getObjRelation("provider"); diff --git a/scripting/workben/ifc/scripting/_XFunctionProvider.java b/scripting/workben/ifc/scripting/_XFunctionProvider.java index 2f1d3e2e2df4..143e33febbd7 100644 --- a/scripting/workben/ifc/scripting/_XFunctionProvider.java +++ b/scripting/workben/ifc/scripting/_XFunctionProvider.java @@ -35,6 +35,7 @@ public class _XFunctionProvider extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptInfo.java b/scripting/workben/ifc/scripting/_XScriptInfo.java index ed08e44a3655..cd78ad7b1817 100644 --- a/scripting/workben/ifc/scripting/_XScriptInfo.java +++ b/scripting/workben/ifc/scripting/_XScriptInfo.java @@ -36,6 +36,7 @@ public class _XScriptInfo extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptInfoAccess.java b/scripting/workben/ifc/scripting/_XScriptInfoAccess.java index 9cc0a3429fe2..b6107d3da7ef 100644 --- a/scripting/workben/ifc/scripting/_XScriptInfoAccess.java +++ b/scripting/workben/ifc/scripting/_XScriptInfoAccess.java @@ -36,6 +36,7 @@ public class _XScriptInfoAccess extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptInvocation.java b/scripting/workben/ifc/scripting/_XScriptInvocation.java index 7aa4a56054ea..ba96ccc55f78 100644 --- a/scripting/workben/ifc/scripting/_XScriptInvocation.java +++ b/scripting/workben/ifc/scripting/_XScriptInvocation.java @@ -45,9 +45,11 @@ public class _XScriptInvocation extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } + @Override public void after() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptNameResolver.java b/scripting/workben/ifc/scripting/_XScriptNameResolver.java index 307ba73f584e..f62c0baf24d8 100644 --- a/scripting/workben/ifc/scripting/_XScriptNameResolver.java +++ b/scripting/workben/ifc/scripting/_XScriptNameResolver.java @@ -44,6 +44,7 @@ public class _XScriptNameResolver extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptSecurity.java b/scripting/workben/ifc/scripting/_XScriptSecurity.java index 2c72f0c742bf..bbaf7dd02ea0 100644 --- a/scripting/workben/ifc/scripting/_XScriptSecurity.java +++ b/scripting/workben/ifc/scripting/_XScriptSecurity.java @@ -45,9 +45,11 @@ public class _XScriptSecurity extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } + @Override public void after() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptStorageManager.java b/scripting/workben/ifc/scripting/_XScriptStorageManager.java index 4a18fd80a867..f8eab044c772 100644 --- a/scripting/workben/ifc/scripting/_XScriptStorageManager.java +++ b/scripting/workben/ifc/scripting/_XScriptStorageManager.java @@ -38,6 +38,7 @@ public class _XScriptStorageManager extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java b/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java index 0f6eb8eddb02..bae6a3e5a20d 100644 --- a/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java +++ b/scripting/workben/ifc/scripting/_XScriptStorageRefresh.java @@ -34,6 +34,7 @@ public class _XScriptStorageRefresh extends MultiMethodTest { /** * Retrieves object relation. */ + @Override public void before() throws StatusException { } diff --git a/scripting/workben/installer/Banner.java b/scripting/workben/installer/Banner.java index fd7bb0847f6b..aea91a2caebd 100644 --- a/scripting/workben/installer/Banner.java +++ b/scripting/workben/installer/Banner.java @@ -29,17 +29,20 @@ public class Banner extends Canvas img = Toolkit.getDefaultToolkit().createImage("sidebar.jpg"); } + @Override public void paint(Graphics g) { g.drawImage(img, 0, 0, Color.white, null); g.dispose(); } + @Override public void update(Graphics g) { super.update(g); } + @Override public Dimension getPreferredSize() { return new Dimension(137, 358); diff --git a/scripting/workben/installer/Final.java b/scripting/workben/installer/Final.java index 9fcf6b96cf3e..640bd93d0054 100644 --- a/scripting/workben/installer/Final.java +++ b/scripting/workben/installer/Final.java @@ -61,6 +61,7 @@ public class Final extends javax.swing.JPanel implements ActionListener, Install }//GEN-END:initComponents + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT); } diff --git a/scripting/workben/installer/IdeFinal.java b/scripting/workben/installer/IdeFinal.java index e1969bc54f1d..33612f1907ef 100644 --- a/scripting/workben/installer/IdeFinal.java +++ b/scripting/workben/installer/IdeFinal.java @@ -58,6 +58,7 @@ public class IdeFinal extends javax.swing.JPanel implements ActionListener, Inst add(nav, java.awt.BorderLayout.SOUTH); }//GEN-END:initComponents + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT); } diff --git a/scripting/workben/installer/IdeUpdater.java b/scripting/workben/installer/IdeUpdater.java index 1de610656121..3efe04e1f282 100644 --- a/scripting/workben/installer/IdeUpdater.java +++ b/scripting/workben/installer/IdeUpdater.java @@ -110,6 +110,7 @@ public class IdeUpdater extends Thread { }// setStop + @Override public void run() { internalThread = Thread.currentThread(); diff --git a/scripting/workben/installer/IdeVersion.java b/scripting/workben/installer/IdeVersion.java index 1b9cf5142f33..bd6fc1012c59 100644 --- a/scripting/workben/installer/IdeVersion.java +++ b/scripting/workben/installer/IdeVersion.java @@ -82,6 +82,7 @@ public class IdeVersion extends javax.swing.JPanel implements ActionListener, Ta tableModel.addTableModelListener(this); JTable tableVersions = new JTable(tableModel) { + @Override public String getToolTipText(MouseEvent event) { int col = columnAtPoint( event.getPoint() ); @@ -100,6 +101,7 @@ public class IdeVersion extends javax.swing.JPanel implements ActionListener, Ta return o.toString(); } + @Override public Point getToolTipLocation(MouseEvent event) { int col = columnAtPoint( event.getPoint() ); @@ -145,6 +147,7 @@ public class IdeVersion extends javax.swing.JPanel implements ActionListener, Ta }// initComponents + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(320, 280); } @@ -278,6 +281,7 @@ class MyTableModelIDE extends AbstractTableModel { return data.size(); } + @Override public String getColumnName(int col) { return colNames[col]; } @@ -291,10 +295,12 @@ class MyTableModelIDE extends AbstractTableModel { return aRow.get(col); } + @Override public Class getColumnClass(int c) { return getValueAt(0, c).getClass(); } + @Override public boolean isCellEditable(int row, int col) { if (col == 0) { return true; @@ -303,6 +309,7 @@ class MyTableModelIDE extends AbstractTableModel { } } + @Override public void setValueAt(Object value, int row, int col) { ArrayList<Object> aRow = data.get(row); aRow.set(col, value); diff --git a/scripting/workben/installer/IdeWelcome.java b/scripting/workben/installer/IdeWelcome.java index 014daf54f75b..a0d3a5145ee0 100644 --- a/scripting/workben/installer/IdeWelcome.java +++ b/scripting/workben/installer/IdeWelcome.java @@ -57,6 +57,7 @@ public class IdeWelcome extends javax.swing.JPanel implements ActionListener { }//GEN-END:initComponents + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT); } diff --git a/scripting/workben/installer/InstallWizard.java b/scripting/workben/installer/InstallWizard.java index 3d4e92064722..c9d73ba7c126 100644 --- a/scripting/workben/installer/InstallWizard.java +++ b/scripting/workben/installer/InstallWizard.java @@ -111,6 +111,7 @@ public class InstallWizard extends javax.swing.JFrame implements ActionListener screens = new javax.swing.JPanel(); addWindowListener(new java.awt.event.WindowAdapter() { + @Override public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(); } diff --git a/scripting/workben/installer/LogStream.java b/scripting/workben/installer/LogStream.java index e8cb77031a23..3fde653709f3 100644 --- a/scripting/workben/installer/LogStream.java +++ b/scripting/workben/installer/LogStream.java @@ -38,6 +38,7 @@ public class LogStream extends PrintStream { super( new FileOutputStream( logFileName ) ); } + @Override public void println(String x) { super.println( getTimeStamp() + x ); diff --git a/scripting/workben/installer/Version.java b/scripting/workben/installer/Version.java index 8ff366dc00bc..a7982636575a 100644 --- a/scripting/workben/installer/Version.java +++ b/scripting/workben/installer/Version.java @@ -79,6 +79,7 @@ public class Version extends javax.swing.JPanel implements ActionListener, Table tableModel.addTableModelListener(this); JTable tableVersions = new JTable(tableModel) { + @Override public String getToolTipText(MouseEvent event) { int col = columnAtPoint( event.getPoint() ); @@ -97,6 +98,7 @@ public class Version extends javax.swing.JPanel implements ActionListener, Table return o.toString(); } + @Override public Point getToolTipLocation(MouseEvent event) { int col = columnAtPoint( event.getPoint() ); @@ -202,6 +204,7 @@ public class Version extends javax.swing.JPanel implements ActionListener, Table } } + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(320, 280); } @@ -290,6 +293,7 @@ class MyTableModel extends AbstractTableModel { return data.size(); } + @Override public String getColumnName(int col) { return colNames[col]; } @@ -303,10 +307,12 @@ class MyTableModel extends AbstractTableModel { return aRow.get(col); } + @Override public Class getColumnClass(int c) { return getValueAt(0, c).getClass(); } + @Override public boolean isCellEditable(int row, int col) { if (col == 0) { return true; @@ -315,6 +321,7 @@ class MyTableModel extends AbstractTableModel { } } + @Override public void setValueAt(Object value, int row, int col) { ArrayList<Object> aRow = data.get(row); aRow.set(col, value); diff --git a/scripting/workben/installer/Welcome.java b/scripting/workben/installer/Welcome.java index c125d7afa6bf..a2c5f0f7ed37 100644 --- a/scripting/workben/installer/Welcome.java +++ b/scripting/workben/installer/Welcome.java @@ -62,6 +62,7 @@ public class Welcome extends javax.swing.JPanel implements ActionListener { } + @Override public java.awt.Dimension getPreferredSize() { return new java.awt.Dimension(InstallWizard.DEFWIDTH, InstallWizard.DEFHEIGHT); } diff --git a/scripting/workben/installer/XmlUpdater.java b/scripting/workben/installer/XmlUpdater.java index 5b0d14d3fc2f..8c5763a3b05f 100644 --- a/scripting/workben/installer/XmlUpdater.java +++ b/scripting/workben/installer/XmlUpdater.java @@ -149,6 +149,7 @@ public class XmlUpdater extends Thread { }// setStop + @Override public void run() { internalThread = Thread.currentThread(); diff --git a/scripting/workben/mod/_scripting/Dispatch.java b/scripting/workben/mod/_scripting/Dispatch.java index 2985e3e0c3ff..00b4ee5900bf 100644 --- a/scripting/workben/mod/_scripting/Dispatch.java +++ b/scripting/workben/mod/_scripting/Dispatch.java @@ -42,9 +42,11 @@ import com.sun.star.util.XURLTransformer; public class Dispatch extends TestCase { private String scriptURL = "script://HighlightText.showForm"; + @Override public void initialize( TestParameters tParam, PrintWriter log ) { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { log.println("creating test environment"); @@ -84,6 +86,7 @@ public class Dispatch extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/Function.java b/scripting/workben/mod/_scripting/Function.java index 5b1d857c6fe0..97c90771a25e 100644 --- a/scripting/workben/mod/_scripting/Function.java +++ b/scripting/workben/mod/_scripting/Function.java @@ -37,9 +37,11 @@ public class Function extends TestCase { private String script = "script://returns-Integer"; private String doc = "doc_with_beanshell_scripts.sxw"; + @Override public void initialize( TestParameters tParam, PrintWriter log ) { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { XInterface oObj = null; @@ -72,6 +74,7 @@ public class Function extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/FunctionProvider.java b/scripting/workben/mod/_scripting/FunctionProvider.java index a5ae0ef3c6a5..beb5d6c9f714 100644 --- a/scripting/workben/mod/_scripting/FunctionProvider.java +++ b/scripting/workben/mod/_scripting/FunctionProvider.java @@ -33,9 +33,11 @@ import com.sun.star.frame.XDesktop; public class FunctionProvider extends TestCase { String docPath = null; + @Override public void initialize( TestParameters tParam, PrintWriter log ) { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { XInterface oObj = null; @@ -63,6 +65,7 @@ public class FunctionProvider extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/ScriptInfo.java b/scripting/workben/mod/_scripting/ScriptInfo.java index 344e990ae65f..4dce6625054f 100644 --- a/scripting/workben/mod/_scripting/ScriptInfo.java +++ b/scripting/workben/mod/_scripting/ScriptInfo.java @@ -35,6 +35,7 @@ import drafts.com.sun.star.script.framework.storage.XScriptInfo; public class ScriptInfo extends TestCase { String docPath = null; + @Override public void initialize( TestParameters tParam, PrintWriter log ) { // Get path to test documents String rootDocPath = ( String )tParam.get( "DOCPTH" ); @@ -55,6 +56,7 @@ public class ScriptInfo extends TestCase { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { @@ -89,6 +91,7 @@ public class ScriptInfo extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java b/scripting/workben/mod/_scripting/ScriptRuntimeManager.java index 66fb906e2c52..79f84ac109ec 100644 --- a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java +++ b/scripting/workben/mod/_scripting/ScriptRuntimeManager.java @@ -27,9 +27,11 @@ import lib.TestParameters; public class ScriptRuntimeManager extends TestCase { + @Override public void initialize( TestParameters tParam, PrintWriter log ) { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters Param, PrintWriter log ) throws StatusException { @@ -50,6 +52,7 @@ public class ScriptRuntimeManager extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/ScriptStorage.java b/scripting/workben/mod/_scripting/ScriptStorage.java index 3666a187992a..3ecb91e508aa 100644 --- a/scripting/workben/mod/_scripting/ScriptStorage.java +++ b/scripting/workben/mod/_scripting/ScriptStorage.java @@ -32,6 +32,7 @@ import com.sun.star.uno.UnoRuntime; public class ScriptStorage extends TestCase { String docPath = null; + @Override public void initialize( TestParameters tParam, PrintWriter log ) { // Get path to test documents String rootDocPath = ( String )tParam.get( "DOCPTH" ); @@ -52,6 +53,7 @@ public class ScriptStorage extends TestCase { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters tParam, PrintWriter log ) throws StatusException { @@ -84,6 +86,7 @@ public class ScriptStorage extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } diff --git a/scripting/workben/mod/_scripting/ScriptStorageManager.java b/scripting/workben/mod/_scripting/ScriptStorageManager.java index 596fe4133b52..64d993edfdc4 100644 --- a/scripting/workben/mod/_scripting/ScriptStorageManager.java +++ b/scripting/workben/mod/_scripting/ScriptStorageManager.java @@ -31,9 +31,11 @@ import lib.TestParameters; public class ScriptStorageManager extends TestCase { + @Override public void initialize( TestParameters tParam, PrintWriter log ) { } + @Override public synchronized TestEnvironment createTestEnvironment( TestParameters Param, PrintWriter log ) throws StatusException { @@ -63,6 +65,7 @@ public class ScriptStorageManager extends TestCase { return tEnv ; } + @Override public synchronized void disposeTestEnvironment( TestEnvironment tEnv, TestParameters tParam) { } |