Project

General

Profile

« Previous | Next » 

Revision 9810c3b9

Added by Lutz Suhrbier over 12 years ago

Enabled Polytomous Keys for RAP

View differences:

.gitattributes
343 343
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/name/container/NameViewerFacadeImpl.java -text
344 344
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/view/concept/ConceptLabelProviderFacadeImpl.java -text
345 345
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/view/descriptive/DescriptiveLabelProviderFacadeImpl.java -text
346
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/view/descriptive/DescriptiveViewPartImpl.java -text
346 347
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/view/media/MediaViewPartImpl.java -text
347 348
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/jface/text/PositionFacadeImpl.java -text
348 349
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/org/eclipse/jface/window/ToolTipFacadeImpl.java -text
......
575 576
eu.etaxonomy.taxeditor.navigation.rap/META-INF/MANIFEST.MF -text
576 577
eu.etaxonomy.taxeditor.navigation.rap/build.properties -text
577 578
eu.etaxonomy.taxeditor.navigation.rap/fragment.xml -text
579
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/ClassificationLabelProviderImpl.java -text
580
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/SynonymLabelProviderImpl.java -text
581
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/TaxonNodeLabelProviderImpl.java -text
578 582
eu.etaxonomy.taxeditor.navigation.rcp/.classpath -text
579 583
eu.etaxonomy.taxeditor.navigation.rcp/.project -text
580 584
eu.etaxonomy.taxeditor.navigation.rcp/.settings/org.eclipse.jdt.core.prefs -text
eu.etaxonomy.taxeditor.editor.rap/src/eu/etaxonomy/taxeditor/singlesource/editor/view/descriptive/DescriptiveViewPartImpl.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.taxeditor.singlesource.editor.view.descriptive;
12

  
13
import org.apache.log4j.Logger;
14
import org.eclipse.jface.viewers.ISelection;
15
import org.eclipse.jface.viewers.StructuredSelection;
16
import org.eclipse.ui.IEditorInput;
17
import org.eclipse.ui.IEditorPart;
18
import org.eclipse.ui.IWorkbenchPart;
19

  
20
import eu.etaxonomy.taxeditor.editor.EditorUtil;
21
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor;
22
import eu.etaxonomy.taxeditor.editor.key.AbstractGraphKeyEditor;
23

  
24
/**
25
 * <p>DescriptiveViewPart class.</p>
26
 *
27
 * @author n.hoffmann
28
 * @created Jun 9, 2010
29
 * @version 1.0
30
 */
31
public class DescriptiveViewPartImpl extends DescriptiveViewPart {
32
	private static final Logger logger = Logger.getLogger(DescriptiveViewPartImpl.class);
33

  
34
	/** {@inheritDoc} */
35
	public void selectionChanged(IWorkbenchPart part, ISelection selection) {
36
		if(EditorUtil.getActiveEditor() == null){
37
			showEmptyPage();
38
			return;
39
		}
40
		
41
		if(part instanceof AbstractGraphKeyEditor){
42
			showEmptyPage();
43
			return;
44
		}
45
		
46
		if(part instanceof MultiPageTaxonEditor){
47
			if(! part.equals(this.part)){
48
				IEditorInput input = ((IEditorPart) part).getEditorInput();
49
				featureNodeContainerCache.clear();
50
				showViewer(part, new StructuredSelection(input));
51
			}
52
			showViewer();
53
		}
54
	}
55
}
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/ClassificationLabelProviderImpl.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.taxeditor.singlesource.navigation.navigator;
12

  
13
import org.apache.log4j.Logger;
14

  
15
/**
16
 * <p>ClassificationLabelProvider class.</p>
17
 *
18
 * @author n.hoffmann
19
 * @created 17.06.2009
20
 * @version 1.0
21
 */
22
public class ClassificationLabelProviderImpl extends ClassificationLabelProvider 
23
{
24
	private static final Logger logger = Logger
25
			.getLogger(ClassificationLabelProviderImpl.class);
26
	
27
}
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/SynonymLabelProviderImpl.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.taxeditor.singlesource.navigation.navigator;
12

  
13
import org.apache.log4j.Logger;
14

  
15
/**
16
 * @author p.ciardelli
17
 * @created 02.06.2009
18
 * @version 1.0
19
 */
20
/**
21
 * <p>SynonymLabelProvider class.</p>
22
 *
23
 * @author p.ciardelli
24
 * @created 04.06.2009
25
 * @version 1.0
26
 */
27
public class SynonymLabelProviderImpl extends SynonymLabelProvider {
28
	private static final Logger logger = Logger
29
			.getLogger(SynonymLabelProviderImpl.class);
30
}
eu.etaxonomy.taxeditor.navigation.rap/src/eu/etaxonomy/taxeditor/singlesource/navigation/navigator/TaxonNodeLabelProviderImpl.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.taxeditor.singlesource.navigation.navigator;
12

  
13
import org.apache.log4j.Logger;
14

  
15
/**
16
 * <p>TaxonNodeLabelProvider class.</p>
17
 *
18
 * @author p.ciardelli
19
 * @created 04.06.2009
20
 * @version 1.0
21
 */
22
public class TaxonNodeLabelProviderImpl extends TaxonNodeLabelProvider {
23
	private static final Logger logger = Logger
24
			.getLogger(TaxonNodeLabelProviderImpl.class);
25
}

Also available in: Unified diff