Revision e3e52609
Added by Lutz Suhrbier over 12 years ago
.gitattributes | ||
---|---|---|
683 | 683 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/io/wizard/ImportFromFileDataSourceWizardPageFacadeImpl.java -text |
684 | 684 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/ide/undo/WorkspaceUndoUtilFacadeImpl.java -text |
685 | 685 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/swt/widgets/DisplayProxyImpl.java -text |
686 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePluginImpl.java -text |
|
686 | 687 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/LanguageStringWithLabelElementFacadeImpl.java -text |
687 | 688 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/NumberWithLabelElementFacadeImpl.java -text |
688 | 689 |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/TextWithLabelElementFacadeImpl.java -text |
... | ... | |
698 | 699 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/io/wizard/ImportFromFileDataSourceWizardPageFacadeImpl.java -text |
699 | 700 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/ide/undo/WorkspaceUndoUtilFacadeImpl.java -text |
700 | 701 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/swt/widgets/DisplayProxyImpl.java -text |
702 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePluginImpl.java -text |
|
701 | 703 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/LanguageStringWithLabelElementFacadeImpl.java -text |
702 | 704 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/NumberWithLabelElementFacadeImpl.java -text |
703 | 705 |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/ui/forms/TextWithLabelElementFacadeImpl.java -text |
... | ... | |
991 | 993 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/org/eclipse/swt/widgets/DisplayProxy.java -text |
992 | 994 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/org/eclipse/swt/widgets/IDisplayProxy.java -text |
993 | 995 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/store/TaxeditorStoreStartup.java -text |
996 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePlugin.java -text |
|
994 | 997 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/ui/forms/LanguageStringWithLabelElementFacade.java -text |
995 | 998 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/ui/forms/NumberWithLabelElementFacade.java -text |
996 | 999 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/ui/forms/TextWithLabelElementFacade.java -text |
... | ... | |
1004 | 1007 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/StoreUtil.java -text |
1005 | 1008 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermManager.java -text |
1006 | 1009 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/TermStore.java -text |
1007 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/internal/TaxeditorStorePlugin.java -text |
|
1008 | 1010 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/bar/AuthenticatedUserBar.java -text |
1009 | 1011 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialogs/LoginDialog.java -text |
1010 | 1012 |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialogs/UriDialog.java -text |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/singlesource/editor/key/polytomous/IPolytomousKeyListLabelProvider.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.eclipse.jface.viewers.IBaseLabelProvider; |
4 | 4 |
import org.eclipse.jface.viewers.ViewerCell; |
5 |
import org.eclipse.swt.SWT; |
|
6 |
import org.eclipse.swt.graphics.Color; |
|
7 |
|
|
8 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy; |
|
9 | 5 |
|
10 | 6 |
public interface IPolytomousKeyListLabelProvider extends IBaseLabelProvider { |
11 | 7 |
|
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/RecentNamesContributionItem.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
import eu.etaxonomy.taxeditor.editor.internal.TaxeditorEditorPlugin; |
24 | 24 |
import eu.etaxonomy.taxeditor.navigation.internal.TaxeditorNavigationPlugin; |
25 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
25 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
26 | 26 |
|
27 | 27 |
/** |
28 | 28 |
* This is a wrapper for Eclipse's recently opened editors functionality. IsDirty() |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/swt/widgets/DisplayProxyImpl.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets; |
2 | 2 |
|
3 |
import org.eclipse.rwt.SessionSingletonBase; |
|
3 | 4 |
import org.eclipse.swt.widgets.Display; |
4 | 5 |
|
5 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.IDisplayProxy; |
|
6 |
|
|
7 |
public class DisplayProxyImpl implements IDisplayProxy { |
|
8 |
|
|
6 |
public class DisplayProxyImpl extends SessionSingletonBase implements IDisplayProxy { |
|
7 |
private static Display display; |
|
9 | 8 |
@Override |
10 | 9 |
public Display getDefault() { |
11 |
return Display.getDefault();
|
|
10 |
return this.display;
|
|
12 | 11 |
} |
13 | 12 |
|
14 | 13 |
@Override |
15 | 14 |
public void setDefault(Display display) { |
15 |
this.display = display; |
|
16 | 16 |
} |
17 | 17 |
|
18 | 18 |
} |
eu.etaxonomy.taxeditor.store.rap/src/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePluginImpl.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.singlesource.store.internal; |
|
2 |
|
|
3 |
import org.apache.log4j.Logger; |
|
4 |
import org.eclipse.jface.resource.ImageDescriptor; |
|
5 |
import org.eclipse.jface.resource.ImageRegistry; |
|
6 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
7 |
import org.osgi.framework.BundleContext; |
|
8 |
|
|
9 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
10 |
|
|
11 |
/** |
|
12 |
* The activator class controls the plug-in life cycle |
|
13 |
* |
|
14 |
* @author n.hoffmann |
|
15 |
* @version $Id: $ |
|
16 |
*/ |
|
17 |
public class TaxeditorStorePluginImpl extends TaxeditorStorePlugin { |
|
18 |
private static final Logger logger = Logger.getLogger(TaxeditorStorePluginImpl.class); |
|
19 |
|
|
20 |
/* |
|
21 |
* (non-Javadoc) |
|
22 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
23 |
*/ |
|
24 |
/** {@inheritDoc} */ |
|
25 |
public void start(BundleContext context) throws Exception { |
|
26 |
super.start(context); |
|
27 |
logger.debug("TaxeditorStorePlugin.start(BundleContext)"); |
|
28 |
} |
|
29 |
|
|
30 |
} |
eu.etaxonomy.taxeditor.store.rcp/src/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePluginImpl.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.singlesource.store.internal; |
|
2 |
|
|
3 |
import org.apache.log4j.Logger; |
|
4 |
|
|
5 |
import org.osgi.framework.BundleContext; |
|
6 |
|
|
7 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
8 |
|
|
9 |
/** |
|
10 |
* The activator class controls the plug-in life cycle |
|
11 |
* |
|
12 |
* @author n.hoffmann |
|
13 |
* @version $Id: $ |
|
14 |
*/ |
|
15 |
public class TaxeditorStorePluginImpl extends TaxeditorStorePlugin { |
|
16 |
private static final Logger logger = Logger.getLogger(TaxeditorStorePluginImpl.class); |
|
17 |
|
|
18 |
/* |
|
19 |
* (non-Javadoc) |
|
20 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
21 |
*/ |
|
22 |
/** {@inheritDoc} */ |
|
23 |
public void start(BundleContext context) throws Exception { |
|
24 |
super.start(context); |
|
25 |
logger.debug("TaxeditorStorePlugin.start(BundleContext) : PreferencesUtil.setDefaults()"); |
|
26 |
PreferencesUtil.setDefaults(); |
|
27 |
} |
|
28 |
|
|
29 |
} |
eu.etaxonomy.taxeditor.store/META-INF/MANIFEST.MF | ||
---|---|---|
3 | 3 |
Bundle-Name: EDIT Taxonomic Editor - DataStore Bundle |
4 | 4 |
Bundle-SymbolicName: eu.etaxonomy.taxeditor.store;singleton:=true |
5 | 5 |
Bundle-Version: 3.0.0.qualifier |
6 |
Bundle-Activator: eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin
|
|
6 |
Bundle-Activator: eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePluginImpl
|
|
7 | 7 |
Bundle-Vendor: EDIT |
8 | 8 |
Export-Package: dbscripts, |
9 | 9 |
eu.etaxonomy.cdm, |
... | ... | |
154 | 154 |
eu.etaxonomy.taxeditor.singlesource.io.wizard;uses:="org.eclipse.jface.wizard,org.eclipse.swt.widgets", |
155 | 155 |
eu.etaxonomy.taxeditor.singlesource.org.eclipse.ide.undo;uses:="org.eclipse.core.runtime,org.eclipse.core.commands.operations,org.eclipse.swt.widgets", |
156 | 156 |
eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets;uses:="org.eclipse.swt.widgets", |
157 |
eu.etaxonomy.taxeditor.singlesource.store, |
|
158 |
eu.etaxonomy.taxeditor.singlesource.store.internal, |
|
157 | 159 |
eu.etaxonomy.taxeditor.singlesource.ui.forms; |
158 | 160 |
uses:="eu.etaxonomy.taxeditor.ui.forms, |
159 | 161 |
org.eclipse.swt.events, |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/datasource/CdmDataSourceRepository.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
30 | 30 |
import eu.etaxonomy.taxeditor.model.MementoHelper; |
31 | 31 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
32 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin; |
|
32 | 33 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
33 | 34 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
34 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
35 | 35 |
public class CdmDataSourceRepository{; |
36 | 36 |
|
37 | 37 |
/** Constant <code>TAG_DATASOURCE="tagDataSource"</code> */ |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
55 | 55 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
56 | 56 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.ide.undo.WorkspaceUndoUtilFacade; |
57 | 57 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy; |
58 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
58 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
59 | 59 |
import eu.etaxonomy.taxeditor.view.AbstractCdmDataViewer; |
60 | 60 |
import eu.etaxonomy.taxeditor.view.detail.DetailsViewPart; |
61 | 61 |
import eu.etaxonomy.taxeditor.view.supplementaldata.SupplementalDataViewPart; |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/ImageResources.java | ||
---|---|---|
22 | 22 |
import org.eclipse.swt.graphics.Image; |
23 | 23 |
|
24 | 24 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
25 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin; |
|
25 | 26 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
26 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
27 | 27 |
|
28 | 28 |
/** |
29 | 29 |
* <p>ImageResources class.</p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/NomenclaturalCodePreferences.java | ||
---|---|---|
17 | 17 |
|
18 | 18 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
19 | 19 |
import eu.etaxonomy.taxeditor.model.NomenclaturalCodeHelper; |
20 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
20 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
21 | 21 |
|
22 | 22 |
/** |
23 | 23 |
* <p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java | ||
---|---|---|
40 | 40 |
import eu.etaxonomy.cdm.strategy.match.MatchException; |
41 | 41 |
import eu.etaxonomy.cdm.strategy.match.MatchMode; |
42 | 42 |
import eu.etaxonomy.taxeditor.model.NomenclaturalCodeHelper; |
43 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin; |
|
43 | 44 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
44 | 45 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
45 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
46 | 46 |
|
47 | 47 |
/** |
48 | 48 |
* <p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/singlesource/store/internal/TaxeditorStorePlugin.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.singlesource.store.internal; |
|
2 |
|
|
3 |
import org.apache.log4j.Logger; |
|
4 |
import org.eclipse.jface.resource.ImageDescriptor; |
|
5 |
import org.eclipse.jface.resource.ImageRegistry; |
|
6 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
7 |
import org.osgi.framework.BundleContext; |
|
8 |
|
|
9 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
10 |
|
|
11 |
/** |
|
12 |
* The activator class controls the plug-in life cycle |
|
13 |
* |
|
14 |
* @author n.hoffmann |
|
15 |
* @version $Id: $ |
|
16 |
*/ |
|
17 |
public class TaxeditorStorePlugin extends AbstractUIPlugin { |
|
18 |
private static final Logger logger = Logger.getLogger(TaxeditorStorePlugin.class); |
|
19 |
// The plug-in ID |
|
20 |
/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */ |
|
21 |
public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor"; |
|
22 |
|
|
23 |
// The shared instance |
|
24 |
private static TaxeditorStorePlugin plugin; |
|
25 |
|
|
26 |
/** |
|
27 |
* The constructor |
|
28 |
*/ |
|
29 |
public TaxeditorStorePlugin() { |
|
30 |
} |
|
31 |
|
|
32 |
/* |
|
33 |
* (non-Javadoc) |
|
34 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
35 |
*/ |
|
36 |
/** {@inheritDoc} */ |
|
37 |
public void start(BundleContext context) throws Exception { |
|
38 |
super.start(context); |
|
39 |
|
|
40 |
plugin = this; |
|
41 |
logger.debug("TaxeditorStorePlugin.start(BundleContext)"); |
|
42 |
/** RAPSS: Must be moved to session Context e.g. EntryPoint.createUI().*/ |
|
43 |
// PreferencesUtil.setDefaults(); |
|
44 |
} |
|
45 |
|
|
46 |
/* |
|
47 |
* (non-Javadoc) |
|
48 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
|
49 |
*/ |
|
50 |
/** {@inheritDoc} */ |
|
51 |
public void stop(BundleContext context) throws Exception { |
|
52 |
plugin = null; |
|
53 |
super.stop(context); |
|
54 |
} |
|
55 |
|
|
56 |
/** |
|
57 |
* Returns the shared instance |
|
58 |
* |
|
59 |
* @return the shared instance |
|
60 |
*/ |
|
61 |
public static TaxeditorStorePlugin getDefault() { |
|
62 |
return plugin; |
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* Returns an image descriptor for the image file at the given |
|
67 |
* plug-in relative path |
|
68 |
* |
|
69 |
* @param path the path |
|
70 |
* @return the image descriptor |
|
71 |
*/ |
|
72 |
public static ImageDescriptor getImageDescriptor(String path) { |
|
73 |
return imageDescriptorFromPlugin(PLUGIN_ID, path); |
|
74 |
} |
|
75 |
|
|
76 |
|
|
77 |
/** |
|
78 |
* Exposes this normally protected method. |
|
79 |
* |
|
80 |
* @return a {@link org.eclipse.jface.resource.ImageRegistry} object. |
|
81 |
*/ |
|
82 |
public ImageRegistry createImageRegistry(){ |
|
83 |
return super.createImageRegistry(); |
|
84 |
} |
|
85 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java | ||
---|---|---|
32 | 32 |
import eu.etaxonomy.taxeditor.io.ImportManager; |
33 | 33 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
34 | 34 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy; |
35 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
35 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
36 | 36 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
37 | 37 |
|
38 | 38 |
/** |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/ContextManager.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
import eu.etaxonomy.taxeditor.model.IContextListener; |
29 | 29 |
import eu.etaxonomy.taxeditor.model.MementoHelper; |
30 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
30 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
31 | 31 |
|
32 | 32 |
/** |
33 | 33 |
* The context manager mediates context start/stop and workbench shutdowns to all registered listeners. |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/StoreUtil.java | ||
---|---|---|
17 | 17 |
import org.eclipse.jface.action.IStatusLineManager; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
20 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
20 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
21 | 21 |
|
22 | 22 |
/** |
23 | 23 |
* <p>StoreUtil class.</p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/internal/TaxeditorStorePlugin.java | ||
---|---|---|
1 |
package eu.etaxonomy.taxeditor.store.internal; |
|
2 |
|
|
3 |
import org.apache.log4j.Logger; |
|
4 |
import org.eclipse.jface.resource.ImageDescriptor; |
|
5 |
import org.eclipse.jface.resource.ImageRegistry; |
|
6 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
7 |
import org.osgi.framework.BundleContext; |
|
8 |
|
|
9 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
10 |
|
|
11 |
/** |
|
12 |
* The activator class controls the plug-in life cycle |
|
13 |
* |
|
14 |
* @author n.hoffmann |
|
15 |
* @version $Id: $ |
|
16 |
*/ |
|
17 |
public class TaxeditorStorePlugin extends AbstractUIPlugin { |
|
18 |
private static final Logger logger = Logger.getLogger(TaxeditorStorePlugin.class); |
|
19 |
// The plug-in ID |
|
20 |
/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */ |
|
21 |
public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor"; |
|
22 |
|
|
23 |
// The shared instance |
|
24 |
private static TaxeditorStorePlugin plugin; |
|
25 |
|
|
26 |
/** |
|
27 |
* The constructor |
|
28 |
*/ |
|
29 |
public TaxeditorStorePlugin() { |
|
30 |
} |
|
31 |
|
|
32 |
/* |
|
33 |
* (non-Javadoc) |
|
34 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
|
35 |
*/ |
|
36 |
/** {@inheritDoc} */ |
|
37 |
public void start(BundleContext context) throws Exception { |
|
38 |
super.start(context); |
|
39 |
|
|
40 |
plugin = this; |
|
41 |
logger.debug("TaxeditorStorePlugin.start(BundleContext)"); |
|
42 |
/** RAPSS: Must be moved to session Context e.g. EntryPoint.createUI().*/ |
|
43 |
PreferencesUtil.setDefaults(); |
|
44 |
} |
|
45 |
|
|
46 |
/* |
|
47 |
* (non-Javadoc) |
|
48 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
|
49 |
*/ |
|
50 |
/** {@inheritDoc} */ |
|
51 |
public void stop(BundleContext context) throws Exception { |
|
52 |
plugin = null; |
|
53 |
super.stop(context); |
|
54 |
} |
|
55 |
|
|
56 |
/** |
|
57 |
* Returns the shared instance |
|
58 |
* |
|
59 |
* @return the shared instance |
|
60 |
*/ |
|
61 |
public static TaxeditorStorePlugin getDefault() { |
|
62 |
return plugin; |
|
63 |
} |
|
64 |
|
|
65 |
/** |
|
66 |
* Returns an image descriptor for the image file at the given |
|
67 |
* plug-in relative path |
|
68 |
* |
|
69 |
* @param path the path |
|
70 |
* @return the image descriptor |
|
71 |
*/ |
|
72 |
public static ImageDescriptor getImageDescriptor(String path) { |
|
73 |
return imageDescriptorFromPlugin(PLUGIN_ID, path); |
|
74 |
} |
|
75 |
|
|
76 |
|
|
77 |
/** |
|
78 |
* Exposes this normally protected method. |
|
79 |
* |
|
80 |
* @return a {@link org.eclipse.jface.resource.ImageRegistry} object. |
|
81 |
*/ |
|
82 |
public ImageRegistry createImageRegistry(){ |
|
83 |
return super.createImageRegistry(); |
|
84 |
} |
|
85 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialogs/filteredSelection/AbstractFilteredCdmResourceSelectionDialog.java | ||
---|---|---|
48 | 48 |
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache; |
49 | 49 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
50 | 50 |
import eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard; |
51 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin; |
|
51 | 52 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
52 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
53 | 53 |
|
54 | 54 |
/** |
55 | 55 |
* <p>Abstract AbstractFilteredCdmResourceSelectionDialog class.</p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/forms/CdmFormFactory.java | ||
---|---|---|
1311 | 1311 |
public void dispose() { |
1312 | 1312 |
if (boldFont != null) { |
1313 | 1313 |
/** RAPSS:Modify: Only one parameter required in Indigo |
1314 |
FormFonts.getInstance().markFinished(boldFont, |
|
1315 |
getColors().getDisplay()); |
|
1314 |
FormFonts.getInstance().markFinished( boldFont, getColors().getDisplay()); |
|
1316 | 1315 |
*/ |
1317 | 1316 |
/** RAPSS:Modify: Two parameter required in Helios |
1318 |
FormFonts.getInstance().markFinished(boldFont);
|
|
1317 |
FormFonts.getInstance().markFinished(boldFont); |
|
1319 | 1318 |
*/ |
1320 |
FormFonts.getInstance().markFinished(boldFont, |
|
1321 |
getColors().getDisplay()); |
|
1319 |
FormFonts.getInstance().markFinished(boldFont); |
|
1322 | 1320 |
boldFont = null; |
1323 | 1321 |
} |
1324 | 1322 |
} |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/AbstractSplitableViewPart.java | ||
---|---|---|
24 | 24 |
import org.eclipse.ui.part.PageBook; |
25 | 25 |
import org.eclipse.ui.part.ViewPart; |
26 | 26 |
|
27 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
27 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin;
|
|
28 | 28 |
|
29 | 29 |
/** |
30 | 30 |
* <p>Abstract AbstractSplitableViewPart class.</p> |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/handler/UpdateDataSourceHandler.java | ||
---|---|---|
21 | 21 |
import eu.etaxonomy.cdm.database.update.CdmUpdater; |
22 | 22 |
import eu.etaxonomy.taxeditor.model.CdmProgressMonitorAdapter; |
23 | 23 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy; |
24 |
import eu.etaxonomy.taxeditor.singlesource.store.internal.TaxeditorStorePlugin; |
|
24 | 25 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
25 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin; |
|
26 | 26 |
import eu.etaxonomy.taxeditor.view.datasource.CdmDataSourceViewPart; |
27 | 27 |
import eu.etaxonomy.taxeditor.view.datasource.CdmMetaDataAwareDataSourceContainer; |
28 | 28 |
|
Also available in: Unified diff
RAP-Version SingleSourced und scheint zu laufen