Skip to content

Commit

Permalink
Format files related to issue locationtech#563
Browse files Browse the repository at this point in the history
  • Loading branch information
sschulz92 committed Oct 14, 2021
1 parent 5166e21 commit 542dbda
Show file tree
Hide file tree
Showing 6 changed files with 343 additions and 279 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* uDig - User Friendly Desktop Internet GIS client
* http://udig.refractions.net
* (C) 2004, Refractions Research Inc.
/**
* uDig - User Friendly Desktop Internet GIS client
* http://udig.refractions.net
* (C) 2004, Refractions Research Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand All @@ -16,6 +16,7 @@

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;

/**
* A registry for common images which may be useful to other plug-ins.
* <p>
Expand All @@ -25,10 +26,12 @@
* </p>
* To use one of these images:
*
* <pre><code>
* <pre>
* <code>
* ImageRegistry images = CatalogUIPlugin.getDefault().getImageRegistry();
* ImageDescriptor image = images.getDescriptor(ISharedImages.IMG_DATASTORE_OBJ);
* </code></pre>
* </code>
* </pre>
*
* <p>
* This interface is not intended to be implemented by clients.
Expand All @@ -54,30 +57,37 @@ public interface ISharedImages {
* Generic catalog glyph
*/
public static final String CATALOG_OBJ = OBJECT + "repository_obj.gif"; //$NON-NLS-1$

/**
* Shared Image representing a database.
*/
public static final String DATABASE_OBJ = OBJECT + "database_obj.gif"; //$NON-NLS-1$

/**
* Shared Image representing a Datastore (generic feature information).
*/
public static final String DATASTORE_OBJ = OBJECT + "datastore_obj.gif"; //$NON-NLS-1$

/**
* Represent a data source with an erro condition.
*/
public static final String ERROR_OVR = OVERLAY + "error_ovr.gif"; //$NON-NLS-1$

/**
* Graphic representing a SimpleFeature File
*/
public static final String FEATURE_FILE_OBJ = OBJECT + "feature_file_obj.gif"; //$NON-NLS-1$

/**
* Graphic representing a SimpleFeature (default for an indivudal IGeoResource)
* Graphic representing a SimpleFeature (default for an individual IGeoResource)
*/
public static final String FEATURE_OBJ = OBJECT + "feature_obj.gif"; //$NON-NLS-1$

/**
* Generic storage glyph.
*/
public static final String FILE_OBJ = OBJECT + "file_obj.gif"; //$NON-NLS-1$

/**
* Shared Image representing a Grid Coverage Exchange (generic raster information).
*/
Expand All @@ -89,60 +99,69 @@ public interface ISharedImages {
public static final String GRID_FILE_OBJ = OBJECT + "grid_file_obj.gif"; //$NON-NLS-1$

/**
* Graphic representing a Grid (default for an indivudal IGeoResource)
* Graphic representing a Grid (default for an individual IGeoResource)
*/
public static final String GRID_OBJ = OBJECT + "grid_obj.gif"; //$NON-NLS-1$

public static final String GRID_MISSING = OBJECT + "grid_missing_obj.gif"; //$NON-NLS-1$

/**
* Graphic representing a Grid (default for an indivudal IGeoResource)
* Graphic representing a Grid (default for an individual IGeoResource)
*/
public static final String PIXEL_OBJ = OBJECT + "pixel_obj.gif"; //$NON-NLS-1$

/**
* Generic storage glyph.
*/
public static final String MEMORY_OBJ = OBJECT + "memory_obj.gif"; //$NON-NLS-1$

/**
* Palette of map graphics (synthetic content)
*/
public static final String PALETTE_OBJ = OBJECT + "palette_obj.gif"; //$NON-NLS-1$

/**
* Graphic representing a Grid (default for an indivudal IGeoResource)
* Graphic representing a Grid (default for an individual IGeoResource)
*/
public static final String RESOURCE_OBJ = OBJECT + "resource_obj.gif"; //$NON-NLS-1$

/**
* Generic external provider of information.
*/
public static final String SERVER_OBJ = OBJECT + "server_obj.gif"; //$NON-NLS-1$

/**
* Represent a data source waiting for status information.
*/
public static final String WAIT_OVR = OVERLAY + "wait_ovr.gif"; //$NON-NLS-1$

/**
* Represents a data source with a warning codition.
* Represents a data source with a warning condition.
* <p>
* A warning means that the system is making an assumption. The user should be able to edit the
* data source and fix the problem.
* </p>
* <p>
* The context menu could provide a list of suggested fixes, or if there is only one it should
* probably just do it. An example of this would be getting back a redirect for WFS url. The fix
* would be to remember the redirect (rather than the origional). This is the kind of thing that
* probably just do it. An example of this would be getting back a redirect for WFS URL. The fix
* would be to remember the redirect (rather than the original). This is the kind of thing that
* should just happen.
* </p>
*/
public static final String WARNING_OVR = OVERLAY + "warning_ovr.gif"; //$NON-NLS-1$

/**
* Web SimpleFeature Server is a standards based external source of feature information.
*/
public static final String WFS_OBJ = OBJECT + "wfs_obj.gif"; //$NON-NLS-1$

/**
* Web Map Server is a standards based external source of raster information.
*/
public static final String WMS_OBJ = OBJECT + "wms_obj.gif"; //$NON-NLS-1$

/**
* Wen Registry Service registry (a OWS Catalog)
* Web Registry Service registry (a OWS Catalog)
*/
public static final String WRS_OBJ = OBJECT + "wrs_obj.gif"; //$NON-NLS-1$

Expand All @@ -152,13 +171,13 @@ public interface ISharedImages {
* @param id Constant from ISharedImages
* @return Shared image for image ID, do plugin will manage disposal.
*/
public Image get( String id );
public Image get(String id);

/**
* Returns the image descriptor for the given image ID. Returns null if there is no such image.
*
* @param id Constant from ISharedImages
* @return ImageDescriptor locating resource associated with id
*/
public ImageDescriptor getImageDescriptor( String id );
public ImageDescriptor getImageDescriptor(String id);
}
Loading

0 comments on commit 542dbda

Please sign in to comment.