Skip to content

Commit 0b409c4

Browse files
committed
Revert "it.albertus -> io.github.albertus82 (...)"
This reverts commit aba8747.
1 parent f68e17f commit 0b409c4

File tree

259 files changed

+665
-665
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+665
-665
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add the following elements to your project's `pom.xml` file (please check [Maven
2626

2727
<dependencies>
2828
<dependency>
29-
<groupId>com.github.albertus82</groupId>
29+
<groupId>it.albertus</groupId>
3030
<artifactId>jface-utils</artifactId>
3131
<version>17.3.3</version>
3232
</dependency>
@@ -81,17 +81,17 @@ This framework will allow you to create a complete preferences dialog by writing
8181

8282
### Getting started
8383

84-
In order to open a preferences dialog, you must instantiate a [`Preferences`](src/main/java/io/github/albertus82/jface/preference/Preferences.java) object and invoke one of its `openDialog` methods (e.g. from a `SelectionListener`). The [`Preferences`](src/main/java/io/github/albertus82/jface/preference/Preferences.java) constructors take three or four arguments:
85-
* [`IPageDefinition[]`](src/main/java/io/github/albertus82/jface/preference/page/IPageDefinition.java): definitions of the pages that will contain the preference items;
86-
* [`IPreference[]`](src/main/java/io/github/albertus82/jface/preference/IPreference.java): the preference items;
87-
* [`IPreferencesCallback`](src/main/java/io/github/albertus82/jface/preference/IPreferencesCallback.java): the object that updates the application properties;
84+
In order to open a preferences dialog, you must instantiate a [`Preferences`](src/main/java/it/albertus/jface/preference/Preferences.java) object and invoke one of its `openDialog` methods (e.g. from a `SelectionListener`). The [`Preferences`](src/main/java/it/albertus/jface/preference/Preferences.java) constructors take three or four arguments:
85+
* [`IPageDefinition[]`](src/main/java/it/albertus/jface/preference/page/IPageDefinition.java): definitions of the pages that will contain the preference items;
86+
* [`IPreference[]`](src/main/java/it/albertus/jface/preference/IPreference.java): the preference items;
87+
* [`IPreferencesCallback`](src/main/java/it/albertus/jface/preference/IPreferencesCallback.java): the object that updates the application properties;
8888
* `Image[]`: icons used for the preference dialogs (optional).
8989

90-
A convenient approach may be to implement [`IPageDefinition`](src/main/java/io/github/albertus82/jface/preference/page/IPageDefinition.java) and [`IPreference`](src/main/java/io/github/albertus82/jface/preference/IPreference.java) interfaces using enums, like in the following code examples.
90+
A convenient approach may be to implement [`IPageDefinition`](src/main/java/it/albertus/jface/preference/page/IPageDefinition.java) and [`IPreference`](src/main/java/it/albertus/jface/preference/IPreference.java) interfaces using enums, like in the following code examples.
9191

9292
#### Page definition enum
9393

94-
This is a very simple example of enum that implements [`IPageDefinition`](src/main/java/io/github/albertus82/jface/preference/page/IPageDefinition.java):
94+
This is a very simple example of enum that implements [`IPageDefinition`](src/main/java/it/albertus/jface/preference/page/IPageDefinition.java):
9595

9696
```java
9797
public enum MyPageDefinition implements IPageDefinition {
@@ -141,11 +141,11 @@ public enum MyPageDefinition implements IPageDefinition {
141141
}
142142
```
143143

144-
You can surely improve this code, for example introducing localization and autodetermining `nodeId` values using the enum names. This example makes use of [`PageDefinitionDetails`](src/main/java/io/github/albertus82/jface/preference/page/PageDefinitionDetails.java) helper class and its builder.
144+
You can surely improve this code, for example introducing localization and autodetermining `nodeId` values using the enum names. This example makes use of [`PageDefinitionDetails`](src/main/java/it/albertus/jface/preference/page/PageDefinitionDetails.java) helper class and its builder.
145145

146146
#### Preference enum
147147

