forked from jbosstools/jbosstools-fuse-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed problems due to refactoring and added dummy impl for global con…
…fig tab
- Loading branch information
Showing
5 changed files
with
111 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
...ap.ui/src/org/fusesource/ide/sap/ui/editor/globalconf/provider/SAPServerContribution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2016 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is 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: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package org.fusesource.ide.sap.ui.editor.globalconf.provider; | ||
|
||
import static org.fusesource.ide.sap.ui.Activator.CAMEL_SAP_ARTIFACT_ID; | ||
import static org.fusesource.ide.sap.ui.Activator.CAMEL_SAP_GROUP_ID; | ||
import static org.fusesource.ide.sap.ui.Activator.CAMEL_SAP_VERSION; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.fusesource.ide.camel.editor.provider.ext.GlobalConfigElementType; | ||
import org.fusesource.ide.camel.editor.provider.ext.GlobalConfigurationTypeWizard; | ||
import org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution; | ||
import org.fusesource.ide.camel.model.service.core.catalog.Dependency; | ||
import org.w3c.dom.Document; | ||
import org.w3c.dom.Element; | ||
import org.w3c.dom.Node; | ||
|
||
/** | ||
* @author lhein | ||
*/ | ||
public class SAPServerContribution implements ICustomGlobalConfigElementContribution { | ||
|
||
/* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#createGlobalElement(org.w3c.dom.Document) | ||
*/ | ||
@Override | ||
public GlobalConfigurationTypeWizard createGlobalElement(Document document) { | ||
return null; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#modifyGlobalElement(org.w3c.dom.Document, org.w3c.dom.Node) | ||
*/ | ||
@Override | ||
public GlobalConfigurationTypeWizard modifyGlobalElement(Document document) { | ||
return null; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#onGlobalElementDeleted(org.w3c.dom.Node) | ||
*/ | ||
@Override | ||
public void onGlobalElementDeleted(Node node) { | ||
System.err.println("received info that node has been deleted!"); | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#canHandle(org.w3c.dom.Node) | ||
*/ | ||
@Override | ||
public boolean canHandle(Node nodeToHandle) { | ||
return ((Element)nodeToHandle).getAttribute("id").equals("mySAPBeanId"); | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#getGlobalConfigElementType() | ||
*/ | ||
@Override | ||
public GlobalConfigElementType getGlobalConfigElementType() { | ||
return GlobalConfigElementType.GLOBAL_ELEMENT; | ||
} | ||
|
||
/* (non-Javadoc) | ||
* @see org.fusesource.ide.camel.editor.provider.ext.ICustomGlobalConfigElementContribution#getElementDependencies() | ||
*/ | ||
@Override | ||
public List<Dependency> getElementDependencies() { | ||
List<Dependency> deps = new ArrayList<Dependency>(); | ||
|
||
Dependency dep = new Dependency(); | ||
dep.setGroupId(CAMEL_SAP_GROUP_ID); | ||
dep.setArtifactId(CAMEL_SAP_ARTIFACT_ID); | ||
dep.setVersion(CAMEL_SAP_VERSION); | ||
deps.add(dep); | ||
|
||
return deps; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters