summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-06-16 05:59:58 (EDT)
committerCarsten Drossel2008-06-16 05:59:58 (EDT)
commit320e91cfe2ddee0f683f5b99d39f30cca6a08c24 (patch)
treed1cd1f53cc564379cb66671fd2c58a936757cf85
parent9f603b8bf9b512bdc1a5ed3deee0f6f4f64344b7 (diff)
downloadorg.eclipse.riena-320e91cfe2ddee0f683f5b99d39f30cca6a08c24.zip
org.eclipse.riena-320e91cfe2ddee0f683f5b99d39f30cca6a08c24.tar.gz
org.eclipse.riena-320e91cfe2ddee0f683f5b99d39f30cca6a08c24.tar.bz2
fixed copyright headers and comments to comply with Riena standards
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/DisabledMarker.java27
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMarker.java29
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMessageMarker.java37
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IIconizableMarker.java31
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMarkerPropertyChangeEvent.java32
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMessageMarker.java39
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MandatoryMarker.java50
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MessageMarker.java41
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/NegativeMarker.java19
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/OutputMarker.java27
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IIconManager.java20
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IconManagerAccessor.java22
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconManager.java35
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconSize.java49
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconState.java44
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/uiprocess/ProgressVisualizer.java17
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/IPositionable.java22
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/Positionable.java32
-rw-r--r--org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/PositionableComparator.java22
19 files changed, 307 insertions, 288 deletions
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/DisabledMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/DisabledMarker.java
index 04ae17c..167f657 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/DisabledMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/DisabledMarker.java
@@ -1,18 +1,19 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
* Marks an adapter, resp. its associated UI control, as disabled.
- *
- * @author Alexander Ziegler
*/
public class DisabledMarker extends AbstractMarker {
@@ -20,10 +21,10 @@ public class DisabledMarker extends AbstractMarker {
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "DisabledMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("DisabledMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMarker.java
index 6346c3a..56ba6d9 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMarker.java
@@ -1,18 +1,19 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
* Marks an adapter, resp. its associated UI control, as error.
- *
- * @author Ralf Stuckert
*/
public class ErrorMarker extends AbstractMarker implements IIconizableMarker {
@@ -20,15 +21,15 @@ public class ErrorMarker extends AbstractMarker implements IIconizableMarker {
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "ErrorMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("ErrorMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
/**
- * @see de.compeople.spirit.core.client.uibinding.adapter.marker.IIconizableMarker#getIconConfiguationKey()
+ * @see org.eclipse.riena.ui.core.marker.IIconizableMarker#getIconConfiguationKey()
*/
public String getIconConfiguationKey() {
return "ErrorMarker";
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMessageMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMessageMarker.java
index fcd6ea4..55d7ef7 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMessageMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/ErrorMessageMarker.java
@@ -1,16 +1,17 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
/**
* A Marker working as ErrorMarker and as MessageMarker
- *
- * @author SST
*/
public class ErrorMessageMarker extends ErrorMarker implements IMessageMarker {
@@ -18,10 +19,10 @@ public class ErrorMessageMarker extends ErrorMarker implements IMessageMarker {
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "ErrorMessageMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("ErrorMessageMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
@@ -29,17 +30,19 @@ public class ErrorMessageMarker extends ErrorMarker implements IMessageMarker {
* @return the Message in this Marker
*/
public String getMessage() {
- return (String) super.getAttribute( MESSAGE );
+ return (String) super.getAttribute(MESSAGE);
}
/**
* Basic constructor for the Message marker
- * @param pMessage - the Message of the Marker
+ *
+ * @param pMessage -
+ * the Message of the Marker
*/
- public ErrorMessageMarker( String pMessage ) {
+ public ErrorMessageMarker(String pMessage) {
super();
assert pMessage != null : "The message of the message marker mus not be null";
- setAttribute( MESSAGE, pMessage );
+ setAttribute(MESSAGE, pMessage);
}
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IIconizableMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IIconizableMarker.java
index b16da0a..f86ecbc 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IIconizableMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IIconizableMarker.java
@@ -1,27 +1,28 @@
-/****************************************************************
- * *
- * Copyright (c) 2004-2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.IMarker;
-
/**
- * A marker that can be visualized by marking the icons of a marked element with a
- * marker icon.
- *
- * @author Carsten Drossel
+ * A marker that can be visualized by marking the icons of a marked element with
+ * a marker icon.
*/
public interface IIconizableMarker extends IMarker {
/**
- * Returns the key to the configuration of the marker icon. What this configuration
- * looks like and where it is located depends on the UI implementation.
- *
+ * Returns the key to the configuration of the marker icon. What this
+ * configuration looks like and where it is located depends on the UI
+ * implementation.
+ *
* @return The key to the configuration of the marker icon.
*/
String getIconConfiguationKey();
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMarkerPropertyChangeEvent.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMarkerPropertyChangeEvent.java
index 96559bf..2192957 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMarkerPropertyChangeEvent.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMarkerPropertyChangeEvent.java
@@ -1,27 +1,29 @@
-/****************************************************************
- * *
- * Copyright (c) 2004-2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
-
/**
* A property change event that was caused by the change of a property holding
* markers.
- * @see de.compeople.spirit.core.client.uibinding.IMarker
- *
- * @author Carsten Drossel
+ *
+ * @see org.eclipse.riena.core.marker.IMarker
*/
public interface IMarkerPropertyChangeEvent {
/**
- * Indicates whether the event was caused by the change of a markers property only.
- *
- * @return true if the only cause of the event is the change of a marker property,
- * false otherwise.
+ * Indicates whether the event was caused by the change of a markers
+ * property only.
+ *
+ * @return true if the only cause of the event is the change of a marker
+ * property, false otherwise.
*/
boolean isAttributeRelated();
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMessageMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMessageMarker.java
index 432ba84..60daa95 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMessageMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/IMessageMarker.java
@@ -1,35 +1,34 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.IMarker;
-
/**
- * This interface identifies all Marker able to work als MessageMarker.
- * Thes interface is necessary since a message marker can be at the same time an error marker,
- * or a mandatory marker.
- * Some implementations of an IMessageMarkerViewer correspond to this
- * interface an check if the classes to be shown implements this interface.
- *
- * @author SST
+ * A marker that supplies a message explaining it. While the marker only effects
+ * the UI widget bound to the Ridget to which it the marker is added the message
+ * can be displayed by some other part of the UI. An example is a descriptive
+ * message about a textfield which is marked as error or as mandatory that is
+ * shown in the statusbar when the textfield is focused.
*/
public interface IMessageMarker extends IMarker {
/**
- * Content of the Message
+ * Name of the marker attribute that holds the message.
*/
String MESSAGE = "message";
-
+
/**
- * @return the Message in this Marker
+ * @return A message explaining the marker.
*/
String getMessage();
-
-
+
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MandatoryMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MandatoryMarker.java
index a2fc6a6..f2afe3c 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MandatoryMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MandatoryMarker.java
@@ -1,18 +1,19 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
* Marks an adapter, resp. its associated UI control, as mandatory.
- *
- * @author Ralf Stuckert
*/
public class MandatoryMarker extends AbstractMarker implements IIconizableMarker {
@@ -25,15 +26,15 @@ public class MandatoryMarker extends AbstractMarker implements IIconizableMarker
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "MandatoryMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("MandatoryMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
/**
- * @see de.compeople.spirit.core.client.uibinding.adapter.marker.IIconizableMarker#getIconConfiguationKey()
+ * @see org.eclipse.riena.ui.core.marker.IIconizableMarker#getIconConfiguationKey()
*/
public String getIconConfiguationKey() {
return "MandatoryMarker";
@@ -41,25 +42,26 @@ public class MandatoryMarker extends AbstractMarker implements IIconizableMarker
/**
* Returns the disabled state.
- *
+ *
* @return true, if the marker is disabled, false otherwise.
*/
public boolean isDisabled() {
- Object attributeDisabled = getAttribute( ATTRIBUTE_DISABLED );
- return ( attributeDisabled != null && attributeDisabled.equals( Boolean.TRUE ) );
+ Object attributeDisabled = getAttribute(ATTRIBUTE_DISABLED);
+ return (attributeDisabled != null && attributeDisabled.equals(Boolean.TRUE));
}
/**
* Sets the disabled state.
- *
- * @param disabled The new disabled state: true, to disable the marker; false, to
- * enable it.
+ *
+ * @param disabled
+ * The new disabled state: true, to disable the marker; false, to
+ * enable it.
*/
- public void setDisabled( boolean disabled ) {
- if ( disabled ) {
- setAttribute( ATTRIBUTE_DISABLED, Boolean.TRUE );
+ public void setDisabled(boolean disabled) {
+ if (disabled) {
+ setAttribute(ATTRIBUTE_DISABLED, Boolean.TRUE);
} else {
- setAttribute( ATTRIBUTE_DISABLED, null );
+ setAttribute(ATTRIBUTE_DISABLED, null);
}
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MessageMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MessageMarker.java
index f1c1f52..33379f5 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MessageMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/MessageMarker.java
@@ -1,19 +1,20 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
- * Marks an adapter, with messages.
- * The messages can be viewed by an IMessageMarkerViewer
- *
- * @author SST
+ * Marks an adapter, with messages. The messages can be viewed by an
+ * IMessageMarkerViewer
*/
public class MessageMarker extends AbstractMarker implements IMessageMarker {
@@ -21,10 +22,10 @@ public class MessageMarker extends AbstractMarker implements IMessageMarker {
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "MessageMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("MessageMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
@@ -32,17 +33,19 @@ public class MessageMarker extends AbstractMarker implements IMessageMarker {
* @return the Message in this Marker
*/
public String getMessage() {
- return (String) super.getAttribute( MESSAGE );
+ return (String) super.getAttribute(MESSAGE);
}
/**
* Basic constructor for the Message marker
- * @param pMessage - the Message of the Marker
+ *
+ * @param pMessage -
+ * the Message of the Marker
*/
- public MessageMarker( String pMessage ) {
+ public MessageMarker(String pMessage) {
super();
assert pMessage != null : "The message of the message marker mus not be null";
- setAttribute( MESSAGE, pMessage );
+ setAttribute(MESSAGE, pMessage);
}
} \ No newline at end of file
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/NegativeMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/NegativeMarker.java
index fe3b34b..12e3fe0 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/NegativeMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/NegativeMarker.java
@@ -1,18 +1,19 @@
-/****************************************************************
- * *
- * Copyright (c) 2004-2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
* Marking negative values (e.g. by showing them red).
- *
- * @author Sergey Zeltynsh
*/
public class NegativeMarker extends AbstractMarker {
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/OutputMarker.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/OutputMarker.java
index 53bf255..451a31d 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/OutputMarker.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/marker/OutputMarker.java
@@ -1,18 +1,19 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.marker;
import org.eclipse.riena.core.marker.AbstractMarker;
/**
* Marks an adapter, resp. its associated UI control, as output.
- *
- * @author Alexander Ziegler
*/
public class OutputMarker extends AbstractMarker {
@@ -20,10 +21,10 @@ public class OutputMarker extends AbstractMarker {
* @see Object#toString()
*/
public String toString() {
- StringBuilder buffer = new StringBuilder( "OutputMarker[" );
- buffer.append( "attributes=" );
- buffer.append( getAttributes() );
- buffer.append( "]" );
+ StringBuilder buffer = new StringBuilder("OutputMarker[");
+ buffer.append("attributes=");
+ buffer.append(getAttributes());
+ buffer.append("]");
return buffer.toString();
}
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IIconManager.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IIconManager.java
index 60b56c5..77a9903 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IIconManager.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IIconManager.java
@@ -1,11 +1,13 @@
-/****************************************************************
- * *
- * Copyright (c) 2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.resource;
import org.eclipse.riena.ui.core.resource.internal.IconSize;
@@ -20,8 +22,6 @@ import org.eclipse.riena.ui.core.resource.internal.IconState;
*
* The <code>String</code> ID is used throughout the application rather than
* an icon object for downward compatibility reasons.
- *
- * @author Carsten Drossel
*/
public interface IIconManager {
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IconManagerAccessor.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IconManagerAccessor.java
index 2a0d9fc..d14737a 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IconManagerAccessor.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/IconManagerAccessor.java
@@ -1,24 +1,24 @@
-/****************************************************************
- * *
- * Copyright (c) 2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.resource;
import org.eclipse.riena.ui.core.resource.internal.IconManager;
/**
* Retrieves the implementation of <code>IIconManager</code>.
- *
- * @author Carsten Drossel
*/
public final class IconManagerAccessor {
/** <code>ICON_MANAGER_ID</code> */
- public final static String ICON_MANAGER_ID = "spirit.core.client.IconManager";
+ public final static String ICON_MANAGER_ID = "riena.core.client.IconManager";
private static IIconManager manager;
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconManager.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconManager.java
index a099be1..9d80436 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconManager.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconManager.java
@@ -1,10 +1,13 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.resource.internal;
import java.util.HashMap;
@@ -14,8 +17,6 @@ import org.eclipse.riena.ui.core.resource.IIconManager;
/**
* Maintains the icons used by the application.
- *
- * @author Carsten Drossel
*/
public final class IconManager implements IIconManager {
@@ -31,8 +32,8 @@ public final class IconManager implements IIconManager {
}
/**
- * @see de.compeople.spirit.core.client.uibinding.IIconManager#getIconID(java.lang.String,
- * de.compeople.spirit.core.client.uibinding.IconSize)
+ * @see org.eclipse.riena.ui.core.resource#getIconID(java.lang.String,
+ * org.eclipse.riena.ui.core.resource.internal.IconSize)
*/
public String getIconID(String name, IconSize size) {
@@ -40,9 +41,9 @@ public final class IconManager implements IIconManager {
}
/**
- * @see de.compeople.spirit.core.client.uibinding.IIconManager#getIconID(java.lang.String,
- * de.compeople.spirit.core.client.uibinding.IconSize,
- * de.compeople.spirit.core.client.uibinding.IconState)
+ * @see org.eclipse.riena.ui.core.resource#getIconID(java.lang.String,
+ * org.eclipse.riena.ui.core.resource.internal.IconSize,
+ * org.eclipse.riena.ui.core.resource.internal.IconState)
*/
public String getIconID(String name, IconSize size, IconState state) {
@@ -59,7 +60,7 @@ public final class IconManager implements IIconManager {
}
/**
- * @see de.compeople.spirit.core.client.uibinding.IIconManager#getName(java.lang.String)
+ * @see org.eclipse.riena.ui.core.resource.IIconManager#getName(java.lang.String)
*/
public String getName(String iconID) {
@@ -72,7 +73,7 @@ public final class IconManager implements IIconManager {
}
/**
- * @see de.compeople.spirit.core.client.uibinding.IIconManager#getSize(java.lang.String)
+ * @see org.eclipse.riena.ui.core.resource.IIconManager#getSize(java.lang.String)
*/
public IconSize getSize(String iconID) {
@@ -85,7 +86,7 @@ public final class IconManager implements IIconManager {
}
/**
- * @see de.compeople.spirit.core.client.uibinding.IIconManager#getState(java.lang.String)
+ * @see org.eclipse.riena.ui.core.resource.IIconManager#getState(java.lang.String)
*/
public IconState getState(String iconID) {
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconSize.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconSize.java
index a98e3fe..e0b8e4b 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconSize.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconSize.java
@@ -1,63 +1,62 @@
-/****************************************************************
- * *
- * Copyright (c) 2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.resource.internal;
/**
* Constants for icon sizes.
- *
- * @author Michaela Behling
- * @author Carsten Drossel
*/
public final class IconSize {
/** <code>Size a (16x16 at standard scaling 00) */
- public static final IconSize A = new IconSize( 'a' );
+ public static final IconSize A = new IconSize('a');
/** <code>Size b (22x22 at standard scaling 00) */
- public static final IconSize B = new IconSize( 'b' );
+ public static final IconSize B = new IconSize('b');
/** <code>Size c (32x32 at standard scaling 00) */
- public static final IconSize C = new IconSize( 'c' );
+ public static final IconSize C = new IconSize('c');
/** <code>Size d (48x48 at standard scaling 00) */
- public static final IconSize D = new IconSize( 'd' );
+ public static final IconSize D = new IconSize('d');
/** <code>Size e (64x64 at standard scaling 00) */
- public static final IconSize E = new IconSize( 'e' );
+ public static final IconSize E = new IconSize('e');
/** <code>Size f (128x128 at standard scaling 00) */
- public static final IconSize F = new IconSize( 'f' );
+ public static final IconSize F = new IconSize('f');
/** <code>Size u (14x14 at standard scaling 00) */
- public static final IconSize U = new IconSize( 'u' );
+ public static final IconSize U = new IconSize('u');
/** <code>Size v (22x27 at standard scaling 00) */
- public static final IconSize V = new IconSize( 'v' );
+ public static final IconSize V = new IconSize('v');
/** <code>Size w (18x18 at standard scaling 00) */
- public static final IconSize W = new IconSize( 'w' );
+ public static final IconSize W = new IconSize('w');
/** <code>Size x (13x13 at standard scaling 00) */
- public static final IconSize X = new IconSize( 'x' );
+ public static final IconSize X = new IconSize('x');
/** <code>Size y (12x12 at standard scaling 00) */
- public static final IconSize Y = new IconSize( 'y' );
+ public static final IconSize Y = new IconSize('y');
/** <code>Size z (9x9 at standard scaling 00) */
- public static final IconSize Z = new IconSize( 'z' );
+ public static final IconSize Z = new IconSize('z');
/** <code>Size _ (irregular size) */
- public static final IconSize SPECIAL = new IconSize( '_' );
+ public static final IconSize SPECIAL = new IconSize('_');
private char defaultMapping;
- private IconSize( char defaultMapping ) {
+ private IconSize(char defaultMapping) {
this.defaultMapping = defaultMapping;
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconState.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconState.java
index d1f931e..a2c3eb2 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconState.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/resource/internal/IconState.java
@@ -1,53 +1,53 @@
-/****************************************************************
- * *
- * Copyright (c) 2005 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.resource.internal;
/**
- * Constants for icon states
- *
- * @author Carsten Drossel
+ * Constants for icon states.
*/
public final class IconState {
/** Icon state NORMAL. */
- public static final IconState NORMAL = new IconState( "" );
+ public static final IconState NORMAL = new IconState("");
/** Icon state HOVER. */
- public static final IconState HOVER = new IconState( "_h_" );
+ public static final IconState HOVER = new IconState("_h_");
/** Icon state PRESSED. */
- public static final IconState PRESSED = new IconState( "_p_" );
+ public static final IconState PRESSED = new IconState("_p_");
/** Icon state DISABLED. */
- public static final IconState DISABLED = new IconState( "_d_" );
+ public static final IconState DISABLED = new IconState("_d_");
/** Icon state SELECTED. */
- public static final IconState SELECTED = new IconState( "_a_" );
+ public static final IconState SELECTED = new IconState("_a_");
/** Icon state SELECTED_HOVER. */
- public static final IconState SELECTED_HOVER = new IconState( "_ah_" );
+ public static final IconState SELECTED_HOVER = new IconState("_ah_");
/** Icon state SELECTED_DISABLED. */
- public static final IconState SELECTED_DISABLED = new IconState( "_ad_" );
+ public static final IconState SELECTED_DISABLED = new IconState("_ad_");
/** Icon state DEFAULT. */
- public static final IconState DEFAULT = new IconState( "_s_" );
+ public static final IconState DEFAULT = new IconState("_s_");
/** Icon state HAS_FOCUS. */
- public static final IconState HAS_FOCUS = new IconState( "_f_" );
+ public static final IconState HAS_FOCUS = new IconState("_f_");
/** Icon state HAS_ROLLOVER_FOCUS. */
- public static final IconState HAS_ROLLOVER_FOCUS = new IconState( "_hf_" );
+ public static final IconState HAS_ROLLOVER_FOCUS = new IconState("_hf_");
private String defaultMapping;
- private IconState( String defaultMapping ) {
+ private IconState(String defaultMapping) {
this.defaultMapping = defaultMapping;
}
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/uiprocess/ProgressVisualizer.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/uiprocess/ProgressVisualizer.java
index 9bdc341..a4d1c13 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/uiprocess/ProgressVisualizer.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/uiprocess/ProgressVisualizer.java
@@ -1,10 +1,13 @@
-/****************************************************************
- * *
- * Copyright (c) 2004-2008 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.uiprocess;
import java.util.ArrayList;
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/IPositionable.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/IPositionable.java
index ebd36a9..15d982e 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/IPositionable.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/IPositionable.java
@@ -1,17 +1,17 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.util;
/**
* used to position and arrange ui elements.
- *
- * @author Juergen Becker
*/
public interface IPositionable {
/**
@@ -26,6 +26,6 @@ public interface IPositionable {
*
* @param position
*/
- void setPosition( int position );
+ void setPosition(int position);
} \ No newline at end of file
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/Positionable.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/Positionable.java
index 405b57b..aff256d 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/Positionable.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/Positionable.java
@@ -1,16 +1,17 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.util;
/**
- * a simple menu item.
- *
- * @author Juergen Becker
+ * a simple menu item.
*/
public class Positionable implements IPositionable {
private int position;
@@ -18,22 +19,23 @@ public class Positionable implements IPositionable {
/**
* @param position
*/
- public Positionable(int position ) {
+ public Positionable(int position) {
super();
this.position = position;
}
-
+
/**
- * @see de.compeople.spirit.core.client.util.IPositionable#getPosition()
+ * @see org.eclipse.riena.ui.core.util.IPositionable#getPosition()
*/
public int getPosition() {
return position;
}
/**
- * @param position The position to set.
+ * @param position
+ * The position to set.
*/
- public void setPosition( int position ) {
+ public void setPosition(int position) {
this.position = position;
}
} \ No newline at end of file
diff --git a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/PositionableComparator.java b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/PositionableComparator.java
index 6ea70ee..3e42e08 100644
--- a/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/PositionableComparator.java
+++ b/org.eclipse.riena.ui.core/src/org/eclipse/riena/ui/core/util/PositionableComparator.java
@@ -1,11 +1,13 @@
-/****************************************************************
- * *
- * Copyright (c) 2004 compeople AG *
- * All rights reserved. The use of this program and the *
- * accompanying materials are subject to license terms. *
- * *
- ****************************************************************/
-
+/*******************************************************************************
+ * Copyright (c) 2007, 2008 compeople AG 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * compeople AG - initial API and implementation
+ *******************************************************************************/
package org.eclipse.riena.ui.core.util;
import java.io.Serializable;
@@ -13,15 +15,13 @@ import java.util.Comparator;
/**
* class used to sort the application tabs.
- *
- * @author Juergen Becker
*/
public class PositionableComparator implements Comparator<IPositionable>, Serializable {
/**
* @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
*/
- public int compare( IPositionable o1, IPositionable o2 ) {
+ public int compare(IPositionable o1, IPositionable o2) {
return o1.getPosition() - o2.getPosition();
}
} \ No newline at end of file