148-
This is a simple example of enum that implements [`IPreference`](src/main/java/io/github/albertus82/jface/preference/IPreference.java):
148+
This is a simple example of enum that implements [`IPreference`](src/main/java/it/albertus/jface/preference/IPreference.java):
149149

150150
```java
151151
public enum MyPreference implements IPreference {
@@ -233,22 +233,22 @@ public enum MyPreference implements IPreference {
233233
}
234234
```
235235

236-
You can surely improve this code, for example introducing localization and autodetermining `name` values using the enum names. This example makes use of [`PreferenceDetails`](src/main/java/io/github/albertus82/jface/preference/PreferenceDetails.java) and [`FieldEditorDetails`](src/main/java/io/github/albertus82/jface/preference/FieldEditorDetails.java) helper classes and their respective builders.
236+
You can surely improve this code, for example introducing localization and autodetermining `name` values using the enum names. This example makes use of [`PreferenceDetails`](src/main/java/it/albertus/jface/preference/PreferenceDetails.java) and [`FieldEditorDetails`](src/main/java/it/albertus/jface/preference/FieldEditorDetails.java) helper classes and their respective builders.
237237

238238
#### Callback object
239239

240-
The interface [`IPreferencesCallback`](src/main/java/io/github/albertus82/jface/preference/IPreferencesCallback.java) declares two methods:
240+
The interface [`IPreferencesCallback`](src/main/java/it/albertus/jface/preference/IPreferencesCallback.java) declares two methods:
241241
* **`getFileName`**: must return the path and name of your configuration file.
242242
* **`reload`**: must **reload the configuration file and update your in-memory configuration properties**, so that your application can see the updated values. This method is invoked automatically when necessary (callback).
243243

244-
You can manually implement [`IPreferencesCallback`](src/main/java/io/github/albertus82/jface/preference/IPreferencesCallback.java) or [`PreferencesCallback`](src/main/java/io/github/albertus82/jface/preference/PreferencesCallback.java) or use/extend [`PropertiesConfiguration`](src/main/java/io/github/albertus82/util/PropertiesConfiguration.java) or [`Configuration`](src/main/java/io/github/albertus82/util/Configuration.java) depending on your needs.
244+
You can manually implement [`IPreferencesCallback`](src/main/java/it/albertus/jface/preference/IPreferencesCallback.java) or [`PreferencesCallback`](src/main/java/it/albertus/jface/preference/PreferencesCallback.java) or use/extend [`PropertiesConfiguration`](src/main/java/it/albertus/util/PropertiesConfiguration.java) or [`Configuration`](src/main/java/it/albertus/util/Configuration.java) depending on your needs.
245245

246246

247-
### [`FieldEditorFactory`](src/main/java/io/github/albertus82/jface/preference/FieldEditorFactory.java)
247+
### [`FieldEditorFactory`](src/main/java/it/albertus/jface/preference/FieldEditorFactory.java)
248248

249-
The [`FieldEditorFactory`](src/main/java/io/github/albertus82/jface/preference/FieldEditorFactory.java) helps you to create `FieldEditor` objects, as you saw in the previous [`IPreference`](src/main/java/io/github/albertus82/jface/preference/IPreference.java) example.
249+
The [`FieldEditorFactory`](src/main/java/it/albertus/jface/preference/FieldEditorFactory.java) helps you to create `FieldEditor` objects, as you saw in the previous [`IPreference`](src/main/java/it/albertus/jface/preference/IPreference.java) example.
250250

251-
By default, custom values are presented in *bold* format. If you don't like this behaviour, you can disable it invoking the `setBoldCustomValues(boolean)` method of [`FieldEditorFactory`](src/main/java/io/github/albertus82/jface/preference/FieldEditorFactory.java):
251+
By default, custom values are presented in *bold* format. If you don't like this behaviour, you can disable it invoking the `setBoldCustomValues(boolean)` method of [`FieldEditorFactory`](src/main/java/it/albertus/jface/preference/FieldEditorFactory.java):
252252

