JBoss Tools SVN: r38579 - trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/refactoring.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2012-02-09 15:56:32 -0500 (Thu, 09 Feb 2012)
New Revision: 38579
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/refactoring/ELReferencesRenameTest.java
Log:
Renaming java element does not force to re-validate related resources https://issues.jboss.org/browse/JBIDE-10767
Modified: trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/refactoring/ELReferencesRenameTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/refactoring/ELReferencesRenameTest.java 2012-02-09 20:54:32 UTC (rev 38578)
+++ trunk/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/ui/test/refactoring/ELReferencesRenameTest.java 2012-02-09 20:56:32 UTC (rev 38579)
@@ -4,6 +4,8 @@
import java.util.List;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.core.IJavaElement;
@@ -42,6 +44,8 @@
private void renameELReferences(IJavaElement element, String newName, List<TestChangeStructure> changeList) throws CoreException{
JobUtils.waitForIdle();
+
+ int[] numberOfMarkers = new int[changeList.size()];
// Rename EL references
RenameMethodParticipant participant = new RenameMethodParticipant();
@@ -58,10 +62,13 @@
for(int i = 0; i < rootChange.getChildren().length;i++){
BaseFileChange fileChange = (BaseFileChange)rootChange.getChildren()[i];
+ IFile file = fileChange.getFile();
+ IMarker[] markers = file.findMarkers(null, true, IResource.DEPTH_INFINITE);
+ numberOfMarkers[i] = markers.length;
MultiTextEdit edit = (MultiTextEdit)fileChange.getEdit();
- TestChangeStructure change = findChange(changeList, fileChange.getFile());
+ TestChangeStructure change = findChange(changeList, file);
if(change != null){
assertEquals(change.size(), edit.getChildrenSize());
}
@@ -71,6 +78,7 @@
JobUtils.waitForIdle();
// Test results
+ int index = 0;
for(TestChangeStructure changeStructure : changeList){
IFile file = changeStructure.getProject().getFile(changeStructure.getFileName());
String content = null;
@@ -84,6 +92,11 @@
for(TestTextChange change : changeStructure.getTextChanges()){
assertEquals("There is unexpected change in resource - "+file.getName(), newName, content.substring(change.getOffset(), change.getOffset()+newName.length()));
}
+
+ IMarker[] markers = file.findMarkers(null, true, IResource.DEPTH_INFINITE);
+ assertTrue("Refactoring increased number of problems", markers.length <= numberOfMarkers[index]);
+
+ index++;
}
}
}
\ No newline at end of file
14 years, 2 months
JBoss Tools SVN: r38578 - trunk/ws/plugins/org.jboss.tools.ws.jaxrs.ui/src/org/jboss/tools/ws/jaxrs/ui/cnf/action.
by jbosstools-commits@lists.jboss.org
Author: xcoulon
Date: 2012-02-09 15:54:32 -0500 (Thu, 09 Feb 2012)
New Revision: 38578
Modified:
trunk/ws/plugins/org.jboss.tools.ws.jaxrs.ui/src/org/jboss/tools/ws/jaxrs/ui/cnf/action/OpenInWSTesterAction.java
Log:
Open - Hook up WS Tester to the JAX-RS tooling
https://issues.jboss.org/browse/JBIDE-10609
Modified: trunk/ws/plugins/org.jboss.tools.ws.jaxrs.ui/src/org/jboss/tools/ws/jaxrs/ui/cnf/action/OpenInWSTesterAction.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.jaxrs.ui/src/org/jboss/tools/ws/jaxrs/ui/cnf/action/OpenInWSTesterAction.java 2012-02-09 20:23:56 UTC (rev 38577)
+++ trunk/ws/plugins/org.jboss.tools.ws.jaxrs.ui/src/org/jboss/tools/ws/jaxrs/ui/cnf/action/OpenInWSTesterAction.java 2012-02-09 20:54:32 UTC (rev 38578)
@@ -14,6 +14,9 @@
import java.lang.reflect.Method;
import java.util.List;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
@@ -26,12 +29,15 @@
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.navigator.CommonViewer;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerUtil;
import org.jboss.tools.ws.jaxrs.ui.cnf.UriPathTemplateElement;
import org.jboss.tools.ws.jaxrs.ui.internal.utils.Logger;
/**
* @author bfitzpat
- *
+ *
*/
public class OpenInWSTesterAction extends Action implements ISelectionChangedListener {
@@ -43,6 +49,7 @@
/**
* (non-Javadoc)
+ *
* @see org.eclipse.jface.action.Action#run()
*/
@Override
@@ -57,19 +64,17 @@
try {
if (selectedObject instanceof UriPathTemplateElement) {
UriPathTemplateElement element = (UriPathTemplateElement) selectedObject;
- String uriPathTemplate = element.getEndpoint().getUriPathTemplate();
- String uriPrefix = "http://[domain]:[port]"; //$NON-NLS-1$
-
+ String endpointUri = computeEndpointURI(element);
// Now we call the WS Tester through Reflection so there's no direct plug-in dependency
IWorkbench wb = PlatformUI.getWorkbench();
IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
- IWorkbenchPage page = win.getActivePage();
+ IWorkbenchPage page = win.getActivePage();
String id = "org.jboss.tools.ws.ui.tester.views.TestWSView"; //$NON-NLS-1$
try {
IViewPart part = page.showView(id);
- if (part != null &&
- part.getClass().getName().equalsIgnoreCase(
- "org.jboss.tools.ws.ui.views.JAXRSWSTestView2")) { //$NON-NLS-1$
+ if (part != null
+ && part.getClass().getName()
+ .equalsIgnoreCase("org.jboss.tools.ws.ui.views.JAXRSWSTestView2")) { //$NON-NLS-1$
Class<?> c = part.getClass();
Class<?> parmtypes[] = new Class[2];
parmtypes[0] = String.class;
@@ -77,10 +82,10 @@
Method setURL = c.getDeclaredMethod("setJAXRS", parmtypes); //$NON-NLS-1$
if (setURL != null) {
Object arglist[] = new Object[2];
- arglist[0] = uriPrefix + uriPathTemplate;
- arglist[1] = element.getEndpoint().getHttpMethod().getHttpVerb();
- setURL.invoke(part, arglist);
- }
+ arglist[0] = endpointUri;
+ arglist[1] = element.getEndpoint().getHttpMethod().getHttpVerb();
+ setURL.invoke(part, arglist);
+ }
}
} catch (PartInitException e) {
e.printStackTrace();
@@ -92,6 +97,29 @@
}
}
+ /**
+ * Creates the endpoint URI from the endpoint, by looking at the servers on which the module is deployed.
+ * @param element
+ * @return
+ */
+ private String computeEndpointURI(UriPathTemplateElement element) {
+ String uriPathTemplate = element.getEndpoint().getUriPathTemplate();
+ IProject project = element.getEndpoint().getJavaProject().getProject();
+ IModule module = ServerUtil.getModule(project);
+ IPath path = new Path(module.getName()).append(uriPathTemplate);
+ // WebResource wr = new WebResource(module, path);
+ // check to see if this project has been deployed...
+ IServer[] servers = ServerUtil.getServersByModule(module, null);
+ if (servers == null || servers.length == 0) {
+ return "http://[domain]:[port]/" + path.toPortableString(); //$NON-NLS-1$
+ }
+ // if it's been deployed, we can grab the domain and web port
+ String domain = servers[0].getHost();
+ String webport = servers[0].getAttribute("org.jboss.ide.eclipse.as.core.server.webPort", "8080");//$NON-NLS-1$ //$NON-NLS-2$
+ return "http://" + domain + ':' + webport + "/" + path.toPortableString(); //$NON-NLS-1$
+
+ }
+
@Override
public void selectionChanged(SelectionChangedEvent event) {
Object source = event.getSource();
14 years, 2 months
JBoss Tools SVN: r38577 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 15:23:56 -0500 (Thu, 09 Feb 2012)
New Revision: 38577
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
Log:
slight cleanup
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-02-09 19:52:58 UTC (rev 38576)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizard.java 2012-02-09 20:23:56 UTC (rev 38577)
@@ -47,8 +47,8 @@
AbstractOpenShiftApplicationWizard<OpenShiftExpressApplicationWizardModel> implements IImportWizard, INewWizard {
private IUser initialUser;
+
public OpenShiftExpressApplicationWizard() {
- super();
setWizardModel(new OpenShiftExpressApplicationWizardModel());
}
@@ -71,8 +71,8 @@
setWindowTitle("OpenShift Application Wizard");
setNeedsProgressMonitor(true);
Object o = selection.getFirstElement();
- if( o instanceof IUser ) {
- this.initialUser = (IUser)o;
+ if (o instanceof IUser) {
+ setInitialUser((IUser) o);
}
}
@@ -89,28 +89,29 @@
}
@Override
- public IWizardPage getStartingPage() {
+ public IWizardPage getStartingPage() {
IWizardPage[] pages = getPages();
return initialUser == null ? pages[0] : pages[1];
- }
+ }
@Override
public boolean performFinish() {
try {
final DelegatingProgressMonitor delegatingMonitor = new DelegatingProgressMonitor();
- IStatus jobResult = WizardUtils.runInWizard(new ImportJob(delegatingMonitor), delegatingMonitor,
- getContainer());
+ IStatus jobResult = WizardUtils.runInWizard(
+ new ImportJob(delegatingMonitor), delegatingMonitor, getContainer());
return JobUtils.isOk(jobResult);
} catch (Exception e) {
- ErrorDialog.openError(getShell(), "Error", "Could not create local git repository.", new Status(
- IStatus.ERROR, OpenShiftUIActivator.PLUGIN_ID,
- "An exception occurred while creating local git repository.", e));
+ ErrorDialog.openError(getShell(), "Error", "Could not create local git repository.",
+ OpenShiftUIActivator.createErrorStatus(
+ "An exception occurred while creating local git repository.", e));
return false;
}
}
/**
- * A workspace job that will create a new project or enable the selected project to be used with OpenShift.
+ * A workspace job that will create a new project or enable the selected
+ * project to be used with OpenShift.
*/
class ImportJob extends WorkspaceJob {
14 years, 2 months
JBoss Tools SVN: r38576 - in trunk/cdi: tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2012-02-09 14:52:58 -0500 (Thu, 09 Feb 2012)
New Revision: 38576
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/ValuedQualifier.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/AnnotationType.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIProject.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifierDeclaration.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java
Log:
Wizard 'Specify CDI Bean for the Injection Point' does not compute correctly condition 'can finish' https://issues.jboss.org/browse/JBIDE-10637
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/ValuedQualifier.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/ValuedQualifier.java 2012-02-09 17:03:21 UTC (rev 38575)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/refactoring/ValuedQualifier.java 2012-02-09 19:52:58 UTC (rev 38576)
@@ -35,6 +35,8 @@
pair.value = mvp.getValue();
if(mvp.getValueKind() == IMemberValuePair.K_STRING){
pair.type = "String";
+ }else if(mvp.getValueKind() == IMemberValuePair.K_CHAR){
+ pair.type = "char";
}
pairs.add(pair);
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/AnnotationType.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/AnnotationType.java 2012-02-09 17:03:21 UTC (rev 38575)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/AnnotationType.java 2012-02-09 19:52:58 UTC (rev 38576)
@@ -31,10 +31,18 @@
public class AnnotationType extends Type {
private static IMethod[] methods = new IMethod[]{
+ new Method("type", "LString;", null),
+ new Method("name", "LString;", new MemberValuePair("name", "User", IMemberValuePair.K_STRING)),
new Method("realChanky", "Z", null),
new Method("unrealChanky", "Z", new MemberValuePair("unrealChanky", true, IMemberValuePair.K_BOOLEAN)),
new Method("number", "I", null),
- new Method("size", "I", new MemberValuePair("size", 125, IMemberValuePair.K_INT))
+ new Method("size", "I", new MemberValuePair("size", 125, IMemberValuePair.K_INT)),
+ new Method("bTs", "B", null),
+ new Method("bTs2", "B", new MemberValuePair("bTs2", (byte)4, IMemberValuePair.K_BYTE)),
+ new Method("posibility", "D", null),
+ new Method("posibility2", "D", new MemberValuePair("posibility2", 0.9999, IMemberValuePair.K_DOUBLE)),
+ new Method("ch", "C", null),
+ new Method("ch2", "C", new MemberValuePair("ch2", 'T', IMemberValuePair.K_CHAR))
};
public AnnotationType(String qualifiedName) {
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIProject.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIProject.java 2012-02-09 17:03:21 UTC (rev 38575)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIProject.java 2012-02-09 19:52:58 UTC (rev 38576)
@@ -44,6 +44,9 @@
public static final String QUALIFIER4 = "org.test.Qualifier4";
public static final String QUALIFIER5 = "org.test.Qualifier5";
+ public static final String COMPLICATED_QUALIFIER1 = "org.test.CompicatedQualifier";
+ public static final String COMPLICATED_QUALIFIER2 = "org.test.OtherComplicatedQualifier";
+
private IQualifier defaultQualifier, namedQualifier, anyQualifier, newQualifier;
private ArrayList<IQualifier> qualifiers = new ArrayList<IQualifier>();
@@ -61,6 +64,9 @@
qualifiers.add(new CDIQualifier(this, QUALIFIER3));
qualifiers.add(new CDIQualifier(this, QUALIFIER4));
qualifiers.add(new CDIQualifier(this, QUALIFIER5));
+
+ qualifiers.add(new CDIQualifier(this, COMPLICATED_QUALIFIER1));
+ qualifiers.add(new CDIQualifier(this, COMPLICATED_QUALIFIER2));
}
@Override
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifierDeclaration.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifierDeclaration.java 2012-02-09 17:03:21 UTC (rev 38575)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifierDeclaration.java 2012-02-09 19:52:58 UTC (rev 38576)
@@ -25,7 +25,8 @@
new MemberValuePair("name", "John", IMemberValuePair.K_STRING),
new MemberValuePair("size", 5, IMemberValuePair.K_INT),
new MemberValuePair("p", 0.5, IMemberValuePair.K_DOUBLE),
- new MemberValuePair("char", 'Q', IMemberValuePair.K_CHAR),
+ new MemberValuePair("ch", 'Q', IMemberValuePair.K_CHAR),
+ new MemberValuePair("b", (byte)6, IMemberValuePair.K_BYTE)
};
public CDIQualifierDeclaration(){
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java 2012-02-09 17:03:21 UTC (rev 38575)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/wizard/AddQualifiersToBeanWizardTest.java 2012-02-09 19:52:58 UTC (rev 38576)
@@ -34,6 +34,7 @@
import org.jboss.tools.cdi.ui.test.testmodel.CDIBean;
import org.jboss.tools.cdi.ui.test.testmodel.CDIInjectionPoint;
import org.jboss.tools.cdi.ui.test.testmodel.CDIProject;
+import org.jboss.tools.cdi.ui.test.testmodel.CDIQualifierDeclaration;
import org.jboss.tools.cdi.ui.wizard.AddQualifiersToBeanWizard;
@@ -67,6 +68,8 @@
availableCheck.add(new ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER3)));
availableCheck.add(new ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER4)));
availableCheck.add(new ValuedQualifier(project.getQualifier(CDIProject.QUALIFIER5)));
+ availableCheck.add(new ValuedQualifier(project.getQualifier(CDIProject.COMPLICATED_QUALIFIER1)));
+ availableCheck.add(new ValuedQualifier(project.getQualifier(CDIProject.COMPLICATED_QUALIFIER2)));
deployedCheck = new ArrayList<ValuedQualifier>();
@@ -217,5 +220,16 @@
checkValuedQualifierLists(deployedCheck, deployed);
}
-
+
+ public void testValuedQualifier(){
+ ValuedQualifier oneQualifier = new ValuedQualifier(project.getQualifier(CDIProject.COMPLICATED_QUALIFIER1));
+ String value = oneQualifier.getValue();
+ assertEquals("type = \"default\", name = \"User\", realChanky = false, unrealChanky = true, number = 0, size = 125, bTs = 0, bTs2 = 4, posibility = 0.0, posibility2 = 0.9999, ch = ' ', ch2 = 'T'", value);
+ }
+
+ public void testValuedQualifierWithDeclaration(){
+ ValuedQualifier anotherQualifier = new ValuedQualifier(project.getQualifier(CDIProject.COMPLICATED_QUALIFIER2), new CDIQualifierDeclaration());
+ String value = anotherQualifier.getValue();
+ assertEquals("name = \"John\", size = 5, p = 0.5, ch = 'Q', b = 6", value);
+ }
}
14 years, 2 months
JBoss Tools SVN: r38575 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 12:03:21 -0500 (Thu, 09 Feb 2012)
New Revision: 38575
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftWizardModel.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPageModel.java
Log:
[JBIDE-10842] fixing invisible error: application name was not set in wizard model
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftWizardModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftWizardModel.java 2012-02-09 17:01:39 UTC (rev 38574)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/IOpenShiftWizardModel.java 2012-02-09 17:03:21 UTC (rev 38575)
@@ -34,6 +34,8 @@
public static final String NEW_PROJECT = "enableProject";
public static final String USER = "user";
public static final String APPLICATION = "application";
+ public static final String APPLICATION_NAME = "applicationName";
+ public static final String APPLICATION_CARTRIDGE = "applicationCartridge";
public static final String USE_EXISTING_APPLICATION = "useExistingApplication";
public static final String REMOTE_NAME = "remoteName";
public static final String REPOSITORY_PATH = "repositoryPath";
@@ -137,8 +139,6 @@
public ICartridge getApplicationCartridge();
- public String getApplicationCartridgeName();
-
public void setApplication(IApplication application);
public String setRemoteName(String remoteName);
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-02-09 17:01:39 UTC (rev 38574)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/OpenShiftExpressApplicationWizardModel.java 2012-02-09 17:03:21 UTC (rev 38575)
@@ -37,11 +37,10 @@
public class OpenShiftExpressApplicationWizardModel extends ObservableUIPojo implements IOpenShiftWizardModel {
protected HashMap<String, Object> dataModel = new HashMap<String, Object>();
-
+
private static final int APP_CREATION_TIMEOUT = 40;
private static final String KEY_SELECTED_EMBEDDABLE_CARTRIDGES = "selectedEmbeddableCartridges";
-
public OpenShiftExpressApplicationWizardModel() {
super();
// default value(s)
@@ -54,7 +53,6 @@
setUseExistingApplication(false);
}
-
/**
* Imports the project that the user has chosen into the workspace.
*
@@ -145,7 +143,7 @@
getProjectName()
, getApplication()
, getRemoteName()
-// , getUser())
+ // , getUser())
, OpenShiftUIActivator.getDefault().getUser())
.execute(monitor);
createServerAdapter(monitor, importedProjects);
@@ -180,17 +178,17 @@
return dataModel.get(key);
}
-// @Override
-// public void setUser(IUser user) {
-// setProperty(USER, user);
-// OpenShiftUIActivator.getDefault().setUser(user);
-// }
+ // @Override
+ // public void setUser(IUser user) {
+ // setProperty(USER, user);
+ // OpenShiftUIActivator.getDefault().setUser(user);
+ // }
-// @Override
-// public IUser getUser() {
-// return (IUser) getProperty(USER);
-// return OpenShiftUIActivator.getDefault().getUser();
-// }
+ // @Override
+ // public IUser getUser() {
+ // return (IUser) getProperty(USER);
+ // return OpenShiftUIActivator.getDefault().getUser();
+ // }
@Override
public IApplication getApplication() {
@@ -198,43 +196,15 @@
}
@Override
- public String getApplicationName() {
- String applicationName = null;
- IApplication application = getApplication();
- if (application != null) {
- applicationName = application.getName();
- }
- return applicationName;
- }
-
- @Override
- public ICartridge getApplicationCartridge() {
- ICartridge cartridge = null;
- IApplication application = getApplication();
- if (application != null) {
- cartridge = application.getCartridge();
- }
- return cartridge;
- }
-
- @Override
- public String getApplicationCartridgeName() {
- String cartridgeName = null;
- ICartridge cartridge = getApplicationCartridge();
- if (cartridge != null) {
- cartridgeName = cartridge.getName();
- }
- return cartridgeName;
- }
-
- @Override
public void setApplication(IApplication application) {
setProperty(APPLICATION, application);
- if(application == null) {
+ if (application == null) {
setUseExistingApplication(false);
} else {
setUseExistingApplication(true);
}
+ setApplicationCartridge(application);
+ setApplicationName(application);
}
@Override
@@ -291,6 +261,7 @@
private IProject getProject() {
return ResourcesPlugin.getWorkspace().getRoot().getProject(getProjectName());
}
+
@Override
public Boolean setCreateServerAdapter(Boolean createServerAdapter) {
return (Boolean) setProperty(CREATE_SERVER_ADAPTER, createServerAdapter);
@@ -336,24 +307,21 @@
public void setServerType(IServerType serverType) {
setProperty(SERVER_TYPE, serverType);
}
-
+
private void setPublicationMode(String mode) {
setProperty(PUBLICATION_MODE, mode);
}
-
@Override
public boolean isExistingApplication() {
return (Boolean) getProperty(USE_EXISTING_APPLICATION);
}
-
@Override
public void setUseExistingApplication(boolean useExistingApplication) {
setProperty(USE_EXISTING_APPLICATION, useExistingApplication);
}
-
private void waitForAccessible(IApplication application, IProgressMonitor monitor)
throws OpenShiftApplicationNotAvailableException, OpenShiftException {
// monitor.subTask("waiting for application to become accessible...");
@@ -362,8 +330,9 @@
OpenShiftExpressUIMessages.HOSTNAME_NOT_ANSWERING, application.getApplicationUrl()));
}
}
-
- IApplication createApplication(String name, ICartridge cartridge, IProgressMonitor monitor) throws OpenShiftApplicationNotAvailableException, OpenShiftException {
+
+ IApplication createApplication(String name, ICartridge cartridge, IProgressMonitor monitor)
+ throws OpenShiftApplicationNotAvailableException, OpenShiftException {
IUser user = OpenShiftUIActivator.getDefault().getUser();
if (user == null) {
throw new OpenShiftException("Could not create application, have no valid user credentials");
@@ -372,34 +341,53 @@
waitForAccessible(application, monitor);
return application;
}
-
- public void createApplication(IProgressMonitor monitor) throws OpenShiftApplicationNotAvailableException, OpenShiftException {
+
+ public void createApplication(IProgressMonitor monitor) throws OpenShiftApplicationNotAvailableException,
+ OpenShiftException {
IApplication application = createApplication(getApplicationName(), getApplicationCartridge(), monitor);
setApplication(application);
-
+
}
-
public List<IEmbeddableCartridge> getSelectedEmbeddableCartridges() {
@SuppressWarnings("unchecked")
- List<IEmbeddableCartridge> selectedEmbeddableCartridges = (List<IEmbeddableCartridge>) dataModel.get(KEY_SELECTED_EMBEDDABLE_CARTRIDGES);
- if(selectedEmbeddableCartridges == null) {
+ List<IEmbeddableCartridge> selectedEmbeddableCartridges = (List<IEmbeddableCartridge>) dataModel
+ .get(KEY_SELECTED_EMBEDDABLE_CARTRIDGES);
+ if (selectedEmbeddableCartridges == null) {
selectedEmbeddableCartridges = new ArrayList<IEmbeddableCartridge>();
dataModel.put(KEY_SELECTED_EMBEDDABLE_CARTRIDGES, selectedEmbeddableCartridges);
}
return selectedEmbeddableCartridges;
}
-
public void setApplicationCartridge(ICartridge cartridge) {
- // TODO Auto-generated method stub
-
+ dataModel.put(APPLICATION_CARTRIDGE, cartridge);
}
+ protected void setApplicationCartridge(IApplication application) {
+ if (application == null) {
+ return;
+ }
+ dataModel.put(APPLICATION_CARTRIDGE, application.getCartridge());
+ }
+ public ICartridge getApplicationCartridge() {
+ return (ICartridge) dataModel.get(APPLICATION_CARTRIDGE);
+ }
+
public void setApplicationName(String applicationName) {
- // TODO Auto-generated method stub
-
+ dataModel.put(APPLICATION_NAME, applicationName);
}
+ protected void setApplicationName(IApplication application) {
+ if (application == null) {
+ return;
+ }
+ dataModel.put(APPLICATION_NAME, application.getName());
+ }
+
+ @Override
+ public String getApplicationName() {
+ return (String) dataModel.get(APPLICATION_NAME);
+ }
}
\ No newline at end of file
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java 2012-02-09 17:01:39 UTC (rev 38574)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPage.java 2012-02-09 17:03:21 UTC (rev 38575)
@@ -263,13 +263,11 @@
protected IStatus validate() {
final IStatus existingProjectValidityStatus = (IStatus) existingProjectValidityObservable.getValue();
- if (existingProjectValidityStatus != null) {
- final IStatus existingProjectValidity = pageModel.getExistingProjectValidity();
- return existingProjectValidity;
+ if (existingProjectValidityStatus == null) {
+ return ValidationStatus.ok();
}
- return ValidationStatus.ok();
+ return existingProjectValidityStatus;
}
-
}
/*
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPageModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPageModel.java 2012-02-09 17:01:39 UTC (rev 38574)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ProjectAndServerAdapterSettingsWizardPageModel.java 2012-02-09 17:03:21 UTC (rev 38575)
@@ -14,11 +14,12 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.osgi.util.NLS;
import org.jboss.tools.common.ui.databinding.ObservableUIPojo;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
/**
- * @author Andr� Dietisheim
+ * @author Andre Dietisheim
* @author Xavier Coulon
*
*/
@@ -78,25 +79,29 @@
public IStatus validateExistingProject() {
IStatus status = Status.OK_STATUS;
- // skip the validation if the user wants to create a new project. The name and state of the existing project do
- // not matter...
final String applicationName = getApplicationName();
- if (isNewProject() && applicationName != null) {
- final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(applicationName);
- if(project.exists()) {
- status = new Status(IStatus.ERROR, OpenShiftUIActivator.PLUGIN_ID, "A project named '" + applicationName + "' already exists in the workspace.");
+ if (isNewProject()) {
+ if (applicationName == null) {
+ status = OpenShiftUIActivator.createErrorStatus("You have to choose an application name");
+ } else {
+ final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(applicationName);
+ if(project.exists()) {
+ status = OpenShiftUIActivator.createErrorStatus(
+ NLS.bind("A project named {0} already exists in the workspace.", applicationName));
+ }
}
} else {
final String projectName = wizardModel.getProjectName();
if (projectName == null || projectName.isEmpty()) {
- status = new Status(IStatus.CANCEL, OpenShiftUIActivator.PLUGIN_ID,
- "Select an open project in the workspace.");
+ status = OpenShiftUIActivator.createErrorStatus("Select an open project in the workspace.");
} else {
final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
if (!project.exists()) {
- status = new Status(IStatus.ERROR, OpenShiftUIActivator.PLUGIN_ID, "The project does not exist.");
+ status = OpenShiftUIActivator.createErrorStatus(
+ NLS.bind("The project {0} does not exist in your workspace.", projectName));
} else if (!project.isOpen()) {
- status = new Status(IStatus.ERROR, OpenShiftUIActivator.PLUGIN_ID, "The project is not open.");
+ status = OpenShiftUIActivator.createErrorStatus(
+ NLS.bind("The project {0} is not open.", projectName));
}
}
}
14 years, 2 months
JBoss Tools SVN: r38574 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 12:01:39 -0500 (Thu, 09 Feb 2012)
New Revision: 38574
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
Log:
removed unneeded constructor
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-02-09 17:01:14 UTC (rev 38573)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/GitCloningSettingsWizardPage.java 2012-02-09 17:01:39 UTC (rev 38574)
@@ -51,15 +51,6 @@
private Button useDefaultRepoPathButton;
private Text remoteNameText;
- public GitCloningSettingsWizardPage(AbstractOpenShiftApplicationWizard<?> wizard, IOpenShiftWizardModel model) {
- super(
- "Import an existing OpenShift application",
- "Configure the cloning settings by specifying the clone destination if you create a new project, and the git remote name if you're using an existing project.",
- "Cloning settings", wizard);
- this.pageModel = new GitCloningSettingsWizardPageModel(model);
- setPageComplete(false);
- }
-
public GitCloningSettingsWizardPage(OpenShiftExpressApplicationWizard wizard, IOpenShiftWizardModel model) {
super(
"Import an existing OpenShift application",
14 years, 2 months
JBoss Tools SVN: r38573 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 12:01:14 -0500 (Thu, 09 Feb 2012)
New Revision: 38573
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizardModel.java
Log:
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizardModel.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizardModel.java 2012-02-09 17:00:52 UTC (rev 38572)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizardModel.java 2012-02-09 17:01:14 UTC (rev 38573)
@@ -21,7 +21,7 @@
/**
* Timeout in seconds when trying to contact an application after it had been created.
*/
- private static final int APP_CREATION_TIMEOUT = 30;
+ private static final int APP_CREATION_TIMEOUT = 40;
private static final String APPLICATION_NAME = "applicationName";
private static final String APPLICATION_CARTRIDGE = "applicationCartridge";
private static final String SELECTED_EMBEDDABLE_CARTRIDGES = "selectedEmbeddableCartridges";
@@ -72,7 +72,7 @@
return (ICartridge)dataModel.get(APPLICATION_CARTRIDGE);
}
- @Override
+// @Override
public String getApplicationCartridgeName() {
final ICartridge cartridge = (ICartridge)dataModel.get(APPLICATION_CARTRIDGE);
if(cartridge != null) {
14 years, 2 months
JBoss Tools SVN: r38572 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 12:00:52 -0500 (Thu, 09 Feb 2012)
New Revision: 38572
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizard.java
Log:
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizard.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizard.java 2012-02-09 16:49:27 UTC (rev 38571)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/CreateNewApplicationWizard.java 2012-02-09 17:00:52 UTC (rev 38572)
@@ -50,18 +50,16 @@
public void addPages() {
final IUser user = OpenShiftUIActivator.getDefault().getUser();
try {
- if (user == null
+ if (user == null
|| !user.isValid()) {
addPage(new CredentialsWizardPage(this));
-// } else {
-// getWizardModel().setUser(user);
}
} catch (OpenShiftException e) {
// if the user's validity can't be checked, we may want to
// re-connect..
addPage(new CredentialsWizardPage(this));
}
- //addPage(new ApplicationConfigurationWizardPage(this, getWizardModel()));
+ addPage(new ApplicationConfigurationWizardPage(this, getWizardModel()));
addPage(new ProjectAndServerAdapterSettingsWizardPage(this, getWizardModel()));
addPage(new GitCloningSettingsWizardPage(this, getWizardModel()));
}
@@ -109,9 +107,11 @@
queue.offer(true);
return Status.OK_STATUS;
} catch (Exception e) {
+ // TODO: refresh user
queue.offer(false);
return OpenShiftUIActivator.createErrorStatus(
- "Could not create application \"{0}\"", e, getWizardModel().getApplicationName());
+ "Could not create application \"{0}\"", e, getWizardModel()
+ .getApplicationName());
}
}
@@ -136,7 +136,7 @@
List<IEmbeddableCartridge> selectedCartridges =
getWizardModel().getSelectedEmbeddableCartridges();
final IApplication application = getWizardModel().getApplication();
- if (selectedCartridges != null
+ if (selectedCartridges != null
&& !selectedCartridges.isEmpty()) {
application.addEmbbedCartridges(selectedCartridges);
}
14 years, 2 months
JBoss Tools SVN: r38571 - in trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer: property and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 11:49:27 -0500 (Thu, 09 Feb 2012)
New Revision: 38571
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/AbstractActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateApplicationActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateServerAdapterActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/DeleteApplicationActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditCartridgesActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditDomainActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ImportApplicationActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/OpenInWebBrowserActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ShowPropertiesActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/TailServerLogActionProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/ApplicationPropertySource.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/EmbeddableCartridgePropertySource.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/PropertySourceAdapterFactory.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/TypeMapper.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java
Log:
added class header and author
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/AbstractActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/AbstractActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/AbstractActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.eclipse.jface.action.IMenuManager;
@@ -7,6 +17,9 @@
import org.eclipse.ui.navigator.ICommonViewerWorkbenchSite;
import org.jboss.tools.openshift.express.internal.ui.action.AbstractAction;
+/**
+ * @author Xavier Coulon
+ */
public abstract class AbstractActionProvider extends CommonActionProvider {
private final AbstractAction action;
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateApplicationActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateApplicationActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateApplicationActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.CreateApplicationAction;
@@ -3,5 +13,7 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class CreateApplicationActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateServerAdapterActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateServerAdapterActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/CreateServerAdapterActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.CreateServerAdapterAction;
@@ -2,2 +12,5 @@
+/**
+ * @author Xavier Coulon
+ */
public class CreateServerAdapterActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/DeleteApplicationActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/DeleteApplicationActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/DeleteApplicationActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.DeleteApplicationAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class DeleteApplicationActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditCartridgesActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditCartridgesActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditCartridgesActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.EditCartridgesAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class EditCartridgesActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditDomainActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditDomainActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/EditDomainActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,8 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
-import org.eclipse.ui.navigator.ICommonMenuConstants;
import org.jboss.tools.openshift.express.internal.ui.action.EditDomainAction;
+/**
+ * @author Xavier Coulon
+ */
public class EditDomainActionProvider extends AbstractActionProvider {
public EditDomainActionProvider() {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ImportApplicationActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ImportApplicationActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ImportApplicationActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.ImportApplicationAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class ImportApplicationActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/OpenInWebBrowserActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/OpenInWebBrowserActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/OpenInWebBrowserActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.OpenInWebBrowserAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class OpenInWebBrowserActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ShowPropertiesActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ShowPropertiesActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/ShowPropertiesActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.ShowPropertiesAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class ShowPropertiesActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/TailServerLogActionProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/TailServerLogActionProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/actionProvider/TailServerLogActionProvider.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.actionProvider;
import org.jboss.tools.openshift.express.internal.ui.action.TailServerLogAction;
@@ -2,3 +12,5 @@
-
+/**
+ * @author Xavier Coulon
+ */
public class TailServerLogActionProvider extends AbstractActionProvider {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/ApplicationPropertySource.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/ApplicationPropertySource.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/ApplicationPropertySource.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import java.text.SimpleDateFormat;
@@ -10,6 +20,9 @@
import com.openshift.express.client.IApplication;
import com.openshift.express.client.OpenShiftException;
+/**
+ * @author Xavier Coulon
+ */
public class ApplicationPropertySource implements IPropertySource {
private final IApplication application;
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/EmbeddableCartridgePropertySource.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/EmbeddableCartridgePropertySource.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/EmbeddableCartridgePropertySource.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
@@ -8,6 +18,9 @@
import com.openshift.express.client.IEmbeddableCartridge;
import com.openshift.express.client.OpenShiftException;
+/**
+ * @author Xavier Coulon
+ */
public class EmbeddableCartridgePropertySource implements IPropertySource {
private final IEmbeddableCartridge cartridge;
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/PropertySourceAdapterFactory.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/PropertySourceAdapterFactory.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/PropertySourceAdapterFactory.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,6 +1,13 @@
-/**
- *
- */
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import org.eclipse.core.runtime.IAdapterFactory;
@@ -16,10 +23,6 @@
*/
public class PropertySourceAdapterFactory implements IAdapterFactory {
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
- */
@Override
public Object getAdapter(Object adaptableObject, @SuppressWarnings("rawtypes") Class adapterType) {
if(adapterType == IPropertySource.class) {
@@ -35,10 +38,6 @@
return null;
}
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
- */
@Override
public Class<?>[] getAdapterList() {
return new Class[] { IPropertySource.class };
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/TypeMapper.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/TypeMapper.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/TypeMapper.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import org.eclipse.jface.viewers.TreeNode;
@@ -3,4 +13,7 @@
import org.eclipse.ui.views.properties.tabbed.AbstractTypeMapper;
+/**
+ * @author Xavier Coulon
+ */
public class TypeMapper extends AbstractTypeMapper {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import org.eclipse.core.runtime.Assert;
@@ -14,6 +24,9 @@
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
+/**
+ * @author Xavier Coulon
+ */
public class UserPropertySection extends AbstractPropertySection {
private Text labelText;
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java 2012-02-09 16:46:53 UTC (rev 38570)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java 2012-02-09 16:49:27 UTC (rev 38571)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer.property;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
@@ -8,6 +18,9 @@
import com.openshift.express.client.IUser;
import com.openshift.express.client.OpenShiftException;
+/**
+ * @author Xavier Coulon
+ */
public class UserPropertySource implements IPropertySource {
private final IUser user;
14 years, 2 months
JBoss Tools SVN: r38570 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-09 11:46:53 -0500 (Thu, 09 Feb 2012)
New Revision: 38570
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/ConnectToOpenShiftWizard.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/LabelProvider.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftConsoleExpressView.java
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftExpressConsoleLabelProvider.java
Log:
added class header and author
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/ConnectToOpenShiftWizard.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/ConnectToOpenShiftWizard.java 2012-02-09 16:45:48 UTC (rev 38569)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/ConnectToOpenShiftWizard.java 2012-02-09 16:46:53 UTC (rev 38570)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer;
import org.eclipse.jface.wizard.Wizard;
@@ -3,4 +13,7 @@
import org.jboss.tools.openshift.express.internal.ui.wizard.CredentialsWizardPage;
+/**
+ * @author Xavier Coulon
+ */
public class ConnectToOpenShiftWizard extends Wizard {
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/LabelProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/LabelProvider.java 2012-02-09 16:45:48 UTC (rev 38569)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/LabelProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer;
import org.eclipse.jface.viewers.ILabelProvider;
@@ -4,6 +14,9 @@
import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.swt.graphics.Image;
+/**
+ * @author Xavier Coulon
+ */
public class LabelProvider implements ILabelProvider {
@Override
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftConsoleExpressView.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftConsoleExpressView.java 2012-02-09 16:45:48 UTC (rev 38569)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftConsoleExpressView.java 2012-02-09 16:46:53 UTC (rev 38570)
@@ -1,6 +1,13 @@
-/**
- *
- */
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer;
import org.eclipse.jface.layout.GridDataFactory;
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftExpressConsoleLabelProvider.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftExpressConsoleLabelProvider.java 2012-02-09 16:45:48 UTC (rev 38569)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/OpenShiftExpressConsoleLabelProvider.java 2012-02-09 16:46:53 UTC (rev 38570)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jboss.tools.openshift.express.internal.ui.viewer;
import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider;
@@ -14,6 +24,9 @@
import com.openshift.express.client.IUser;
import com.openshift.express.client.OpenShiftException;
+/**
+ * @author Xavier Coulon
+ */
public class OpenShiftExpressConsoleLabelProvider implements IStyledLabelProvider, ILabelProvider {
@Override
14 years, 2 months