Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version with new Packagist Search
- Loading branch information
Showing
158 changed files
with
908 additions
and
67 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
com.dubture.composer.core/.settings/org.eclipse.jdt.core.prefs
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
com.dubture.composer.core/ico/full/obj16/icon-logo-composer.png
100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file modified
0
...re.composer.core/src/com/dubture/composer/core/ComposerBuildpathContainerInitializer.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/ComposerConstants.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/ComposerNature.java
100644 → 100755
Empty file.
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
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/ComposerPluginImages.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/build/BuildParticipantFactory.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/build/ComposerBuildParticipant.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/facet/FacetInstallWizardPage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/facet/InstallActionDelegate.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/job/ComposerJob.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/job/DownloadJob.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/job/InitializeJob.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/job/InstallJob.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/job/UpdateJob.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/launch/ConsoleResponseHandler.java
100644 → 100755
Empty file.
Empty file modified
0
...dubture.composer.core/src/com/dubture/composer/core/launch/DefaultExecutableLauncher.java
100644 → 100755
Empty file.
Empty file modified
0
...bture.composer.core/src/com/dubture/composer/core/launch/ExecutableNotFoundException.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/launch/ILaunchResponseHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/launch/IPHPLauncher.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/launch/LaunchUtil.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/launch/PharNotFoundException.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/log/Logger.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/BuildpathPackage.java
100644 → 100755
Empty file.
Empty file modified
0
...dubture.composer.core/src/com/dubture/composer/core/model/ComposerBuildpathContainer.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/EclipsePHPPackage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/InstallableItem.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/InstalledPackage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/ModelAccess.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/NamespaceMapping.java
100644 → 100755
Empty file.
Empty file modified
0
...dubture.composer.core/src/com/dubture/composer/core/model/NamespaceResolverInterface.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/PackageManager.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/PackagePath.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/model/PathDeserializer.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/visitor/AutoloadVisitor.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.core/src/com/dubture/composer/core/visitor/ComposerVisitor.java
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
com.dubture.composer.test/.settings/org.eclipse.jdt.core.prefs
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
com.dubture.composer.test/src/com/dubture/composer/test/ComposerTest.java
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/ComposerUIPlugin.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/ComposerUIPluginImages.java
100644 → 100755
Empty file.
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
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/controller/IController.java
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions
5
...composer.ui/src/com/dubture/composer/ui/controller/IPackageCheckStateChangedListener.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,5 @@ | ||
package com.dubture.composer.ui.controller; | ||
|
||
public interface IPackageCheckStateChangedListener { | ||
public void packageCheckStateChanged(String name, boolean checked); | ||
} |
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/controller/ITableController.java
100644 → 100755
Empty file.
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
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/converter/ComposerConverter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/converter/Keywords2StringConverter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/converter/License2StringConverter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/converter/String2KeywordsConverter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/converter/String2LicenseConverter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/dialogs/DependencyDialog.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/dialogs/PersonDialog.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/ComboFormEntryAdapter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/ComposerFormPage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/ComposerSection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/FormEntryAdapter.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/FormLayoutFactory.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/StructuredViewerSection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/TableSection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/AuthorSection.java
100644 → 100755
Empty file.
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
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/ComposerTextEditor.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/DependenciesPage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/DependencyGraphPage.java
100644 → 100755
Empty file.
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
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/DependencySection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/GeneralSection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/OverviewPage.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/editor/composer/SupportSection.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/explorer/ComposerBuildpathContainer.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/explorer/PackageTreeContentProvider.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/explorer/PackageTreeLabelProvider.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/AddNatureHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/ComposerHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/DependencyGraphHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/InitHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/InstallHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/RequireHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/handler/UpdateHandler.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/ComboFormEntry.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/ComboPart.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/FormEntry.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/IComboFormEntryListener.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/IFormEntryListener.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/SharedPart.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/SharedPartWithButtons.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/StructuredViewerPart.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/TablePart.java
100644 → 100755
Empty file.
Empty file modified
0
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/WeblinkFormEntry.java
100644 → 100755
Empty file.
101 changes: 101 additions & 0 deletions
101
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/composer/DependencySearch.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,101 @@ | ||
package com.dubture.composer.ui.parts.composer; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.eclipse.jface.viewers.TableViewer; | ||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.events.SelectionAdapter; | ||
import org.eclipse.swt.events.SelectionEvent; | ||
import org.eclipse.swt.graphics.Color; | ||
import org.eclipse.swt.layout.GridData; | ||
import org.eclipse.swt.layout.GridLayout; | ||
import org.eclipse.swt.widgets.Button; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Display; | ||
import org.eclipse.swt.widgets.Group; | ||
import org.eclipse.swt.widgets.Label; | ||
import org.eclipse.swt.widgets.Layout; | ||
import org.eclipse.swt.widgets.Text; | ||
import org.eclipse.ui.forms.events.HyperlinkAdapter; | ||
import org.eclipse.ui.forms.events.HyperlinkEvent; | ||
import org.eclipse.ui.forms.widgets.ExpandableComposite; | ||
import org.eclipse.ui.forms.widgets.FormToolkit; | ||
import org.eclipse.ui.forms.widgets.Twistie; | ||
import org.getcomposer.ComposerConstants; | ||
import org.getcomposer.collection.Dependencies; | ||
|
||
import com.dubture.composer.ui.editor.FormLayoutFactory; | ||
import com.dubture.composer.ui.utils.WidgetHelper; | ||
|
||
public class DependencySearch extends PackageSearch { | ||
|
||
protected List<DependencySelectionFinishedListener> dependencyListeners = new ArrayList<DependencySelectionFinishedListener>(); | ||
|
||
public DependencySearch (Composite parent, FormToolkit toolkit, String buttonText) { | ||
super(parent, toolkit, buttonText); | ||
} | ||
|
||
public DependencySearch (Composite parent, FormToolkit toolkit) { | ||
super(parent, toolkit); | ||
} | ||
|
||
public DependencySearch (Composite parent, String buttonText) { | ||
super(parent, buttonText); | ||
} | ||
|
||
public DependencySearch(Composite parent) { | ||
super(parent); | ||
} | ||
|
||
public void addDependencySelectionFinishedListener(DependencySelectionFinishedListener listener) { | ||
if (!dependencyListeners.contains(listener)) { | ||
dependencyListeners.add(listener); | ||
} | ||
} | ||
|
||
public void removeDependencySelectionFinishedListener(DependencySelectionFinishedListener listener) { | ||
dependencyListeners.remove(listener); | ||
} | ||
|
||
@Override | ||
protected void create(Composite parent, FormToolkit toolkit, String buttonText) { | ||
super.create(parent, toolkit, buttonText); | ||
|
||
if (addButton != null) { | ||
addButton.addSelectionListener(new SelectionAdapter() { | ||
public void widgetSelected(SelectionEvent e) { | ||
notifyDependencySelectionFinishedListener(); | ||
} | ||
}); | ||
} | ||
|
||
// test package part | ||
createPackagePart(pickedResults, "gossi/test"); | ||
} | ||
|
||
protected void notifyDependencySelectionFinishedListener() { | ||
Dependencies deps = getDependencies(); | ||
for (DependencySelectionFinishedListener listener : dependencyListeners) { | ||
listener.dependenciesSelected(deps); | ||
} | ||
clear(); | ||
} | ||
|
||
public Dependencies getDependencies() { | ||
return null; | ||
} | ||
|
||
|
||
@Override | ||
protected DependencySearchPart createPackagePart(Composite parent, String name) { | ||
DependencySearchPart dsp = new DependencySearchPart(parent, toolkit, name); | ||
dsp.addToggleListener(new HyperlinkAdapter() { | ||
public void linkActivated(HyperlinkEvent e) { | ||
getBody().layout(true, true); | ||
} | ||
}); | ||
return dsp; | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
com.dubture.composer.ui/src/com/dubture/composer/ui/parts/composer/DependencySearchPart.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,74 @@ | ||
package com.dubture.composer.ui.parts.composer; | ||
|
||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.layout.GridData; | ||
import org.eclipse.swt.layout.GridLayout; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Text; | ||
import org.eclipse.ui.forms.events.HyperlinkAdapter; | ||
import org.eclipse.ui.forms.events.HyperlinkEvent; | ||
import org.eclipse.ui.forms.events.IHyperlinkListener; | ||
import org.eclipse.ui.forms.widgets.FormToolkit; | ||
import org.eclipse.ui.forms.widgets.Twistie; | ||
|
||
import com.dubture.composer.ui.utils.WidgetFactory; | ||
import com.dubture.composer.ui.utils.WidgetHelper; | ||
|
||
public class DependencySearchPart extends PackageSearchPart { | ||
|
||
protected Twistie toggle; | ||
protected VersionSuggestion suggestion; | ||
|
||
public DependencySearchPart(Composite parent, FormToolkit toolkit, String name) { | ||
super(parent, toolkit, name); | ||
} | ||
|
||
protected void create(Composite parent, WidgetFactory factory) { | ||
createBody(parent, factory); | ||
WidgetHelper.trimComposite(body, 0, 0, 0, 0, 0, 0); | ||
|
||
// title | ||
Composite title = factory.createComposite(body, SWT.NO_BACKGROUND); | ||
title.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); | ||
title.setLayout(new GridLayout(3, false)); | ||
WidgetHelper.trimComposite(title, -5,-5,-5,-5, 0, 0); | ||
|
||
// toggle box | ||
Composite toggleBox = factory.createComposite(title, SWT.NO_BACKGROUND); | ||
toggleBox.setLayout(new GridLayout()); | ||
toggle = new Twistie(toggleBox, SWT.NO_BACKGROUND | SWT.NO_FOCUS); | ||
toggle.setExpanded(true); //TODO: REMOVE! | ||
toggle.addHyperlinkListener(new HyperlinkAdapter() { | ||
public void linkActivated(HyperlinkEvent e) { | ||
boolean expanded = toggle.isExpanded(); | ||
suggestion.getBody().setVisible(expanded); | ||
((GridData)suggestion.getBody().getLayoutData()).exclude = !expanded; | ||
body.layout(true, true); | ||
} | ||
}); | ||
WidgetHelper.trimComposite(toggleBox, 3, -7, 0, 0, 0, 0); | ||
|
||
// package | ||
createPackageCheckbox(title, factory, name); | ||
|
||
// version | ||
Text version = factory.createText(title, SWT.SINGLE | SWT.BORDER); | ||
version.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false)); | ||
|
||
// suggestion | ||
suggestion = new VersionSuggestion(name, body, version, toolkit); | ||
WidgetHelper.trimComposite(suggestion.getBody(), -5,-5,-5,-5, 0, 0); | ||
} | ||
|
||
public void addToggleListener(IHyperlinkListener listener) { | ||
toggle.addHyperlinkListener(listener); | ||
} | ||
|
||
public void removeToggleListener(IHyperlinkListener listener) { | ||
toggle.removeHyperlinkListener(listener); | ||
} | ||
|
||
public boolean isExpanded() { | ||
return toggle.isExpanded(); | ||
} | ||
} |
Oops, something went wrong.