253253
```java
254254
public enum MyPreference implements IPreference {
@@ -265,7 +265,7 @@ public enum MyPreference implements IPreference {
265265

266266
#### Extension
267267

268-
If you need to create your custom `FieldEditor` classes, you can extend [`FieldEditorFactory`](src/main/java/io/github/albertus82/jface/preference/FieldEditorFactory.java) to add support for these new objects:
268+
If you need to create your custom `FieldEditor` classes, you can extend [`FieldEditorFactory`](src/main/java/it/albertus/jface/preference/FieldEditorFactory.java) to add support for these new objects:
269269

270270
```java
271271
public class MyFieldEditorFactory extends FieldEditorFactory {
@@ -288,9 +288,9 @@ public class MyFieldEditorFactory extends FieldEditorFactory {
288288

289289
After that, you can use your new factory instead of the default one.
290290

291-
## macOS integration with [`CocoaUIEnhancer`](src/main/java/io/github/albertus82/jface/cocoa/CocoaUIEnhancer.java)
291+
## macOS integration with [`CocoaUIEnhancer`](src/main/java/it/albertus/jface/cocoa/CocoaUIEnhancer.java)
292292

293-
The [`CocoaUIEnhancer`](src/main/java/io/github/albertus82/jface/cocoa/CocoaUIEnhancer.java) class provides a hook to connect the **Preferences**, **About** and **Quit** menu items of the **macOS** application menu.
293+
The [`CocoaUIEnhancer`](src/main/java/it/albertus/jface/cocoa/CocoaUIEnhancer.java) class provides a hook to connect the **Preferences**, **About** and **Quit** menu items of the **macOS** application menu.
294294
This is a modified version of the [`CocoaUIEnhancer`](http://www.transparentech.com/files/CocoaUIEnhancer.java) class available at [TransparenTech](http://www.transparentech.com/opensource/cocoauienhancer), and it is released under the Eclipse Public License ([EPL](https://www.eclipse.org/legal/epl-v10.html)).
295295

296296
In order to better integrate your JFace application with macOS, you should first call the following static methods of `Display` before its creation:
@@ -300,7 +300,7 @@ Display.setAppName("My JFace Application");
300300
Display.setAppVersion("1.2.3");
301301
```
302302

303-
Next, you can use [`CocoaUIEnhancer`](src/main/java/io/github/albertus82/jface/cocoa/CocoaUIEnhancer.java) before opening the shell:
303+
Next, you can use [`CocoaUIEnhancer`](src/main/java/it/albertus/jface/cocoa/CocoaUIEnhancer.java) before opening the shell:
304304

305305
```java
306306
if (Util.isCocoa()) {
@@ -314,7 +314,7 @@ The `hookApplicationMenu` method is overloaded in order to accept **SWT Listener
314314

315315
SWT uses operating system resources to deliver its native graphics and widget functionality. These resources should be freed when no longer needed, and the traditional way to do it is calling the `dispose()` method on the objects that represent the resources, however this approach may be error prone.
316316

317-
Now, if you need to instantiate a `Widget`, `Resource` (like a `GC`), `Device` or `Clipboard` and you want to make sure that its resources will be released after use, you can use the `Closeable` wrappers available in the `io.github.albertus82.jface.closeable` package with a *try-for-resources* statement. The wrapped object will be disposed automatically after the `try` block like any other *closeable* resource, so you will not have to invoke its `dispose()` method.
317+
Now, if you need to instantiate a `Widget`, `Resource` (like a `GC`), `Device` or `Clipboard` and you want to make sure that its resources will be released after use, you can use the `Closeable` wrappers available in the `it.albertus.jface.closeable` package with a *try-for-resources* statement. The wrapped object will be disposed automatically after the `try` block like any other *closeable* resource, so you will not have to invoke its `dispose()` method.
318318

319319
### Example
320320

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
<modelVersion>4.0.0</modelVersion>
77

8-
<groupId>io.github.albertus82</groupId>
8+
<groupId>it.albertus</groupId>
99
<artifactId>jface-utils</artifactId>
10-
<version>18.0.0-SNAPSHOT</version>
10+
<version>17.3.4-SNAPSHOT</version>
1111
<name>JFaceUtils</name>
1212
<url>https://github.com/albertus82/${project.artifactId}</url>
1313
<description>Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.</description>

src/main/java/io/github/albertus82/jface/DisplayThreadExecutor.java renamed to src/main/java/it/albertus/jface/DisplayThreadExecutor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

3-
import static io.github.albertus82.jface.DisplayThreadExecutor.Mode.ASYNC;
4-
import static io.github.albertus82.jface.DisplayThreadExecutor.Mode.SYNC;
3+
import static it.albertus.jface.DisplayThreadExecutor.Mode.ASYNC;
4+
import static it.albertus.jface.DisplayThreadExecutor.Mode.SYNC;
55

66
import java.util.concurrent.Executor;
77
import java.util.logging.Level;
@@ -11,7 +11,7 @@
1111
import org.eclipse.swt.widgets.Display;
1212
import org.eclipse.swt.widgets.Widget;
1313

14-
import io.github.albertus82.util.logging.LoggerFactory;
14+
import it.albertus.util.logging.LoggerFactory;
1515

1616
/** Executes code in the user-interface thread. */
1717
public class DisplayThreadExecutor implements Executor {

src/main/java/io/github/albertus82/jface/EnhancedErrorDialog.java renamed to src/main/java/it/albertus/jface/EnhancedErrorDialog.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.io.BufferedReader;
44
import java.io.IOException;
@@ -26,9 +26,9 @@
2626
import org.eclipse.swt.widgets.MenuItem;
2727
import org.eclipse.swt.widgets.Shell;
2828

29-
import io.github.albertus82.util.ExceptionUtils;
30-
import io.github.albertus82.util.IOUtils;
31-
import io.github.albertus82.util.logging.LoggerFactory;
29+
import it.albertus.util.ExceptionUtils;
30+
import it.albertus.util.IOUtils;
31+
import it.albertus.util.logging.LoggerFactory;
3232

3333
public class EnhancedErrorDialog extends ErrorDialog {
3434

src/main/java/io/github/albertus82/jface/Events.java renamed to src/main/java/it/albertus/jface/Events.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.io.IOException;
44
import java.io.InputStream;
@@ -9,8 +9,8 @@
99

1010
import org.eclipse.swt.widgets.Event;
1111

12-
import io.github.albertus82.util.IOUtils;
13-
import io.github.albertus82.util.logging.LoggerFactory;
12+
import it.albertus.util.IOUtils;
13+
import it.albertus.util.logging.LoggerFactory;
1414

1515
/**
1616
* Utility class for SWT events.

src/main/java/io/github/albertus82/jface/Formatter.java renamed to src/main/java/it/albertus/jface/Formatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.util.Arrays;
44

src/main/java/io/github/albertus82/jface/HqImageResizer.java renamed to src/main/java/it/albertus/jface/HqImageResizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.awt.image.BufferedImage;
44

src/main/java/io/github/albertus82/jface/ImageUtils.java renamed to src/main/java/it/albertus/jface/ImageUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.awt.image.BufferedImage;
44
import java.awt.image.ColorModel;
@@ -20,7 +20,7 @@
2020
import org.eclipse.swt.graphics.Rectangle;
2121
import org.eclipse.swt.widgets.Display;
2222

23-
import io.github.albertus82.util.IOUtils;
23+
import it.albertus.util.IOUtils;
2424

2525
public class ImageUtils {
2626

src/main/java/io/github/albertus82/jface/JFaceMessages.java renamed to src/main/java/it/albertus/jface/JFaceMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
import java.text.MessageFormat;
44
import java.util.ArrayList;
@@ -11,7 +11,7 @@
1111
import java.util.logging.Level;
1212
import java.util.logging.Logger;
1313

14-
import io.github.albertus82.util.logging.LoggerFactory;
14+
import it.albertus.util.logging.LoggerFactory;
1515

1616
public class JFaceMessages {
1717

src/main/java/io/github/albertus82/jface/Multilanguage.java renamed to src/main/java/it/albertus/jface/Multilanguage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.github.albertus82.jface;
1+
package it.albertus.jface;
22

33
public interface Multilanguage {
44

0 commit comments

Comments
 (0)